OpenSlides / OpenSlides/openslides-client
Fix failing test on logout
Nobody has claimed this yet.
- 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
- Login to openslides
- Open a second tab
- Navigate to meeting autopilot in second tab
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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