Skip to content

test(ai): fixed keymap modifier assertions for duplicate ⌘/Ctrl in au… - #8615

Merged
naman-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:fix/ai-autocomplete-keymap-modifier-tests
Jul 15, 2026
Merged

naman-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:fix/ai-autocomplete-keymap-modifier-tests

Conversation

@ravindra-bruno

@ravindra-bruno ravindra-bruno commented Jul 15, 2026 •

Copy link
Copy Markdown
Collaborator

…tocomplete hints

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 AI autocomplete shortcut hint checks to support multiple matching shortcut displays.
    • Updated browser and component tests to verify the first or any applicable shortcut hint reliably.

@coderabbitai

coderabbitai Bot commented Jul 15, 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: 9f6f8db4-9081-44e5-aa94-9d75f60906ea

📥 Commits

Reviewing files that changed from the base of the PR and between e46f87f and 8a2c976.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/Preferences/AI/AutocompletePane.spec.js
  • tests/preferences/ai/ai-shortcut-hints.spec.ts

Walkthrough

AI shortcut tests were updated so assertions tolerate multiple matching shortcut elements in both the React component spec and the Playwright test.

Changes

AI shortcut assertion updates

Layer / File(s) Summary
Shortcut test assertions
packages/bruno-app/src/components/Preferences/AI/AutocompletePane.spec.js, tests/preferences/ai/ai-shortcut-hints.spec.ts
React tests now verify one or more matching modifier elements, while the Playwright test asserts against the first matching shortcut element.

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

Possibly related PRs

Suggested labels: size/S

Suggested reviewers: utkarsh-bruno, sid-bruno, helloanoop, lohit-bruno, bijin-bruno

Poem

Shortcuts may appear in a pair,
The tests now find them anywhere.
First match or many in sight,
Assertions stay polite.
Tiny changes, behavior bright.

🚥 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 matches the PR’s main change: fixing AI autocomplete keymap modifier assertions for duplicate ⌘/Ctrl hints.
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.

@naman-bruno
naman-bruno merged commit 33ce3fa into usebruno:main Jul 15, 2026
16 of 18 checks passed
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.

3 participants