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:
@@ -82,7 +82,7 @@ test.describe.serial('Issue #22: Team Configuration', () => {
|
||||
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 creation
|
||||
await page.goto('/admin/tournaments/new');
|
||||
@@ -105,7 +105,7 @@ test.describe.serial('Issue #22: Team Configuration', () => {
|
||||
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 creation
|
||||
await page.goto('/admin/tournaments/new');
|
||||
@@ -127,7 +127,7 @@ test.describe.serial('Issue #22: Team Configuration', () => {
|
||||
const playerName4 = `Player ${Date.now() + 3}`;
|
||||
|
||||
// Create first player - wait for search input to appear first
|
||||
await page.waitForSelector('input[placeholder*="Search"]', { timeout: 10000 });
|
||||
await page.waitForSelector('input[placeholder*="Search"]', { timeout: 5000 });
|
||||
await page.fill('input[placeholder*="Search"]', playerName1);
|
||||
await page.waitForTimeout(500);
|
||||
await page.click(`text=+ Create "${playerName1}" as new player`);
|
||||
@@ -181,7 +181,7 @@ test.describe.serial('Issue #22: Team Configuration', () => {
|
||||
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 creation
|
||||
await page.goto('/admin/tournaments/new');
|
||||
@@ -259,7 +259,7 @@ test.describe.serial('Issue #22: Team Configuration', () => {
|
||||
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 edit tournament page
|
||||
await page.goto(`/admin/tournaments/${tournamentId}/edit`);
|
||||
|
||||
Reference in New Issue
Block a user