Repository navigation
test(ui): cover the dialog contract of the settings dialogs - #1257
Merged
Merged
Conversation
The conflict and delete entry dialogs had no shared check for name, focus, Escape and the single filled button. The other settings dialogs, the wizard, the review sheet and the download menu already assert these rules in their own test files. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
Cast the dialog components to Component so the linter no longer sees error typed values, and drop the redundant wrapper assertion. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
TheMeinerLP
force-pushed
the
test/settings-dialog-contract
branch
from
November 23, 2026 07:45
ed519d4 to
fbec26d
Compare
7 tasks done
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.
Description
The settings dialogs were already moved onto the shared dialog, but two of them (conflict and delete entry) were only checked in parts. This adds one contract test that holds every dialog to the same rules: it is named by its heading, takes focus when it opens, gives it back when it closes, closes on Escape and shows at most one filled button. The other settings dialogs, the wizard, the review sheet and the download menu already cover these rules in their own test files. Part of task 4.4 of unify-dialogs-menus-and-feedback. Test only, no visible change.
Type of change
test- tests onlyHow was this tested?
npx vitest run src/components/settings/settingsDialogs.contract.test.ts: 10 passednpx vitest run src/anchors src/style-gate: 211 passedChecklist
CLAUDE.md./gradlew buildpasses locally: not applicable, frontend test only