Skip to content

fix(e2e): expect the files room when an admin joins a project - #802

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-file-testings
Nov 20, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-file-testings

Conversation

@pikann

@pikann pikann commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the e2e-tests workflow failure from run 44680990392.

Joining a project › gives the admin every room failed on every browser (chromium, firefox, webkit, mobile-chrome, mobile-safari). The realtime service now also puts an admin in a files room when joining a project, but the test's expected room list did not include it:

  "environments",
+ "files",
  "members",

This adds "files" to the expected list in apps/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

  • Biome check on the edited file passes.
  • The Playwright suite was not re-run locally; CI on this PR will confirm.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 in NAMESPACE_PERMISSIONS (admin's wildcard grants files:read on the project). The array stays alphabetical and both sides are sorted, so ordering is irrelevant. workspace:files is joined at connect time rather than by join, 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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann pikann changed the title feat: add 'files' to project joining permissions in event authorizati… fix(e2e): expect the files room when an admin joins a project Nov 20, 2026
@pikann
pikann merged commit 6248c31 into master Nov 20, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-file-testings branch November 20, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant