test: update Cucumber configuration and support files

This commit is contained in:
2026-04-26 16:37:04 -07:00
parent 9026ac7fe3
commit b3907d046d
3 changed files with 32 additions and 6 deletions
+5 -4
View File
@@ -2,12 +2,15 @@
* Cucumber hooks for EuchreCamp E2E tests
*/
import { Before, After, BeforeAll, AfterAll } from '@cucumber/cucumber';
import { Before, After, BeforeAll, AfterAll, setDefaultTimeout } from '@cucumber/cucumber';
import { chromium, Browser } from '@playwright/test';
import { world } from './world';
import path from 'path';
import fs from 'fs';
// Set default timeout for Cucumber steps (30 seconds)
setDefaultTimeout(30000);
// Global browser instance
let browser: Browser;
@@ -101,9 +104,7 @@ Before(async function () {
// Log console messages for debugging
world.page.on('console', msg => {
if (msg.type() === 'error') {
console.log('❌ PAGE ERROR:', msg.text());
}
console.log(`🌍 BROWSER ${msg.type()}:`, msg.text());
});
// Log network errors