Skip to content

Commit bef01de

Browse files
committed
fix: add missing Next button click in RBAC edit role test
The RBAC edit role wizard now has an additional step between permissions and review, requiring an extra Next button click before the Save button appears. Updated the test to click through all steps correctly.
1 parent 0332003 commit bef01de

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,17 @@ test.describe("Test RBAC", () => {
432432
await page.click(rbacPo.selectMember("Guest User"));
433433
await uiHelper.verifyHeading(rbacPo.regexpShortUsersAndGroups(1, 1));
434434
await uiHelper.clickByDataTestId("nextButton-1");
435-
// Wait for next step to be ready and clickable (use .first() to handle multiple Next buttons)
435+
// Wait for permissions step to be ready
436436
const nextButton2 = page.getByTestId("nextButton-2").first();
437437
await expect(nextButton2).toBeVisible();
438438
await expect(nextButton2).toBeEnabled();
439439
await nextButton2.click();
440-
// Wait for review step before Save
440+
// Wait for next step and click Next again to reach review step
441+
const nextButton3 = page.getByRole("button", { name: "Next" }).first();
442+
await expect(nextButton3).toBeVisible();
443+
await expect(nextButton3).toBeEnabled();
444+
await nextButton3.click();
445+
// Now wait for review step with Save button
441446
await expect(page.getByRole("button", { name: "Save" })).toBeVisible();
442447
await uiHelper.clickButton("Save");
443448
await uiHelper.verifyText(

0 commit comments

Comments
 (0)