Repository navigation
fix(e2e): expect the files room when an admin joins a project - #802
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — the server's namespace set grew by files in d1de3d6d, and the only exhaustive admin assertion was left behind, so updating the expectation is the right (and only) fix.
Reviewed changes — 1 file, 1 commit.
apps/e2e/tests/realtime/event-authorization.spec.ts— adds"files"to the sorted expected room list for the"gives the admin every room"case, matching all 11 entries inNAMESPACE_PERMISSIONS(admin's wildcard grantsfiles:readon the project). The array stays alphabetical and both sides are sorted, so ordering is irrelevant.workspace:filesis joined at connect time rather than byjoin, so its absence here is correct.
Only this spec asserts the full set exhaustively; file-changes.spec.ts already covers files with toContain, so nothing else needs updating for this regression.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fixes the
e2e-testsworkflow failure from run 44680990392.Joining a project › gives the admin every roomfailed on every browser (chromium, firefox, webkit, mobile-chrome, mobile-safari). The realtime service now also puts an admin in afilesroom when joining a project, but the test's expected room list did not include it:This adds
"files"to the expected list inapps/e2e/tests/realtime/event-authorization.spec.ts. Test-only change; no product code is touched.Not addressed
file-changes.spec.ts› "a folder created in the general scope appears without a reload" also failed on the mobile projects only (passes on desktop). It looks like a race between the socket joining its room and the folder being created; not confirmed and not changed here.sessions.spec.ts› "signing out all other devices" failed on mobile-safari after retries; unrelated to this change.Testing