Repository navigation
test(ui): cover the dialog contract of the access dialogs - #1243
Merged
Merged
Conversation
The seven access dialogs sit on the shared dialog component, but only some of them asserted the shared behaviour. One table-driven test now checks that each is named by its heading, takes focus on open, gives it back on close, closes on Escape and has at most one filled button, and that two machine dialogs never share a heading id. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
The mount results are already typed as VueWrapper, so the casts only tripped no-unnecessary-type-assertion. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
TheMeinerLP
force-pushed
the
test/access-dialog-contract
branch
from
November 23, 2026 07:15
1704e65 to
a14b783
Compare
6 of 7 tasks
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 access dialogs (member, confirm, machine, team, user, password reset, SSO provider) were moved onto the shared dialog component, but only some had tests for the shared dialog behaviour. This adds one table-driven test that holds all of them to the same contract: named by heading, focus in and back, Escape closes, at most one filled button, and no fixed heading id on the machine dialog. Covers task 4.2 of unify-dialogs-menus-and-feedback for the dialogs; no production code changes.
Type of change
test- tests onlyHow was this tested?
npx vitest run src/components/access/accessDialogs.contract.test.ts(36 passed)npx vitest runfull frontend suite on main before the change: 424 files, 7383 tests passednpx vitest run src/anchors src/style-gate(211 passed)npm run typecheckcleanChecklist
./gradlew buildpasses locally (frontend only, no backend change)