added type check to playwright tests - #51035
Open
edewit wants to merge 1 commit into
Open
Conversation
fixes: keycloak#38056 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CI type-checking for Admin and Account UI Playwright tests, addressing #38056.
Changes:
- Adds
test:typecheckscripts and CI steps. - Separates runtime and type-only Playwright imports.
- Moves test route generation into a dedicated utility.
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/js-ci.yml |
Runs Playwright type checks in UI CI jobs. |
js/apps/account-ui/package.json |
Adds Account UI test type-check script. |
js/apps/admin-ui/package.json |
Adds Admin UI test type-check script. |
js/apps/admin-ui/test/utils/routes.ts |
Adds typed route helpers for tests. |
js/apps/admin-ui/test/utils/attributes.ts |
Uses a type-only Page import. |
js/apps/admin-ui/test/utils/form.ts |
Uses type-only Playwright imports. |
js/apps/admin-ui/test/utils/masthead.ts |
Uses a type-only Page import. |
js/apps/admin-ui/test/utils/modal.ts |
Uses a type-only Page import. |
js/apps/admin-ui/test/realm-settings/general.ts |
Uses a type-only Page import. |
js/apps/admin-ui/test/permissions/policy.spec.ts |
Corrects the Playwright test import. |
js/apps/admin-ui/test/autentication/flows.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/autentication/policies-ciba.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/autentication/policies.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/client-scope/main.spec.ts |
Uses test route helpers. |
js/apps/admin-ui/test/client-scope/mappers.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/client-scope/oid4vci-client-scope.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/client-scope/oid4vci-mappers.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/client-scope/scope.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/clients/assign-oid4vci-client-scope.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/clients/ssf-receiver.spec.ts |
Uses the SSF test route helper. |
js/apps/admin-ui/test/clients/ssf-stream.spec.ts |
Uses the SSF test route helper. |
js/apps/admin-ui/test/clients/ssf-subjects.spec.ts |
Uses the SSF test route helper. |
js/apps/admin-ui/test/clients/ssf.spec.ts |
Uses client test route helpers. |
js/apps/admin-ui/test/realm-settings/oid4vci-attributes.spec.ts |
Uses the test route utility. |
js/apps/admin-ui/test/users/main.spec.ts |
Uses user and realm test route helpers. |
js/apps/admin-ui/test/workflows/workflow-user-tab.spec.ts |
Uses the user test route helper. |
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.BrowserFlowTest#testUserWithOneAdditionalFactorOtpSuccessorg.keycloak.testsuite.oauth.ClientAuthPostMethodTest#testPostAuthenticationNotAllowedWhenBasicRequestedorg.keycloak.testsuite.oauth.ClientAuthPostMethodTest#testBasicAuthenticationNotAllowedWhenPostRequested |
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.
fixes: #38056
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com