15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { test as base } from '@playwright/test';
|
|
|
|
import { setupAuth } from './mocks/auth';
|
|
import { setupUsers } from './mocks/users';
|
|
export { expect } from '@playwright/test';
|
|
|
|
export const test = base.extend({
|
|
page: async ({ page }, use) => {
|
|
await setupAuth(page);
|
|
await setupUsers(page);
|
|
|
|
await use(page);
|
|
}
|
|
});
|