Skip to content

Commit

Permalink
smokes: Fix randomly breaking pending build requests > shows test
Browse files Browse the repository at this point in the history
  • Loading branch information
mokibit committed Apr 30, 2024
1 parent 8922e0e commit 0fa489f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smokes-react/tests/pages/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export class BuilderPage {
static async gotoForce(page: Page, builder: string, forceName: string) {
await BuilderPage.goto(page, builder);
await page.locator(`button:text("${forceName}")`).first().click();
await expect(page.locator(".modal-title.h4")).toBeEnabled();
await expect.poll(async () => {
return (await page.locator(".modal-title.h4").isEnabled());
}, {
message: "locator is enabled"
}).toBeTruthy();
}

static async gotoBuild(page: Page, builder: string, buildRef: string) {
Expand Down

0 comments on commit 0fa489f

Please sign in to comment.