mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
17 lines
412 B
TypeScript
17 lines
412 B
TypeScript
import { test as base } from '@playwright/test';
|
|
|
|
import { setupAuth } from './mocks/auth';
|
|
import { setupLibrary } from './mocks/library';
|
|
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 setupLibrary(page);
|
|
|
|
await use(page);
|
|
}
|
|
});
|