diff --git a/web/e2e/smoke.spec.ts b/web/e2e/smoke.spec.ts index 6962497..4a7ecb0 100644 --- a/web/e2e/smoke.spec.ts +++ b/web/e2e/smoke.spec.ts @@ -20,9 +20,9 @@ test.describe("Compiler Explorer smoke", () => { await expect(page.getByText("bit-exact").first()).toBeVisible({ timeout: 150_000 }); await expect(page.getByRole("button", { name: "Compile & run" })).toBeEnabled(); + // The busy label can come and go faster than a poll sees it, so time the whole click-to-idle wait. const start = Date.now(); await page.getByRole("button", { name: "Compile & run" }).click(); - await expect(page.getByRole("button", { name: "Working…" })).toBeVisible(); await expect(page.getByRole("button", { name: "Compile & run" })).toBeEnabled({ timeout: WARM_BUDGET_MS }); expect(Date.now() - start).toBeLessThan(WARM_BUDGET_MS); await expect(page.getByText("bit-exact").first()).toBeVisible(); diff --git a/web/scripts/record-hero.mjs b/web/scripts/record-hero.mjs index 4fff1df..ea73c4d 100644 --- a/web/scripts/record-hero.mjs +++ b/web/scripts/record-hero.mjs @@ -21,7 +21,7 @@ await page.getByRole("button", { name: "Compile & run" }).click(); await page.getByText("bit-exact").first().waitFor({ timeout: 150_000 }); await page.getByRole("tab", { name: "tiny-tpu" }).click(); await page.getByRole("img", { name: /^PE\[0\]\[0\] / }).first().scrollIntoViewIfNeeded(); -await page.getByRole("button", { name: "Play" }).click(); +// The grid starts playing on arrival, so there is nothing to click; let it run through its passes. await page.waitForTimeout(6000); await page.getByRole("tab", { name: "Run & compare" }).click(); await page.waitForTimeout(3000);