fix oid4vci tests
Closes #30079 Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>
This commit is contained in:
parent
a099c09859
commit
3e243d77ec
2 changed files with 21 additions and 1 deletions
|
@ -105,7 +105,7 @@ export const Oid4Vci = () => {
|
|||
<SelectOption
|
||||
key={option}
|
||||
value={option}
|
||||
data-testid="select-${option}"
|
||||
data-testid={option}
|
||||
>
|
||||
{option}
|
||||
</SelectOption>
|
||||
|
|
20
js/apps/account-ui/test/oid4vci/oid4vci.spec.ts
Normal file
20
js/apps/account-ui/test/oid4vci/oid4vci.spec.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
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", realm);
|
||||
|
||||
await expect(page.getByTestId("qr-code")).toBeHidden();
|
||||
|
||||
await page.getByTestId("oid4vci").click();
|
||||
await page.getByTestId("menu-toggle").click();
|
||||
|
||||
await expect(page.getByTestId("verifiable-credential")).toBeVisible();
|
||||
await expect(page.getByTestId("natural-person")).toBeVisible();
|
||||
await page.getByTestId("natural-person").click();
|
||||
await expect(page.getByTestId("qr-code")).toBeVisible();
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue