Skip to content

Conversation

@ethrealSpectre
Copy link

@ethrealSpectre ethrealSpectre commented Feb 9, 2026

Ref: #1593
Closes: #1531

Test

Problem

  • Interacting with the OTP screen before UI transition finished.
  • "Cold starts" during local test runs exceeded the 120s limit.
  • Parallel stress tests caused CPU bottlenecks.

Solution

  • Added explicit wait for the OTP "code sent" UI in auth.ts.
  • Increased timeout to 4 minutes for this specific heavy test.
  • Enabled .serial() and retries: 2 to recover from temporary environmental lag.

Screenshot

By running: CI=true pnpm playwright test e2e/tests/settings/administrator/workspace.spec.ts
image

Stress testing by running: CI=true pnpm playwright test e2e/tests/settings/administrator/workspace.spec.ts --repeat-each 5 --workers 1
image

The one failed result was due to initial "Cold Start" latency (server bootup and code compilation). Once the environment warmed up, all subsequent tests passed quickly.
This environmental delay is exactly why I added Retries, allowing the suite to recover and pass successfully.

AI Disclosure

I have used Opus 4.5 to understand issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix flaky tests

2 participants