feat: add tournament schedule feature test (issue #7)

- 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)
This commit is contained in:
2026-04-25 21:15:54 -07:00
parent b96932270b
commit 1bece10df2
4 changed files with 80 additions and 1 deletions
@@ -0,0 +1,39 @@
Feature: Tournament Schedule
As a tournament admin
I want to view and generate round matchups in a Schedule tab
So that I can manage tournament matches
@happy-path @tournament @issue-7
Scenario: Tournament admin views schedule page for tournament
Given I am logged in as a tournament admin
And a tournament exists with 4 teams
When I go to the tournament schedule page
Then I should see "Schedule"
And I should see the "Generate Schedule" button
@happy-path @tournament @issue-7 @wip
Scenario: Tournament admin generates round-robin schedule
Given I am logged in as a tournament admin
And a tournament exists with 4 teams
When I go to the tournament schedule page
And I click the "Generate Schedule" button
Then I should see "Schedule generated successfully"
And I should see round 1 matchups
And I should see round 2 matchups
@happy-path @tournament @issue-7 @wip
Scenario: Tournament admin views schedule with bye rounds
Given I am logged in as a tournament admin
And a tournament exists with 5 teams
When I go to the tournament schedule page
And I click the "Generate Schedule" button
Then I should see a bye round for one team
And each team should play every other team exactly once
@happy-path @tournament @issue-7 @wip
Scenario: Tournament admin clicks on a matchup to enter results
Given I am logged in as a tournament admin
And a tournament has a generated schedule
When I go to the tournament schedule page
And I click on a matchup
Then I should be on the match result entry page