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
- Web-first assertionsAutomation Test Engineer
- Speeding up logged-in testsAutomation Test Engineer
- Splitting a suite across machinesAutomation Test Engineer
- Tests for several user rolesAutomation Test Engineer