Compare commits
2 Commits
v0.1.17
...
adac558b5c
| Author | SHA1 | Date | |
|---|---|---|---|
| adac558b5c | |||
| 5673ec14aa |
@@ -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 () {
|
When('I go to the tournament schedule page', async function () {
|
||||||
console.log('🌍 Going to tournament schedule page');
|
console.log('🌍 Going to tournament schedule page');
|
||||||
const tournamentId = world.tournament?.id || 1;
|
const tournamentId = world.tournament?.id || 1;
|
||||||
await world.page.goto(`${world.baseURL}/admin/tournaments/${tournamentId}/schedule`);
|
// Add cache-busting timestamp to force fresh data
|
||||||
await world.page.waitForLoadState('load');
|
const url = `${world.baseURL}/admin/tournaments/${tournamentId}/schedule?t=${Date.now()}`;
|
||||||
// Wait for client components to hydrate
|
await world.page.goto(url);
|
||||||
|
await world.page.waitForLoadState('networkidle');
|
||||||
await world.page.waitForTimeout(1000);
|
await world.page.waitForTimeout(1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user