Refactor nav config tests to use name-based group lookups#7363
Merged
gilluminate merged 5 commits intomainfrom Feb 17, 2026
Merged
Refactor nav config tests to use name-based group lookups#7363gilluminate merged 5 commits intomainfrom
gilluminate merged 5 commits intomainfrom
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Greptile OverviewGreptile SummaryRefactored Key improvements:
This change makes tests more resilient to nav config reordering and provides better failure messages when groups are missing. Confidence Score: 5/5
Important Files Changed
|
jpople
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
Description Of Changes
Refactor
nav-config.test.tsto replace brittle index-based nav group assertions (navGroups[0],navGroups[1], etc.) with name-based lookups using.find(). Add afindGrouptest helper that locates groups by title and asserts existence, providing clear failure messages if a group is ever missing.Also update the "configure by feature flags" tests to test a real feature flag (previously they were asserting a feature flag that got removed and since then have really been testing nothing!).
Code Changes
findGrouphelper that asserts group existence and returns non-nullable resultnavGroups[N]) withfindGroupor.find()by titleDetection & Discoverygroup anddataCatalogflag instead of the now removedorganizationManagementflag on Settings.toBeUndefined()assertion for groups that should not exist.toEqual("Domain verification")/.toEqual(undefined)with.toBeDefined()/.toBeUndefined()Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdated