2023-10-26 11:16:09 +00:00
|
|
|
import { test, expect } from "@playwright/test";
|
|
|
|
import { login } from "./login";
|
|
|
|
|
|
|
|
test("Check page heading", async ({ page }) => {
|
|
|
|
await login(page, "alice", "alice", "user-profile");
|
2024-02-01 15:46:11 +00:00
|
|
|
await page.getByTestId("accountSecurity").click();
|
2023-10-26 11:16:09 +00:00
|
|
|
|
|
|
|
const linkedAccountsNavItem = page.getByTestId(
|
|
|
|
"account-security/linked-accounts",
|
|
|
|
);
|
|
|
|
|
2024-06-03 11:42:44 +00:00
|
|
|
await expect(linkedAccountsNavItem).toBeVisible();
|
2023-10-26 11:16:09 +00:00
|
|
|
await linkedAccountsNavItem.click();
|
|
|
|
await expect(page.getByTestId("page-heading")).toHaveText("Linked accounts");
|
|
|
|
});
|