Context:
- Playwright Version: @playwright/test 1.15.0
- Operating System: dockerhub Ubuntu 20.04
- Node.js version: 12.14.0
- Browser: All
- Extra: CI/CD pipeline, inside docker container
Describe the bug
Setting retries in the playwright.config.ts to any value >1 causes missing screenshot tests to pass. We noticed that when we had retries set to 3 and checked in a new test someone forgot to include the actual screenhots, so the pipeline ran and the first test failed with the message Error: [path to screenshot] is missing in snapshots, writing actual. as expected. However, the second time it passed since the screenshot file is now present and matches since it was just written.
Perhaps missing screenshot failures could cause the whole test to fail regardless of retry count? It seems like the kind of error that should never be retried since it's not a source of flakiness.
We have a workaround for our pipeline but this seems like a really sneaky problem that could've easily gone unnoticed.
Context:
Describe the bug
Setting
retriesin theplaywright.config.tsto any value >1 causes missing screenshot tests to pass. We noticed that when we had retries set to3and checked in a new test someone forgot to include the actual screenhots, so the pipeline ran and the first test failed with the messageError: [path to screenshot] is missing in snapshots, writing actual.as expected. However, the second time it passed since the screenshot file is now present and matches since it was just written.Perhaps missing screenshot failures could cause the whole test to fail regardless of retry count? It seems like the kind of error that should never be retried since it's not a source of flakiness.
We have a workaround for our pipeline but this seems like a really sneaky problem that could've easily gone unnoticed.