Files
euchre_camp/e2e/cucumber/cucumber.config.ts
T
david a0872d07ef
Pull Request / unit-tests (pull_request) Successful in 2m4s
Pull Request / analyze-bump-type (pull_request) Successful in 15s
Pull Request / build-and-deploy-ci (pull_request) Failing after 43m22s
fix: resolve remaining test failures in CI
- cucumber: use 'progress' formatter in CI (not progress-bar TTY)
- csv-upload: use timestamp in player names to avoid unique constraint
- elo-ratings: delete event_participants before players (FK constraint)
- epic3-rankings: use .first() on h1/h2 locator (strict mode)
- schedule-tab: look for button instead of anchor for Schedule tab
- team-config: wait for search input before filling (step 2 async)
- tournament-edit-allowTies: check for 'Edit Tournament' not 'Tournament Name'
- epic4-tournament-creation: submit button only on step 2, add waitForSelector
2026-05-18 18:32:30 -07:00

47 lines
1.0 KiB
TypeScript

/**
* Cucumber configuration for EuchreCamp E2E tests
*/
module.exports = {
// Paths to feature files
paths: ['e2e/cucumber/features/**/*.feature'],
// Paths to step definitions
import: ['e2e/cucumber/step-definitions/**/*.ts'],
// Paths to support files (hooks, world)
require: ['e2e/cucumber/support/**/*.ts'],
// Use tsx loader for TypeScript with path aliases
requireModule: ['tsx'],
// Format options
format: [
process.env.CI ? 'progress' : 'progress-bar',
'pretty:cucumber-pretty'
],
// Output directory for reports
formatOptions: {
snippetInterface: 'async-await'
},
// Tags to run (can be overridden via command line)
tags: 'not @wip and not @skip',
// Fail fast on first error
failFast: false,
// Retry failed tests (useful in CI)
retry: process.env.CI ? 2 : 0,
// Dry run (just list scenarios without executing)
dryRun: false,
// Strict mode (fail on undefined steps)
strict: true,
// Increase default timeout for steps (default is 5000ms)
defaultTimeout: 30000,
};