mirror of
https://github.com/keycloak/keycloak.git
synced 2026-06-09 09:04:21 -04:00
Flaky realm role test
* Use test id to click button instead of text locator. Fixes #42235 Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
parent
665f4140da
commit
b460b76ff7
2 changed files with 3 additions and 7 deletions
|
|
@ -10,11 +10,7 @@ import {
|
|||
fillAttributeData,
|
||||
goToAttributesTab,
|
||||
} from "../utils/attributes.ts";
|
||||
import {
|
||||
assertRequiredFieldError,
|
||||
clickCancelButton,
|
||||
clickSaveButton,
|
||||
} from "../utils/form.ts";
|
||||
import { assertRequiredFieldError, clickSaveButton } from "../utils/form.ts";
|
||||
import { login } from "../utils/login.ts";
|
||||
import { assertNotificationMessage } from "../utils/masthead.ts";
|
||||
import { confirmModal } from "../utils/modal.ts";
|
||||
|
|
@ -60,7 +56,7 @@ test.describe.serial("Realm roles test", () => {
|
|||
|
||||
await fillRoleData(page, "admin");
|
||||
await clickSaveButton(page);
|
||||
await clickCancelButton(page);
|
||||
await goToRealmRoles(page);
|
||||
|
||||
await clickCreateRoleButton(page);
|
||||
await fillRoleData(page, "admin");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { type Page, expect } from "@playwright/test";
|
||||
|
||||
export async function clickCreateRoleButton(page: Page) {
|
||||
await page.locator("text=Create role").click();
|
||||
await page.getByTestId("create-role").click();
|
||||
}
|
||||
|
||||
export async function goToAssociatedRolesTab(page: Page) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue