Skip to content

fix(e2e): retry and fail loudly when clearing Firebase Auth emulator data - #2443

Merged
demolaf merged 2 commits into
version-10.0.0-beta04from
fix/e2e-emulator-clear-retry
Aug 17, 2026
Merged

fix(e2e): retry and fail loudly when clearing Firebase Auth emulator data#2443
demolaf merged 2 commits into
version-10.0.0-beta04from
fix/e2e-emulator-clear-retry

Conversation

@demolaf

@demolaf demolaf commented Aug 7, 2026

Copy link
Copy Markdown
Member

Fixes flaky CredentialLinkingScreenTest Google-link test on CI by making EmulatorAuthApi.clearEmulatorData() retry with backoff and throw on failure instead of silently leaving stale emulator state.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces handling for GetCredentialCancellationException when a user dismisses the Google Credential Manager sheet, transitioning the state to AuthState.Cancelled instead of throwing an error. It also refactors ErrorRecoveryDialog helper functions to be internal for direct testing, cleans up duplicate test helpers, and adds robust retry logic with error propagation when clearing emulator data in tests. Feedback is provided regarding the emulator retry loop, where catching a generic Exception can swallow InterruptedException from Thread.sleep; it is recommended to explicitly handle and restore the thread's interrupted status.

Comment thread e2eTest/src/test/java/com/firebase/ui/auth/testutil/EmulatorApi.kt
@demolaf
demolaf marked this pull request as ready for review August 7, 2026 12:16

@russellwheatley russellwheatley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@demolaf
demolaf force-pushed the fix/e2e-emulator-clear-retry branch from a87cfe3 to a304bff Compare August 17, 2026 18:08
@demolaf
demolaf merged commit dbaac07 into version-10.0.0-beta04 Aug 17, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in studio-2394994192-60a69 Aug 17, 2026
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.

2 participants