fix: reduce timeout values and fix test auth issues
Pull Request / unit-tests (pull_request) Successful in 2m31s
Pull Request / analyze-bump-type (pull_request) Successful in 12s
Pull Request / build-and-deploy-ci (pull_request) Failing after 42m4s

- 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:
2026-05-18 20:05:15 -07:00
parent e08c2bbdfd
commit 005cf7293d
6 changed files with 97 additions and 25 deletions
+5 -5
View File
@@ -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`);