feature/gherkin-e2e-tests #26

Merged
david merged 9 commits from feature/gherkin-e2e-tests into main 2026-04-26 04:27:43 +00:00
Owner
No description provided.
david added 9 commits 2026-04-26 04:26:00 +00:00
- Install @cucumber/cucumber and cucumber-pretty dependencies
- Create Cucumber configuration with tsx loader for TypeScript support
- Add step definitions for common navigation, form interactions, and assertions
- Add authentication step definitions for login/logout flows
- Create feature files for user registration and authentication
- Support multiple auth contexts (player, tournament admin, club admin)
- Configure package.json scripts for running Cucumber tests

Key features:
- Gherkin syntax (Given/When/Then) for behavior-driven testing
- Browser-only interactions (no direct database access)
- Dev site testing (tests run against running dev server)
- Happy path focus for acceptance testing
- Integration with existing TypeScript project
- Add wordmark-navigation.feature with 3 scenarios
- Add step definitions for clicking wordmark and page assertions
- Test unauthenticated, player, and admin navigation paths
- Add password-reset.feature with 4 scenarios
- Add step definition for password reset page assertion
- Tests access page, valid email request, invalid email, and empty field
- Add player-schedule.feature with 3 scenarios
- Add step definitions for schedule navigation
- Tests empty schedule, upcoming matches, and match details navigation
- Note: Some @wip scenarios require data setup (tournament, participants)
- Add tournament-schedule.feature with 4 scenarios
- Add step definitions for tournament schedule navigation
- Tests viewing schedule, generating round-robin, bye rounds, and matchup navigation
- Note: Some @wip scenarios require data setup (tournament creation, team addition)
- Add FEATURE_SUMMARY.md with coverage overview
- Fix TypeScript error in World class
- Document all feature files and scenarios
fix: update Cucumber config and hooks to properly load test infrastructure
Pull Request / unit-tests (pull_request) Successful in 59s
Pull Request / analyze-bump-type (pull_request) Successful in 10s
Release / release (push) Failing after 13s
Build CI Images / build-ci-base (push) Failing after 21s
5dc24db277
- Add support files to require config for proper hook loading
- Remove database cleanup from hooks (browser-only testing)
- Fix World type issues in hooks
- Cucumber tests now run successfully
david force-pushed feature/gherkin-e2e-tests from 1ec51f9c6a to 5dc24db277 2026-04-26 04:26:00 +00:00 Compare

🏷️ Version Bump Analysis

Suggested bump type: PATCH
Reason: Defaulting to patch (fixes or other changes)

This PR will bump the version to the next patch version when merged.

## 🏷️ Version Bump Analysis **Suggested bump type:** `PATCH` **Reason:** Defaulting to patch (fixes or other changes) This PR will bump the version to the next patch version when merged.

🏷️ Version Bump Analysis

Suggested bump type: PATCH
Reason: Defaulting to patch (fixes or other changes)

This PR will bump the version to the next patch version when merged.

## 🏷️ Version Bump Analysis **Suggested bump type:** `PATCH` **Reason:** Defaulting to patch (fixes or other changes) This PR will bump the version to the next patch version when merged.
david merged commit 5dc24db277 into main 2026-04-26 04:27:43 +00:00
david deleted branch feature/gherkin-e2e-tests 2026-04-26 04:27:43 +00:00
Sign in to join this conversation.