Skip to content

test(ui): pin the outlined fields and primitive controls of six forms - #1308

Merged
TheMeinerLP merged 1 commit into
mainfrom
test/task-6-3-form-controls
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
test/task-6-3-form-controls

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Several forms of the dashboard had mixed text field variants and hand-built controls, and nothing stopped them from coming back. This adds the guard from task 6.3 of migrate-content-to-components: a small test helper checks that every text field is the outlined variant and that every radio button and checkbox comes from a primitive. The tests of CreateTokenDialog, PolicyDialog, SearchFilters (a new test file), AuditView, PasswordCard and FileUpload use it. Test-only; no component is changed.

Type of change

  • test - tests only

How was this tested?

  • npm run eslint and npm run typecheck in reposilite-frontend: clean
  • vitest on the six touched test files plus src/anchors and src/style-gate: 321 passed
  • Mutation check: switching one PasswordCard field to filled makes the new test fail

The components were already migrated on main, so the new tests pass there and act as regression guards. The DryRunStep and SupportView button assertions of 6.3 are left to 6.6: SystemInfoView still has raw buttons, so asserting them now would fail.

Checklist

  • Commit messages follow the Conventional Commits convention
  • Tests cover the change
  • ./gradlew build passes locally (frontend only change, not run)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
The form rule of the content migration (task 6.3) had no test, so a
filled text field or a hand-built radio button or checkbox could slip
back into these forms unnoticed. A shared helper now asserts that every
text field is outlined and that every radio button and checkbox is an
MdRadio or MdCheckbox, and the tests of CreateTokenDialog, PolicyDialog,
SearchFilters (new test file), AuditView, PasswordCard and FileUpload
call it.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP
TheMeinerLP force-pushed the test/task-6-3-form-controls branch from 7322ddd to 685361d Compare November 23, 2026 13:38
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 314714e Nov 23, 2026
39 checks passed
@TheMeinerLP
TheMeinerLP deleted the test/task-6-3-form-controls branch November 23, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant