Merge branch 'bugfix/7-tournament-schedule-tests': Schedule generation, clickable matchups, and test fixes
Release / release (push) Failing after 11s
Release / release (push) Failing after 11s
Resolved conflict in common-steps.ts by combining player schedule step definitions (from bugfix/9 merge) with tournament schedule step definitions (from bugfix/7).
This commit is contained in:
@@ -11,29 +11,39 @@ Feature: Tournament Schedule
|
||||
Then I should see "Schedule"
|
||||
And I should see the "Generate Schedule" button
|
||||
|
||||
@happy-path @tournament @issue-7 @wip
|
||||
@happy-path @tournament @issue-7
|
||||
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
|
||||
Then I should see "Generated"
|
||||
And I should see "rounds with"
|
||||
# Navigate away and back to verify schedule persisted (avoids HMR caching issues)
|
||||
When I go to the tournament schedule page
|
||||
Then I should see round 1 matchups
|
||||
And I should see round 2 matchups
|
||||
|
||||
@happy-path @tournament @issue-7 @wip
|
||||
@happy-path @tournament @issue-7
|
||||
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
|
||||
Then I should see "Generated"
|
||||
# Navigate away and back to verify schedule persisted
|
||||
When I go to the tournament schedule page
|
||||
Then I should see 5 rounds
|
||||
And each team should play every other team exactly once
|
||||
|
||||
@happy-path @tournament @issue-7 @wip
|
||||
@happy-path @tournament @issue-7
|
||||
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
|
||||
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 "Generated"
|
||||
# Navigate away and back to ensure schedule data is loaded
|
||||
When I go to the tournament schedule page
|
||||
And I click on a matchup
|
||||
Then I should be on the match result entry page
|
||||
|
||||
Reference in New Issue
Block a user