Skip to content

fix(tests): Wait for displayed inputs in invite acceptance tests - #131279

Merged
BYK merged 1 commit into
masterfrom
fix/acceptance-wait-for-displayed-inputs
Nov 17, 2026
Merged

BYK merged 1 commit into
masterfrom
fix/acceptance-wait-for-displayed-inputs

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Fixes ElementNotInteractableException flakes in AcceptOrganizationInviteTest::test_create_account_and_accept_invite and test_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 in test_auth_react.py with 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, and test_auth_react.py uses 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]

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]>
@linear-code

linear-code Bot commented Nov 16, 2026

Copy link
Copy Markdown

DI-2875

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 16, 2026
@BYK
BYK marked this pull request as ready for review November 17, 2026 13:02
@BYK
BYK requested a review from a team as a code owner November 17, 2026 13:02
@sentry-junior
sentry-junior Bot requested a review from BYK November 17, 2026 13:02
@BYK
BYK merged commit 1c60b87 into master Nov 17, 2026
101 checks passed
@BYK
BYK deleted the fix/acceptance-wait-for-displayed-inputs branch November 17, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant