Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): adjust selectors for rbac test #2155

Merged
merged 5 commits into from
Jan 20, 2025
Merged
Changes from 2 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
13 changes: 10 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,15 @@ 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;
do {
nextButton2 = page.getByTestId("nextButton-2");
} while (nextButton2.all.length > 1);
nextButton2.click();
nilgaar marked this conversation as resolved.
Show resolved Hide resolved
await uiHelper.clickButton("Save");
await uiHelper.verifyText(
"Role role:default/test-role1 updated successfully",
Expand Down
Loading