Skip to content

Harden e2e waits against live Lambda latency#20

Merged
adamnfish merged 1 commit into
mainfrom
e2e-tests
Apr 21, 2026
Merged

Harden e2e waits against live Lambda latency#20
adamnfish merged 1 commit into
mainfrom
e2e-tests

Conversation

@adamnfish
Copy link
Copy Markdown
Owner

Updates the e2e tests so they'll work against the live deployed versions of the service.

  • Increase expect.timeout 10s → 15s to survive cold Lambda responses
  • After startGame, wait for a game button before snapping rather than assuming the WebSocket response arrived
  • Replace waitForTimeout(1_000) after fold with a proper wait for deal/peek on the folder's screen
  • Use Promise.any to wait for fold to appear on either player's page before checking who is active
  • Drop the remaining explicit { timeout: 10_000 } overrides so the global timeout applies consistently
  • Add .first() to .or() locators where multiple buttons are visible simultaneously (deal + peek coexist on the between-hands screen)

- Increase expect.timeout 10s → 15s to survive cold Lambda responses
- After startGame, wait for a game button before snapping rather than
  assuming the WebSocket response arrived
- Replace waitForTimeout(1_000) after fold with a proper wait for
  deal/peek on the folder's screen
- Use Promise.any to wait for fold to appear on either player's page
  before checking who is active
- Drop the remaining explicit { timeout: 10_000 } overrides so the
  global timeout applies consistently
- Add .first() to .or() locators where multiple buttons are visible
  simultaneously (deal + peek coexist on the between-hands screen)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@adamnfish adamnfish merged commit c923d60 into main Apr 21, 2026
4 of 5 checks passed
@adamnfish adamnfish deleted the e2e-tests branch April 21, 2026 22:36
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.

1 participant