Keycloak
15 строк · 507.0 Байт
1import { test, expect } from "@playwright/test";2import { login } from "./login";3
4test("Check page heading", async ({ page }) => {5await login(page, "alice", "alice", "user-profile");6await page.getByTestId("accountSecurity").click();7
8const linkedAccountsNavItem = page.getByTestId(9"account-security/linked-accounts",10);11
12expect(linkedAccountsNavItem).toBeVisible();13await linkedAccountsNavItem.click();14await expect(page.getByTestId("page-heading")).toHaveText("Linked accounts");15});16