Skip to content

Fix failing test on logout #5866

Description

@bastianjoel

Describe the bug
When logging out in another tab the redirect to the login page on other tabs do not work sometimes.

This is the issue that makes one of the integration test integration/login.spec.ts:192:9 › Testing the sign in and out process › open login after logout via api fail sometimes. (e.g. https://github.com/OpenSlides/openslides-client/actions/runs/21871733607/job/63128668792)

How to Reproduce

  1. Login to openslides
  2. Open a second tab
  3. Navigate to meeting autopilot in second tab
  4. Logout in first tab

Now sometimes the user is not redirected to the login page in the second tab. Another observation is that there seem to be errors in the console when this happens. I have seen different errors.
I assume that those interrupt the lifecycle reboot.

Expected behavior
The user should be logged out in both tabs.

Additional context
I was able to reproduce this in Firefox. Cannot guarantee that this also happens in chromium.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions