Playwright · Senior · Question 63 of 77

Why should fixtures not hide the main action of a test?

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.

Further reading

Problem with a question

Playwright · Senior · question 63

Test yourself

Take the Playwright · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz