Playwright · Middle · Question 25 of 75
What does expect.soft do?
- 1Retries the assertion for a longer time
- 2Treats a failed check as a warning only
- 3Records a failure but lets the test continue
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.