keycloak-scim/js/apps/account-ui/test/my-resources.spec.ts

15 lines
512 B
TypeScript
Raw Normal View History

import { test, expect } from "@playwright/test";
import { login } from "./login";
test.describe("My resources page", () => {
test("List my resources", async ({ page }) => {
await page.goto(
process.env.CI ? "/realms/photoz/account" : "/?realm=photoz",
);
login(page, "jdoe", "jdoe");
await page.getByTestId("resources").click();
//await expect(page.getByTestId("row[0].name")).toHaveText("one");
await expect(page.getByRole("gridcell", { name: "one" })).toBeVisible();
});
});