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
{{ message }}
Repository navigation
Flaky test: OrganizationInvitationTokenTest reads browser and server state before the request completes #55241
I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
organizations
Bug Description
OrganizationInvitationTokenTest fails intermittently with headless Chrome. The tests read state right after a click or a form submit, before the browser and the server have finished: organization.members().count() right after registerPage.register(...) or updateProfilePage.update(...), and driver.page().getCurrentPageId() right after loginPage.submit(). On Chrome, reading the page id during the navigation also fails with WebDriverException: Node with given id does not belong to the document.
Version
nightly
Regression
The issue is a regression
Expected behavior
The tests pass reliably, independent of the timing of the page navigation and of the server.
Actual behavior
OrganizationInvitationTokenTest.testRegistrationConsumesInvitation:119 expected: <1> but was: <0>
OrganizationInvitationTokenTest.testBrokerConsumesInvitation:163 WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
OrganizationInvitationTokenTest.testBrokerConsumesInvitation:167 expected: <1> but was: <0>
How to Reproduce?
Run ./mvnw package -f tests/pom.xml -Dkc.test.browser=chrome-headless -Dtest='OrganizationInvitationTokenTest' a few times.
Anything else?
OrganizationInvitationTokenTest exists on release/26.6 and release/26.8.
changed the title [-]Flaky test: Organization broker and invitation tests read browser state before navigation completes[/-][+]Flaky test: Organization broker and invitation tests fail intermittently on Chrome and Firefox[/+]on Nov 16, 2026
changed the title [-]Flaky test: Organization broker and invitation tests fail intermittently on Chrome and Firefox[/-][+]Flaky test: OrganizationInvitationTokenTest reads browser and server state before the request completes[/+]on Nov 16, 2026
Activity
[-]Flaky test: Organization broker and invitation tests read browser state before navigation completes[/-][+]Flaky test: Organization broker and invitation tests fail intermittently on Chrome and Firefox[/+][-]Flaky test: Organization broker and invitation tests fail intermittently on Chrome and Firefox[/-][+]Flaky test: OrganizationInvitationTokenTest reads browser and server state before the request completes[/+]Wait for browser-driven changes in OrganizationInvitationTokenTest