diff --git a/e2e/cucumber/step-definitions/auth-steps.ts b/e2e/cucumber/step-definitions/auth-steps.ts index 5e7a959..b19bdf7 100644 --- a/e2e/cucumber/step-definitions/auth-steps.ts +++ b/e2e/cucumber/step-definitions/auth-steps.ts @@ -564,9 +564,10 @@ Given('a tournament exists with {int} teams', async function (teamCount: number) When('I go to the tournament schedule page', async function () { console.log('🌍 Going to tournament schedule page'); const tournamentId = world.tournament?.id || 1; - await world.page.goto(`${world.baseURL}/admin/tournaments/${tournamentId}/schedule`); - await world.page.waitForLoadState('load'); - // Wait for client components to hydrate + // Add cache-busting timestamp to force fresh data + const url = `${world.baseURL}/admin/tournaments/${tournamentId}/schedule?t=${Date.now()}`; + await world.page.goto(url); + await world.page.waitForLoadState('networkidle'); await world.page.waitForTimeout(1000); });