OpenSlides / OpenSlides/openslides-client

Fix failing test on logout

Open
#5,866 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
35
Forks
52
Avg merge
1d 9h
Merged PRs (30d)
52

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with integration/login.spec.ts:192:9 and run the sign-in and out integration test in Firefox, reproducing logout from one tab while another is on meeting autopilot. Inspect the console errors and lifecycle behavior reported during the failure. Done means the second tab consistently redirects to the login page after logout, with the test passing reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, typescript
Domain
authentication, frontend, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.