Skip to content
RED SAGSkills
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()
  },
})
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions