Skip to content

Flaky test: OrganizationInvitationTokenTest reads browser and server state before the request completes #55241

Closed

Description

@ahus1

Before reporting an issue

  • 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.

Activity

  1. added theissue type on Nov 16, 2026
  2. 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
  3. 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
  4. added a commit that references this issue on Nov 16, 2026
    0151c82
  5. added a commit that references this issue on Nov 17, 2026
    3d9d3d0
  6. self-assigned this
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

No fields configured for bug.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions