Skip to content

Commit

Permalink
Rewrite WebAuthn tests to account testsuite where they belong
Browse files Browse the repository at this point in the history
Follows-up: keycloak#27510

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
  • Loading branch information
hmlnarik committed Apr 17, 2024
1 parent 0f88753 commit 9861762
Show file tree
Hide file tree
Showing 7 changed files with 1,296 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/apps/account-ui/package.json
Expand Up @@ -36,6 +36,7 @@
"devDependencies": {
"@keycloak/keycloak-admin-client": "workspace:*",
"@playwright/test": "^1.43.1",
"playwright-core": "^1.43.1",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
Expand Down
2 changes: 2 additions & 0 deletions js/apps/account-ui/test/realm.setup.ts
Expand Up @@ -5,9 +5,11 @@ import { importRealm } from "./admin-client";
import groupsRealm from "./realms/groups-realm.json" assert { type: "json" };
import resourcesRealm from "./realms/resources-realm.json" assert { type: "json" };
import userProfileRealm from "./realms/user-profile-realm.json" assert { type: "json" };
import webauthnRealm from "./realms/testrealm-webauthn.json" assert { type: "json" };

setup("import realm", async () => {
await importRealm(groupsRealm as RealmRepresentation);
await importRealm(resourcesRealm as RealmRepresentation);
await importRealm(userProfileRealm as RealmRepresentation);
await importRealm(webauthnRealm as RealmRepresentation);
});
1 change: 1 addition & 0 deletions js/apps/account-ui/test/realm.teardown.ts
Expand Up @@ -5,4 +5,5 @@ setup("delete realm", async () => {
await deleteRealm("photoz");
await deleteRealm("groups");
await deleteRealm("user-profile");
await deleteRealm("webauthn");
});

0 comments on commit 9861762

Please sign in to comment.