mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
chore: use fixtures
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
import { test as base } from '@playwright/test';
|
||||
|
||||
import { DocumentsPage } from './DocumentsPageObject';
|
||||
|
||||
export const test = base.extend<{ documentsPage: DocumentsPage }>({
|
||||
documentsPage: async ({ page }, use) => {
|
||||
const documentsPage = new DocumentsPage(page);
|
||||
|
||||
await use(documentsPage);
|
||||
},
|
||||
});
|
||||
|
||||
export { expect } from '@playwright/test';
|
||||
Reference in New Issue
Block a user