Skip to content

test(workspaces): asserted the header reads My Workspace after closing the active workspace - #9489

Merged
utkarsh-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:cr-e2e/bru-3663
Oct 9, 2026
Merged

utkarsh-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:cr-e2e/bru-3663

Conversation

@ravindra-bruno

@ravindra-bruno ravindra-bruno commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

BRU-3663
#8425

Description

The close-workspace e2e only checked that the header didn't read "Scratch", never what it actually showed.

Problem

That check would still pass if the header showed the wrong name or was missing, so the bug could come back unnoticed.

Fix

The test now opens the workspace overview first, then checks that the header reads exactly My Workspace after closing.

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Tests
    • Updated workspace-switching coverage to verify that the workspace switcher shows “My Workspace” before opening and after closing another workspace.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: usebruno/bruno/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: da8c3a7e-c6cd-4f77-a928-2f4b614bbc37
📥 Commits

Reviewing files that changed from the base of the PR and between 1301ea1 and 03c9324.

📒 Files selected for processing (1)
  • tests/workspace/close-workspace-returns-to-default.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


Walkthrough

The workspace test now checks that the switcher displays “My Workspace” before opening WorkspaceB and after closing it.

Changes

Workspace return verification

Layer / File(s) Summary
Verify default workspace switcher
tests/workspace/close-workspace-returns-to-default.spec.ts
The test checks that the switcher displays “My Workspace” before opening WorkspaceB and after closing it. It also checks that the switcher is visible after closing WorkspaceB.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 03c93

The test now checks that the default workspace name appears before switching and after closing WorkspaceB. No merge-blocking risk is apparent.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main test change: asserting that the header reads "My Workspace" after closing the active workspace.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

The home button points the way
WorkspaceB takes a turn
The switcher names the home again
“My Workspace” shines in view
The test confirms the return

Comment @coderabbitai help to get the list of available commands.

@utkarsh-bruno
utkarsh-bruno merged commit d46256f into usebruno:main Oct 9, 2026
16 of 19 checks passed
KoblerS pushed a commit to KoblerS/bruno that referenced this pull request Oct 10, 2026
sid-bruno pushed a commit that referenced this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants