We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77fef5 commit 3728f25Copy full SHA for 3728f25
e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts
@@ -271,9 +271,14 @@ test.describe.serial("Test RBAC", () => {
271
state: "visible",
272
});
273
let nextButton2: Locator;
274
+ let matchNextButton2: Locator[];
275
+ let attempts = 0;
276
do {
- nextButton2 = page.getByTestId("nextButton-2");
- } while (nextButton2.all.length > 1);
277
+ page.waitForTimeout(500);
278
+ nextButton2 = page.locator('[data-testid="nextButton-2"]');
279
+ matchNextButton2 = await nextButton2.all();
280
+ attempts++;
281
+ } while (matchNextButton2.length > 1 && attempts < 5);
282
nextButton2.click();
283
await uiHelper.clickButton("Save");
284
await uiHelper.verifyText(
0 commit comments