Skip to content

test(auth): fix modified-indicator inherit spec test - #8550

Merged
bijin-bruno merged 3 commits into
usebruno:mainfrom
pooja-bruno:fix/auth-modified-indicator-inherit-e2e
Jul 9, 2026
Merged

bijin-bruno merged 3 commits into
usebruno:mainfrom
pooja-bruno:fix/auth-modified-indicator-inherit-e2e

Conversation

@pooja-bruno

@pooja-bruno pooja-bruno commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

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.

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
    • Improved automated coverage for auth mode behavior in request panes, including inherited folder auth and status indicators.
    • Adjusted test flows to rely on default inherited auth behavior and verify the auth mode selector state before further assertions.
  • Bug Fixes
    • Improved UI test reliability by adding dedicated data-testid attributes to auth mode selector controls in both gRPC and WebSocket request views.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: dc740579-54f5-46d8-9b87-666ac36bf161

📥 Commits

Reviewing files that changed from the base of the PR and between 44a8d43 and 2adffa6.

📒 Files selected for processing (1)
  • tests/auth/auth-mode/folder-no-auth-stops-inheritance.spec.ts

Walkthrough

Adds test ids to gRPC and WebSocket auth-mode selector UI elements and updates auth-mode e2e coverage to assert the displayed Inherit state through the selector instead of saving it explicitly.

Changes

Auth mode selector test instrumentation

Layer / File(s) Summary
Add data-testid attributes to auth mode selectors
packages/bruno-app/src/components/RequestPane/GrpcRequestPane/GrpcAuth/GrpcAuthMode/index.js, packages/bruno-app/src/components/RequestPane/WSRequestPane/WSAuth/WSAuthMode/index.js
Adds auth-mode-selector and auth-mode-label test ids to the selector wrapper and label markup in both auth mode components.
Update auth-mode test to assert Inherit via selector
tests/auth/auth-mode/modified-indicator-for-auth.spec.ts, tests/auth/auth-mode/folder-no-auth-stops-inheritance.spec.ts
Updates both specs to validate the UI shows Inherit through the selector, and removes the explicit save step/import from the folder inheritance test.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • usebruno/bruno#8027: Related auth modified-indicator behavior around effective inherited auth resolution.

Suggested reviewers: lohit-bruno, naman-bruno, bijin-bruno, sid-bruno

Poem

Tiny testids bloom in the pane,
Inherit now shows without the strain.
Clicks fade out, assertions glow,
The auth mode story reads clean and slow.
✨

🚥 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 matches the main change by describing the modified-indicator inherit auth test fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

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

@bijin-bruno
bijin-bruno merged commit 350e2c5 into usebruno:main Jul 9, 2026
14 of 16 checks passed
sid-bruno added a commit to sid-bruno/bruno that referenced this pull request Aug 21, 2026
* fix: handle missing location header in redirect error response (usebruno#7725)

* fix(request-panel)/websocket and grpc tooltip overflow fixed in request panel (usebruno#8544)

* fix(request-panel)/websocket and grpx tooltip overflow fixed in request panel

* added test ids and updated the locators for request panel icons

* test(auth): fix modified-indicator inherit spec test (usebruno#8550)

* test(auth): fix modified-indicator inherit spec test

* fix(locators): updated locators for inherit

* feat(description): file binary description implementation (usebruno#8434)

* Add description support to file body entries

Covers the UI table, FileEntry schema, .bru and .yml file persistence,
OpenCollection converters, and end-to-end tests.

* chore: update @opencollection/types to version 0.10.0 and adjust related code

* fix: ensure placeholder is displayed correctly in description editor

* fix: improve column resizing logic in EnvironmentVariablesTable

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix: remove unused import of FileEntry in body.ts

* feat: enhance file handling and selection logic in various components

* test: refactor file description tests for improved readability and structure

* refactor: streamline test setup for binary file selection

* test: improve comments for clarity in file body description tests

* refactor: simplify selection update logic in collections slice

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(mount): show requests that failed to load in the collection overview (usebruno#8545)

* fix(mount): show requests that failed to load in the collection overview

Partial/errored requests were being dropped or mis-rendered:

- collection-watcher (v1): the synchronous add path and the change path only
  logged parse errors and never emitted the item, so failed requests never
  reached the renderer. Both now send a partial item, matching the async
  worker path.
- mount v2: reconcile dropped `raw` for errored items; it is now forwarded so
  the item's size can be derived, and size is set for every item.
- RequestsNotLoaded: the relative pathname is computed separator-agnostically
  so it renders on Windows, and errored items are included.

* fix(mount): render v2 requests that failed to parse in the sidebar

An errored request had no parsed `request`, so tree-builder set
`request: undefined`. The main->renderer payload is JSON round-tripped, which
drops undefined keys, so the item reached the renderer without a `request`
property and `isItemARequest` (which requires it) excluded it from the sidebar.
Give errored items an empty `request` object so they survive serialization and
render.

Also render the "not loaded" table from the same filtered list used for the
empty-state check, so errored items are listed consistently.

* fix(mount): guard against NaN size and unstable keys for unloaded requests

* fix(mount): recover unloaded requests on valid re-parse without crashing the reducer

* feat(mount): moved the assignments in change reducer

---------

Co-authored-by: Chirag Chandrashekhar <[email protected]>

---------

Co-authored-by: Pragadesh-45 <[email protected]>
Co-authored-by: sachin-thakur-bruno <[email protected]>
Co-authored-by: Pooja <[email protected]>
Co-authored-by: Sid <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Chirag Chandrashekhar <[email protected]>
Co-authored-by: Chirag Chandrashekhar <[email protected]>
Co-authored-by: Bijin A B <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants