8cd40bd911
* added check for deleting account * added test for checking if linked accounts exist * clean up * fix * improving test * improving test * improved selector * trying to improve test * improving test * trying to improve test * trying to improve test * refactoring test * refactoring test * refactoring test * improving test * added mocked identityProvider * changed to use `user-profile --------- Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
import { login } from "./login";
|
|
|
|
test("Check page heading", async ({ page }) => {
|
|
await login(page, "alice", "alice", "user-profile");
|
|
await page
|
|
.getByRole("button", {
|
|
name: "Account security",
|
|
})
|
|
.click();
|
|
|
|
const linkedAccountsNavItem = page.getByTestId(
|
|
"account-security/linked-accounts",
|
|
);
|
|
|
|
expect(linkedAccountsNavItem).toBeVisible();
|
|
await linkedAccountsNavItem.click();
|
|
await expect(page.getByTestId("page-heading")).toHaveText("Linked accounts");
|
|
});
|