Repository navigation
fix(tests): Wait for displayed inputs in invite acceptance tests - #131279
Merged
Merged
Conversation
The accept-invitation page fades its forms in with framer-motion, so an input is in the DOM before Selenium can type into it. Browser.element() only waits for presence, and send_keys then raised ElementNotInteractableException in test_create_account_and_accept_invite and test_resume_mfa_sign_in_after_refresh. Add Browser.displayed_element(), which waits for a displayed match, and use it for the typed inputs. It replaces the same helper that test_auth_react defined for its one-time password input. Refs DI-2875 Co-Authored-By: Burak Yigit Kaya <[email protected]>
BYK
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
ElementNotInteractableExceptionflakes inAcceptOrganizationInviteTest::test_create_account_and_accept_inviteandtest_resume_mfa_sign_in_after_refresh.The accept-invitation page fades its forms in with framer-motion, so an input is in the DOM before Selenium can type into it.
Browser.element()only waits for the input to be present. #129542 fixed the same problem intest_auth_react.pywith a local helper.That helper is now
Browser.displayed_element(), which waits for a displayed match and skips stale elements. The invite tests use it for every input they type into, andtest_auth_react.pyuses it in place of its local copy. Only tests change, and there's no UI change.Owner: no CODEOWNERS entry covers
tests/acceptance/.src/sentry/testutils/belongs to @getsentry/app-backend.Refs DI-2875
via @BYK.
--
View Session [Sentry]