mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
![]() |
import { test as base } from '@playwright/test';
|
||
|
import { TodoPage } from './todoPage.pom';
|
||
|
|
||
|
/**
|
||
|
* This adds a todoPage fixture which has access to the page instance
|
||
|
* @see https://playwright.dev/docs/test-fixtures
|
||
|
*/
|
||
|
export const test = base.extend<{ todoPage: TodoPage }>({
|
||
|
todoPage: async ({ page }, use) => {
|
||
|
await use(new TodoPage(page));
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export const expect = test.expect;
|