Skip to content

refactor: improve element interactions in preferences and fix playwright tests - #6894

Merged
bijin-bruno merged 1 commit into
usebruno:mainfrom
Pragadesh-45:feat/preferences-as-tab
Jan 22, 2026
Merged

bijin-bruno merged 1 commit into
usebruno:mainfrom
Pragadesh-45:feat/preferences-as-tab

Conversation

@Pragadesh-45

@Pragadesh-45 Pragadesh-45 commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR updates the Playwright tests to reflect the change in Preferences from modal behavior to a tab-based layout.

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.
image

Summary by CodeRabbit

Release Notes

  • Tests
    • Updated preferences interaction tests to reflect tab-based navigation for accessing preferences settings.
    • Enhanced test coverage for default collection location preferences and auto-save functionality.
    • Improved test stability with explicit waits for UI readiness and consistent state management.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

Tests for preferences features were refactored to interact with preferences via tab-based navigation instead of modal-based dialogs. Changes include updated selector patterns, explicit General tab navigation, debounce-aware waits, and adjusted UI state restoration after preferences interactions.

Changes

Cohort / File(s) Summary
Preference Test Refactoring
tests/preferences/autosave/autosave.spec.ts, tests/preferences/default-collection-location/default-collection-location.spec.js, tests/preferences/support-links.spec.js
Migrated test interactions from modal-scoped locators to page-scoped selectors (e.g., #autoSaveEnabled). Updated flow to: open Preferences via status bar, wait for tab visibility, explicitly navigate to General tab. Replaced modal closing logic with tab hover + close-icon click pattern. Added debounce-aware waits for autosave. Enhanced default-collection-location tests with new empty-value save scenario and explicit modal visibility waits. Removed modal close from support-links test.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • feature/autoSave (#582) #6225 — Directly updates preference tests with autosave selector and tab navigation pattern changes matching this refactor
  • improve: tests #6321 — Modifies the same autosave test file with related preferences UI interaction changes
  • update: modal styles #6487 — Updates preferences and autosave test flows alongside debounced autosave behavior and modal markup changes

Suggested labels

size/M

Suggested reviewers

  • helloanoop
  • lohit-bruno
  • bijin-bruno
  • naman-bruno

Poem

🎭 From modals to tabs, the tests take flight,
Waits and selectors, now aligned just right,
Each preference flow, a cleaner dance,
General tabs guide the test's advance,
UI state flows like a well-rehearsed chant! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 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 main change: refactoring element interactions in preferences tests due to a UI shift from modal to tab-based layout.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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 and usage tips.

@bijin-bruno
bijin-bruno merged commit 01b87ee into usebruno:main Jan 22, 2026
FraCata00 pushed a commit to FraCata00/bruno that referenced this pull request Feb 9, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Feb 14, 2026
6 tasks
maxenceleblanc pushed a commit to maxenceleblanc/curly_cats2 that referenced this pull request Jul 20, 2026
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