Playwright · Middle · Question 25 of 75

What does expect.soft do?

Show the answer

Correct answer: Records a failure but lets the test continue

Explanation

Soft assertions collect several problems in one run, such as many fields on a form. The test is still marked failed at the end.

Further reading

Problem with a question

Playwright · Middle · question 25

Test yourself

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

Take this quiz