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",
|
|
|
|
);
|
|
|
|
|
|
|
|
expect(linkedAccountsNavItem).toBeVisible();
|
|
|
|
await linkedAccountsNavItem.click();
|
|
|
|
await expect(page.getByTestId("page-heading")).toHaveText("Linked accounts");
|
|
|
|
});
|