Skip to content

Commit ab9fedf

Browse files
committed
force click
1 parent a1ca23c commit ab9fedf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,14 @@ test.describe.serial("Test RBAC", () => {
274274
let matchNextButton2: Locator[];
275275
let attempts = 0;
276276
do {
277-
page.waitForTimeout(500);
277+
await page.waitForTimeout(500);
278278
nextButton2 = page.locator('[data-testid="nextButton-2"]');
279279
matchNextButton2 = await nextButton2.all();
280280
attempts++;
281281
} while (matchNextButton2.length > 1 && attempts < 5);
282-
nextButton2.click();
282+
await nextButton2.click({
283+
force: true,
284+
});
283285
await uiHelper.clickButton("Save");
284286
await uiHelper.verifyText(
285287
"Role role:default/test-role1 updated successfully",

0 commit comments

Comments
 (0)