mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

In this test, the trace recording goes super fast. Sometimes, this means that the recording is finished before the screen recorder got a chance to take a screenshot. If that happens, the tests fail because we never show a screenshot. This PR fixes the flakiness by delaying the trace recording so that there's always a screenshot taken.