Fixing TimeoutErrors with Playwright on MacOS Posted on
While running Playwright tests in Firefox (using Python and pytest), I kept getting random timeout errors. If I ran the same tests again, it would work fine. On the next run, a different set of tests would time out. The timeouts happened at different steps.
The reason? Multiple desktops. Playwright tests running on a different workspace time out. Playwright tests running in the background on the current workspace run just fine.