Skip to content

refactor(AI): remove platform modifier key mock - #8496

Merged
utkarsh-bruno merged 1 commit into
usebruno:mainfrom
naman-bruno:fix/ai-unit
Jul 6, 2026
Merged

utkarsh-bruno merged 1 commit into
usebruno:mainfrom
naman-bruno:fix/ai-unit

Conversation

@naman-bruno

@naman-bruno naman-bruno commented Jul 6, 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 automated checks to match the revised prompt hint text shown in the AI assist interface.
    • Simplified test coverage by removing platform-specific shortcut expectations.

@coderabbitai

coderabbitai Bot commented Jul 6, 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: 450718c2-cb8d-4f48-84c2-9654659f4b19

📥 Commits

Reviewing files that changed from the base of the PR and between 732356b and 58a7e57.

📒 Files selected for processing (1)
  • packages/bruno-app/src/components/AIAssist/index.spec.js

Walkthrough

The test file for AIAssist removes platform modifier key mocking (import, jest mock, and beforeEach setup) and replaces an OS-specific shortcut hint assertion with a single expectation for the static text "Enter to generate · Shift+Enter for newline".

Changes

AIAssist Test Update

Layer / File(s) Summary
Remove platform mocking and static hint assertion
packages/bruno-app/src/components/AIAssist/index.spec.js
Removes getPlatformModifierKey import/mock and its beforeEach override, and replaces the parameterized OS-specific hint test with a single assertion for the static hint text.

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

Possibly related PRs

  • usebruno/bruno#8430: Both PRs touch the same AI shortcut-hint expectations and getPlatformModifierKey usage in index.spec.js.

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

Poem

A rabbit hopped through test terrain,
Trimmed the mocks that caused OS pain.
No more ⌘ or Ctrl to chase,
Just one hint text in its place. 🐇
Enter to generate, clean and plain!

🚥 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 describes the main change: removing the platform modifier key mock from AI assist tests.
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.

@utkarsh-bruno
utkarsh-bruno merged commit 153f0cd into usebruno:main Jul 6, 2026
2 of 16 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.

2 participants