Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, expect, test } from "@playwright/test";
import { Locator, Page, expect, test } from "@playwright/test";
import { Response, Roles } from "../../../support/pages/rbac";
import { UI_HELPER_ELEMENTS } from "../../../support/pageObjects/global-obj";
import {
Expand Down Expand Up @@ -266,8 +266,22 @@ test.describe.serial("Test RBAC", () => {
await page.locator(HOME_PAGE_COMPONENTS.searchBar).fill("Guest User");
await page.click('button[aria-label="Remove"]');
await uiHelper.verifyHeading("Users and groups (1 user, 1 group)");
await uiHelper.clickButton("Next");
await uiHelper.clickButton("Next");
await uiHelper.clickByDataTestId("nextButton-1");
await page.waitForSelector(".permission-policies-form", {
state: "visible",
});
let nextButton2: Locator;
let matchNextButton2: Locator[];
let attempts = 0;
do {
await page.waitForTimeout(500);
nextButton2 = page.locator('[data-testid="nextButton-2"]');
matchNextButton2 = await nextButton2.all();
attempts++;
} while (matchNextButton2.length > 1 && attempts < 5);
await nextButton2.click({
force: true,
});
await uiHelper.clickButton("Save");
await uiHelper.verifyText(
"Role role:default/test-role1 updated successfully",
Expand Down
Loading