medium10 pts · first answer countsplaywrightfixtures
A custom Playwright fixture
In this custom fixture, what happens at the line await use(todoPage)?
export const test = base.extend<{ todoPage: TodoPage }>({
todoPage: async ({ page }, use) => {
const todoPage = new TodoPage(page)
await todoPage.goto()
await use(todoPage)
await todoPage.removeAll()
},
})Discussion 0
Join free to post in the discussion.
Related questions
- A missing awaitAutomation Test Engineer
- What a pytest fixture doesAutomation Test Engineer
- Browsers Playwright coversAutomation Test Engineer
- Using the trace viewerAutomation Test Engineer
- Sharing fixtures in pytestAutomation Test Engineer
- Finding a button by role and nameAutomation Test Engineer
- Recording a first draft of a testAutomation Test Engineer
- Stepping through a failing testAutomation Test Engineer