chore: establish learning module baseline
This commit is contained in:
commit
2d04197f3f
2409 files changed
+533050
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { test as base } from '@playwright/test';
|
||||
import { MockApi } from './mock-api';
|
||||
|
||||
type Fixtures = {
|
||||
mockApi: MockApi;
|
||||
};
|
||||
|
||||
export const test = base.extend<Fixtures>({
|
||||
mockApi: async ({ page }, use) => {
|
||||
const mockApi = new MockApi(page);
|
||||
// Always mock server-providers — called on every page load by root layout
|
||||
await mockApi.mockServerProviders();
|
||||
await use(mockApi);
|
||||
},
|
||||
});
|
||||
|
||||
export { expect } from '@playwright/test';
|
||||
Reference in new issue
Block a user