keycloak-scim/js/apps/account-ui/test/oid4vci/oid4vci.spec.ts
Stefan Wiedemann 0f6f9543ba
Add oid4vci to the account console (#29174)
closes #25945

Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>


Co-authored-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-05-31 15:11:32 +02:00

19 lines
No EOL
758 B
TypeScript

import { expect, test } from "@playwright/test";
import { login } from "../login";
const realm = "verifiable-credentials"
test.describe("Verifiable Credentials page", () => {
test("Get offer for test-credential.", async ({ page }) => {
await login(page, "test-user", "test")
await expect(page.getByTestId("qr-code")).toBeHidden
await page.getByTestId("oid4vci").click
await page.getByTestId("credential-select").click
await expect(page.getByTestId("select-verifiable-credential")).toBeVisible
await expect(page.getByTestId("select-natural-person")).toBeVisible
await page.getByTestId("select-natural-person").click
await expect(page.getByTestId("qr-code")).toBeVisible
})
})