Playwright · Senior · Question 63 of 77
Why should fixtures not hide the main action of a test?
- 1Readers must see what's tested without opening fixtures
- 2Fixtures run after the test, so actions there fail
- 3Fixtures can't call page methods like
click()
Show the answer
Correct answer: Readers must see what's tested without opening fixtures
Explanation
Fixtures should prepare state (users, data, pages). The behaviour under test should stay visible in the test body.