Skip to content

Fix saas-admin-template e2e test timeout in live mode#882

Merged
deloreyj merged 1 commit intomainfrom
fix/saas-admin-template-test-timeout
Jan 8, 2026
Merged

Fix saas-admin-template e2e test timeout in live mode#882
deloreyj merged 1 commit intomainfrom
fix/saas-admin-template-test-timeout

Conversation

@deloreyj
Copy link
Contributor

@deloreyj deloreyj commented Jan 7, 2026

Summary

Fixes the failing live e2e test for saas-admin-template that was causing CI failures on main.

Root Cause: The test was using click() on navigation links, which waits for navigation to complete using actionTimeout (5 seconds in live mode). The /admin page SSR can take longer than 5 seconds in the CI environment, causing timeouts.

Fix: Wrapped navigation clicks with Promise.all([page.waitForURL(...), click()]) pattern. This separates the click action from the navigation wait, allowing navigation to use the longer navigationTimeout (15 seconds) instead of actionTimeout (5 seconds).

Test

Verified locally against live URL:

PLAYWRIGHT_USE_LIVE=true pnpm exec playwright test playwright-tests/saas-admin-template.spec.ts

Related CI failure: https://github.com/cloudflare/templates/actions/runs/20783982439/job/59688307379

The test was timing out because click() waits for navigation using
actionTimeout (5s in live mode), but the /admin page SSR can take
longer in CI. Using Promise.all with waitForURL allows navigation
to use the longer navigationTimeout (15s) instead.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

Dashboard preview link

@deloreyj deloreyj merged commit cd9d313 into main Jan 8, 2026
3 checks passed
@deloreyj deloreyj deleted the fix/saas-admin-template-test-timeout branch January 8, 2026 15:38
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