Playwright · Senior · Question 22 of 77
How do you debug a failure that happens only in CI?
- 1Mark the test
fixmebecause CI-only failures are not real - 2Add
console.logcalls and push until the failure disappears - 3Open the CI trace, reproduce in the CI Docker image, compare env
Show the answer
Correct answer: Open the CI trace, reproduce in the CI Docker image, compare env
Explanation
Traces show the page state at the failure. Running the same Docker image and worker count locally often reproduces timing issues.