chore: save WIP before workstation switch
This commit is contained in:
@@ -110,7 +110,7 @@ When('I go back', async function () {
|
||||
|
||||
When('I refresh the page', async function () {
|
||||
console.log('🌍 About to refresh page from URL:', world.page.url());
|
||||
await world.page.reload({ waitUntil: 'networkidle' });
|
||||
await world.page.reload({ waitUntil: 'load' });
|
||||
console.log('🌍 Page refreshed, new URL:', world.page.url());
|
||||
// Wait extra time for full render
|
||||
await world.page.waitForTimeout(2000);
|
||||
@@ -191,7 +191,7 @@ When('I click the {string} link', async function (linkText: string) {
|
||||
|
||||
// Wait for navigation to complete
|
||||
try {
|
||||
await world.page.waitForLoadState('networkidle', { timeout: 10000 });
|
||||
await world.page.waitForLoadState('domcontentloaded', { timeout: 10000 });
|
||||
} catch {
|
||||
console.log(`🌍 Networkidle not reached, continuing`);
|
||||
}
|
||||
@@ -653,7 +653,7 @@ Then('I should see round {int} matchups', async function (roundNumber: number) {
|
||||
});
|
||||
|
||||
Then('I should see {int} rounds', async function (expectedRounds: number) {
|
||||
await world.page.waitForLoadState('networkidle');
|
||||
await world.page.waitForLoadState('domcontentloaded');
|
||||
await world.page.waitForTimeout(2000);
|
||||
const roundHeaders = await world.page.locator('h3:has-text("Round")').count();
|
||||
expect(roundHeaders).toBe(expectedRounds);
|
||||
@@ -690,7 +690,7 @@ Then('I should be on the match result entry page', async function () {
|
||||
|
||||
// View As Role Steps
|
||||
When('I view the navigation', async function () {
|
||||
await world.page.waitForLoadState('networkidle');
|
||||
await world.page.waitForLoadState('domcontentloaded');
|
||||
await world.page.waitForTimeout(1000);
|
||||
console.log('🌍 Viewing navigation');
|
||||
});
|
||||
@@ -750,7 +750,7 @@ Then('I should not see the viewing as banner', async function () {
|
||||
When('I go to the tournament detail page', async function () {
|
||||
const tournamentId = world.tournament?.id || 1;
|
||||
await world.page.goto(`${world.baseURL}/admin/tournaments/${tournamentId}`);
|
||||
await world.page.waitForLoadState('networkidle');
|
||||
await world.page.waitForLoadState('domcontentloaded');
|
||||
await world.page.waitForTimeout(500);
|
||||
console.log(`🌍 Navigated to tournament detail page: ${tournamentId}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user