Testing · Middle · Question 51 of 75
What are Playwright fixtures?
test("shows profile", async ({ page, context }) => { /* ... */ });- ✓Correct answer: Objects a test receives as arguments (
page,context, custom ones), set up and torn down automatically - 2Static JSON files with test data
- 3Test hooks that run once per suite
Explanation
Custom fixtures via test.extend share setup (logged-in page, page objects) without beforeEach boilerplate.