Deflake E2E test
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle 2026-07-12 18:21:51 +03:00
parent d72dd52f1e
commit f68873e4ce

View File

@ -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, {