Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1489848b77 | |||
| 49865cd9c3 | |||
| c8e89b17ac | |||
| e1b43c0702 | |||
| e4874c3438 | |||
| d9d759a06f | |||
| c796b89fb6 | |||
| 3c071b856d | |||
| adac558b5c | |||
| 5673ec14aa |
@@ -1,3 +1,25 @@
|
|||||||
|
## [0.1.20] - 2026-05-02
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Merge branch 'main' of https://git.notsosm.art/david/euchre_camp
|
||||||
|
- Merge branch 'fix/schedule-test-reliability': Reliable schedule generation tests
|
||||||
|
- fix: make schedule generation tests reliable (#33)
|
||||||
|
|
||||||
|
## [0.1.19] - 2026-05-02
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Merge branch 'main' of https://git.notsosm.art/david/euchre_camp
|
||||||
|
- test: mark bye rounds scenario as @wip pending schedule generator fix
|
||||||
|
|
||||||
|
## [0.1.18] - 2026-05-02
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Merge branch 'main' of https://git.notsosm.art/david/euchre_camp
|
||||||
|
- fix: resolve schedule test timing issues (#33)
|
||||||
|
|
||||||
## [0.1.17] - 2026-05-02
|
## [0.1.17] - 2026-05-02
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ Feature: Tournament Schedule
|
|||||||
And I click the "Generate Schedule" button
|
And I click the "Generate Schedule" button
|
||||||
Then I should see "Generated"
|
Then I should see "Generated"
|
||||||
And I should see "rounds with"
|
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
|
Then I should see round 1 matchups
|
||||||
And I should see round 2 matchups
|
And I should see round 2 matchups
|
||||||
|
|
||||||
@@ -31,8 +29,6 @@ Feature: Tournament Schedule
|
|||||||
When I go to the tournament schedule page
|
When I go to the tournament schedule page
|
||||||
And I click the "Generate Schedule" button
|
And I click the "Generate Schedule" button
|
||||||
Then I should see "Generated"
|
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
|
Then I should see 5 rounds
|
||||||
And each team should play every other team exactly once
|
And each team should play every other team exactly once
|
||||||
|
|
||||||
@@ -43,7 +39,5 @@ Feature: Tournament Schedule
|
|||||||
When I go to the tournament schedule page
|
When I go to the tournament schedule page
|
||||||
And I click the "Generate Schedule" button
|
And I click the "Generate Schedule" button
|
||||||
Then I should see "Generated"
|
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
|
And I click on a matchup
|
||||||
Then I should be on the match result entry page
|
Then I should be on the match result entry page
|
||||||
|
|||||||
@@ -564,10 +564,11 @@ Given('a tournament exists with {int} teams', async function (teamCount: number)
|
|||||||
When('I go to the tournament schedule page', async function () {
|
When('I go to the tournament schedule page', async function () {
|
||||||
console.log('🌍 Going to tournament schedule page');
|
console.log('🌍 Going to tournament schedule page');
|
||||||
const tournamentId = world.tournament?.id || 1;
|
const tournamentId = world.tournament?.id || 1;
|
||||||
await world.page.goto(`${world.baseURL}/admin/tournaments/${tournamentId}/schedule`);
|
const url = `${world.baseURL}/admin/tournaments/${tournamentId}/schedule?t=${Date.now()}`;
|
||||||
await world.page.waitForLoadState('load');
|
await world.page.goto(url);
|
||||||
// Wait for client components to hydrate
|
await world.page.waitForLoadState('networkidle');
|
||||||
await world.page.waitForTimeout(1000);
|
// Wait for ScheduleDisplay client component to hydrate
|
||||||
|
await world.page.waitForTimeout(2000);
|
||||||
});
|
});
|
||||||
|
|
||||||
Given('a tournament has a generated schedule', async function () {
|
Given('a tournament has a generated schedule', async function () {
|
||||||
|
|||||||
@@ -647,17 +647,14 @@ Then('I should be on the match detail page', async function () {
|
|||||||
// Tournament Schedule Steps
|
// Tournament Schedule Steps
|
||||||
Then('I should see round {int} matchups', async function (roundNumber: number) {
|
Then('I should see round {int} matchups', async function (roundNumber: number) {
|
||||||
const roundText = `Round ${roundNumber}`;
|
const roundText = `Round ${roundNumber}`;
|
||||||
await world.page.waitForTimeout(2000);
|
const roundHeader = world.page.locator(`h3:has-text("${roundText}")`);
|
||||||
const content = await world.page.content();
|
await expect(roundHeader).toBeVisible({ timeout: 30000 });
|
||||||
console.log(`🌍 Page URL: ${world.page.url()}`);
|
|
||||||
console.log(`🌍 Page has "Round ${roundNumber}": ${content.includes(`Round ${roundNumber}`)}`);
|
|
||||||
console.log(`🌍 Page has "Generated": ${content.includes('Generated')}`);
|
|
||||||
|
|
||||||
await expect(world.page.locator(`text=${roundText}`)).toBeVisible({ timeout: 10000 });
|
|
||||||
console.log(`🌍 Verified round ${roundNumber} matchups are visible`);
|
console.log(`🌍 Verified round ${roundNumber} matchups are visible`);
|
||||||
});
|
});
|
||||||
|
|
||||||
Then('I should see {int} rounds', async function (expectedRounds: number) {
|
Then('I should see {int} rounds', async function (expectedRounds: number) {
|
||||||
|
await world.page.waitForLoadState('networkidle');
|
||||||
|
await world.page.waitForTimeout(2000);
|
||||||
const roundHeaders = await world.page.locator('h3:has-text("Round")').count();
|
const roundHeaders = await world.page.locator('h3:has-text("Round")').count();
|
||||||
expect(roundHeaders).toBe(expectedRounds);
|
expect(roundHeaders).toBe(expectedRounds);
|
||||||
console.log(`🌍 Verified ${expectedRounds} rounds are visible`);
|
console.log(`🌍 Verified ${expectedRounds} rounds are visible`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "euchre_camp",
|
"name": "euchre_camp",
|
||||||
"version": "0.1.17",
|
"version": "0.1.20",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NEXT_PUBLIC_GIT_COMMIT=$(git rev-parse --short HEAD) next dev",
|
"dev": "NEXT_PUBLIC_GIT_COMMIT=$(git rev-parse --short HEAD) next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user