Playwright · Junior · Question 41 of 75

How do you run only one test while developing?

Show the answer

Correct answer: Temporarily use test.only(...)

Explanation

test.only focuses a test or describe block. Setting forbidOnly: !!process.env.CI in the config prevents it from slipping into CI.

Further reading

Problem with a question

Playwright · Junior · question 41

Test yourself

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

Take this quiz