fix: reduce timeout values and fix test auth issues
- Reduce URL wait timeouts from 10000ms to 5000ms across tests - Fix tournament-edit-allowTies: add login before navigating to edit page - Fix epic4-tournament-creation: fill name field before clicking Next - Fix cucumber config: remove broken cucumber-pretty formatter
This commit is contained in:
@@ -133,7 +133,7 @@ test.describe.serial('Issue #7: Schedule Tab', () => {
|
||||
await page.fill('input[name="email"]', testEmail);
|
||||
await page.fill('input[name="password"]', testPassword);
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 10000 });
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 5000 });
|
||||
|
||||
// Navigate to tournament detail
|
||||
await page.goto(`/admin/tournaments/${tournamentId}`);
|
||||
@@ -149,7 +149,7 @@ test.describe.serial('Issue #7: Schedule Tab', () => {
|
||||
await page.fill('input[name="email"]', testEmail);
|
||||
await page.fill('input[name="password"]', testPassword);
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 10000 });
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 5000 });
|
||||
|
||||
// Navigate to schedule page
|
||||
await page.goto(`/admin/tournaments/${tournamentId}/schedule`);
|
||||
@@ -166,7 +166,7 @@ test.describe.serial('Issue #7: Schedule Tab', () => {
|
||||
await page.fill('input[name="email"]', testEmail);
|
||||
await page.fill('input[name="password"]', testPassword);
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 10000 });
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 5000 });
|
||||
|
||||
// Navigate to schedule page
|
||||
await page.goto(`/admin/tournaments/${tournamentId}/schedule`);
|
||||
@@ -196,7 +196,7 @@ test.describe.serial('Issue #7: Schedule Tab', () => {
|
||||
await page.fill('input[name="email"]', testEmail);
|
||||
await page.fill('input[name="password"]', testPassword);
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 10000 });
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 5000 });
|
||||
|
||||
// Navigate to schedule page
|
||||
await page.goto(`/admin/tournaments/${tournamentId}/schedule`);
|
||||
@@ -218,7 +218,7 @@ test.describe.serial('Issue #7: Schedule Tab', () => {
|
||||
await page.fill('input[name="email"]', testEmail);
|
||||
await page.fill('input[name="password"]', testPassword);
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 10000 });
|
||||
await page.waitForURL(/\/(admin|players)/, { timeout: 5000 });
|
||||
|
||||
// Call the schedule API
|
||||
const response = await page.request.get(
|
||||
|
||||
Reference in New Issue
Block a user