From f68873e4cea839ef2337bb3c2a8dcaee8dffee99 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 12 Jul 2026 18:21:51 +0300 Subject: [PATCH] Deflake E2E test --- e2e/tournament-bracket.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/tournament-bracket.spec.ts b/e2e/tournament-bracket.spec.ts index a10ef77a8..ddd482299 100644 --- a/e2e/tournament-bracket.spec.ts +++ b/e2e/tournament-bracket.spec.ts @@ -691,6 +691,11 @@ test.describe("Tournament bracket", () => { await navigateToMatch(page, 5); await goToTab(page, "admin"); await submit(page, "reopen-match-button"); + // Wait for the reopen to be reflected before switching tabs: switching + // tabs is a `defaultShouldRevalidate: false` navigation that would abort + // the still-in-flight post-reopen loader revalidation, leaving the match + // stuck as "over" so the action tab never appears. + await isNotVisible(page.getByTestId("reopen-match-button")); await goToTab(page, "action"); await undoLastReport(page); await reportResult(page, {