You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: Add playwright coverage for open multiple nested collections in bruno. - #9696
Adds Playwright coverage for opening collections that live in nested folders, and tags the existing multiple-collection open flow as a sanity test.
TC-4448 — a parent folder that itself is a collection, with two sibling collections inside it, lists all three in the Open Collection modal. Selecting all of them opens all three in the sidebar.
TC-4449 — collections several folders deep are discovered from the chosen root and open in the sidebar after they are selected.
TC-777 — Added TC id for opening multiple collections is now part of the @sanity run.
Fix
For TC-777 Save and restore showOpenDialog on global inside the Electron process in open-multiple-collections.spec.ts, matching the other open-collection specs.
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.
Expanded automated coverage for opening collections nested across multiple folder levels, including sibling collections and collections at greater depths.
Added checks that collections appear in the picker and sidebar after selection, including when opening multiple collections.
Improved test isolation by restoring dialog behavior and closing opened collections after each test.
Auto reviews are disabled on base/target branches other than the default branch.
🗂️ Base branches to auto review: 2
main
release/*
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The change adds Playwright coverage for opening collections nested at multiple folder depths. It also updates dialog restoration and adds named steps and test metadata to the existing multiple-collections tests.
New tests create nested collections, open their parent or common root, check that collections appear in the picker, and verify that selected collections appear in the sidebar.
Multiple-collection test steps tests/collection/open/open-multiple-collections.spec.ts
The tests group existing actions and checks into named steps. The first test saves and restores the dialog handler through global and adds a TC-777 prefix and @sanity tag.
The change adds collection-picker coverage without an identified merge-blocking issue.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly summarizes the main change: adding Playwright coverage for opening multiple nested collections in Bruno.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files.
Finishing Touches
Fix failing CI checks
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Create a new PR
Autofix · 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.
Three folders wait beneath the root, The picker lists each nested route. Select, and see them in the side, Test steps mark the checks inside. The dialog returns to its place.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
⚠️Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Remove the saved dialog global after restoration.
This hook restores dialog.showOpenDialog but leaves global.__origShowOpenDialog in the worker-scoped Electron process. Delete the saved property after restoration. Apply the same cleanup in open-nested-collections.spec.ts and open-multiple-collections.spec.ts; both use this key. Bruno’s coding standards prohibit shared global app state, and the retrieved test guidance requires cleanup of globals created by tests. (raw.githubusercontent.com)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
The invalid-path test sleeps for a fixed second before asserting on the error toast, so it flakes when toasts render slower or faster than the timeout while the following expect already retries.
Suggested change
awaittest.step('Wait for error toasts to appear',async()=>{
The reason will be displayed to describe this comment to others. Learn more.
TC-4449 checks nested collection names only, so a regression that shows wrong relative paths in the picker still passes while users cannot tell deep collections apart.
The reason will be displayed to describe this comment to others. Learn more.
This file imports only closeAllCollections while it still uses raw page.locator and getByTestId calls that buildCommonLocators in tests/utils/page already centralizes.
The reason will be displayed to describe this comment to others. Learn more.
The pre-open sidebar check uses inline #sidebar-collection-name selectors instead of the shared sidebar.collection locator used in the new nested open specs.
The reason will be displayed to describe this comment to others. Learn more.
Post-open assertions still target #sidebar-collection-name directly, so a sidebar DOM change would not fail consistently with the helper-based nested specs.
The reason will be displayed to describe this comment to others. Learn more.
The invalid-path test snapshots open collection count with a raw #sidebar-collection-name locator instead of sidebar.collection() from tests/utils/page.
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
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.
Description
Adds Playwright coverage for opening collections that live in nested folders, and tags the existing multiple-collection open flow as a sanity test.
@sanityrun.Fix
showOpenDialogonglobalinside the Electron process inopen-multiple-collections.spec.ts, matching the other open-collection specs.Screenshots
Attaching screen records for reference:
Screen.Recording.2026-10-29.at.4.02.55.PM.mov
Screen.Recording.2026-10-29.at.4.08.09.PM.mov
Contribution Checklist:
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