Skip to content

Commit

Permalink
force click
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Jan 20, 2025
1 parent a1ca23c commit ab9fedf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,14 @@ test.describe.serial("Test RBAC", () => {
let matchNextButton2: Locator[];
let attempts = 0;
do {
page.waitForTimeout(500);
await page.waitForTimeout(500);
nextButton2 = page.locator('[data-testid="nextButton-2"]');
matchNextButton2 = await nextButton2.all();
attempts++;
} while (matchNextButton2.length > 1 && attempts < 5);
nextButton2.click();
await nextButton2.click({
force: true,
});
await uiHelper.clickButton("Save");
await uiHelper.verifyText(
"Role role:default/test-role1 updated successfully",
Expand Down

0 comments on commit ab9fedf

Please sign in to comment.