You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(integration): fix login race conditions in Selenium integration tests
The Selenium test InterpreterModeActionsIT.testPerUserIsolatedAction
fails intermittently due to multiple race conditions in the login flow:
1. The login modal may auto-open on page load when authentication is
required. Instead of dismissing and re-opening it (which corrupts
Bootstrap modal state), detect and reuse the already-open modal.
2. sendKeys may not populate the field if Angular hasn't finished
initializing the form. Fall back to JavaScript-based value injection
with Angular input event trigger when sendKeys produces empty value.
3. After login, wait for the user dropdown to appear in the navbar
(positive signal that login succeeded) instead of relying on modal
invisibility which races with Angular's digest cycle. Then clean up
any lingering backdrop.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments