Skip to content

test(autocomplete): update modifier keymap test - #8625

Closed
naman-bruno wants to merge 1 commit into
usebruno:mainfrom
naman-bruno:fix/autocom-unit
Closed

naman-bruno wants to merge 1 commit into
usebruno:mainfrom
naman-bruno:fix/autocom-unit

Conversation

@naman-bruno

@naman-bruno naman-bruno commented Jul 15, 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
    • Updated autocomplete shortcut coverage to support multiple occurrences of the platform-specific modifier key.

@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: 0f8b889b-5e67-4708-8ff6-2d3817c7aa23

📥 Commits

Reviewing files that changed from the base of the PR and between 8c491a5 and 6c45bc4.

📒 Files selected for processing (1)
  • packages/bruno-app/src/components/Preferences/AI/AutocompletePane.spec.js

Walkthrough

The autocomplete shortcut test now verifies that at least one platform modifier-key text node exists, allowing multiple matching occurrences.

Changes

Autocomplete shortcut testing

Layer / File(s) Summary
Modifier-key assertion update
packages/bruno-app/src/components/Preferences/AI/AutocompletePane.spec.js
The test uses getAllByText(modifier).length > 0 instead of requiring a single matching element.

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

Possibly related PRs

Suggested reviewers: ravindra-bruno, helloanoop, bijin-bruno

Poem

A shortcut key appears,
More than once, yet all is clear.
The test now counts what it can see,
Robust as shortcuts ought to be.

🚥 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 accurately reflects the PR’s only change: updating the autocomplete modifier keymap test.
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.

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.

1 participant