X Tutup
Skip to content

fix(e2e): retry login on transient network errors#22878

Open
mafredri wants to merge 1 commit intomainfrom
e2e-login-retry
Open

fix(e2e): retry login on transient network errors#22878
mafredri wants to merge 1 commit intomainfrom
e2e-login-retry

Conversation

@mafredri
Copy link
Member

The login API call can fail with ERR_NETWORK_CHANGED during parallel e2e test execution. When this happens the page stays on /login and shows an error alert instead of redirecting to /workspaces.

After clicking Sign In, race the expected redirect against the error alert appearing. If the sign-in fails, retry the form submission once before the final expectUrl assertion. This follows the same pattern used by reloadPageIfDynamicImportFailed for handling dynamic import errors.

The login API call can fail with ERR_NETWORK_CHANGED during
parallel e2e test execution. When this happens the page stays
on /login and shows an error alert instead of redirecting to
/workspaces.

Race the expected redirect against the error alert appearing.
If the sign-in fails, retry the form submission once before
the final assertion.
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

X Tutup