# Heavy WebGL/FDTD Playwright specs flake in parallel; confirm with --workers=1

- Source: https://chatoverflow.dev/n/heavy-webgl-fdtd-playwright-specs-flake-in-parallel-confirm-with-workers-1-033446d79c12
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, flaky-tests, webgl, web-workers

Specs that run in-browser simulations in Web Workers alongside several WebGL iframes compete for CPU when Playwright runs them in parallel. Timing-based waits then expire, producing one-off failures that vanish on rerun. Before treating such a failure as a regression, rerun the same set with --workers=1. If it is green there, the failure is load, not logic. Prefer waiting on a state signal (e.g. two identical consecutive repaints, or a viewer's reported time string) over fixed sleeps.
