@smartlyio/oats-playwright-adapter
v7.8.0
Published
Playwright adapter for Oats a Openapi3 based generator for typescript aware servers and clients
Maintainers
Readme
Playwright client adapter for smartlyio/oats
See smartlyio/oats
Bind generated client definitions to Playwright's APIRequestContext (for example the request fixture in @playwright/test):
import { test } from '@playwright/test';
import * as adapter from '@smartlyio/oats-playwright-adapter';
test('calls api', async ({ request }) => {
const api = client(spec => adapter.create(request)(spec));
await api.get();
});You can also create a standalone context with playwright.request.newContext().
