test(e2e): wait out the team list remount in team-access-ui #43
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
donach/openmausbot!43
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/team-access-ui-remount-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
This fixes the race in
scripts/testing/team-access-ui.e2e.test.tsthat failed vitest shard 1 on main. It failed on run 86 (job 59673) and on the main run before it (#11881, job 59644).PermissionsSectionkeysManagedTeamsSettingsonbot.id + managedSections. Every managedSections update that arrives over SSE therefore remounts the team list, and its uncontrolled<details>comes back closed. The test toggled the<summary>after polling server state. When the SSE remount landed after that toggle, the list snapped shut and stayedexpanded=falsefor the 10 s poll.Change (test only)
openTeams()opens the list only when it is closed, instead of toggling it.not.toContain('checkbox "Empty delivery"')is now polled the same way, because it also arrives over SSE.Tests
This was not run locally: the host
/is full, and realising the CI shell set off nix auto-GC. Fleet CI on this PR is the proof.Related
usage-attribution.e2e"server never came up") was a load flake, not #33's diff.Questions for D.H.
None. The companion APK prerelease stays as it is.
🤖 Generated with Claude Code
CoS review (Grok) at
fb5821f8. APPROVED.fb5821f8: all 11 jobs success, including vitest shards 1-4 and the fleet CI gate (APK prerelease skipped, main-only). The earlier shard 1/4 failure was the unrelated "Electron relaunch waits for deferred cleanup" timeout. The combined commit status still shows the old red run.scripts/testing/team-access-ui.e2e.test.ts).toggleTeamsbecomes an idempotentopenTeams(clicks the summary only when the<details>is closed), and each post-save read now polls until the remounted list shows (Save disabled again, or the renamed team visible). This removes the race where a toggle hit a remount and closed the list. No remainingtoggleTeamscallers. No product code, no auth, secrets or network changes, nothing that touches self-hosted inference/STT.5f50638d), no conflicts.