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
committed by david
parent 4e2fcf9d28
commit a0909c82a0
4 changed files with 80 additions and 1 deletions
@@ -230,6 +230,12 @@ Then('I should be on the password reset page', async function () {
expect(currentUrl).toContain('/auth/password-reset');
});
Then('I should see the {string} button', async function (buttonText: string) {
const button = world.page.locator(`button:has-text("${buttonText}")`);
await expect(button).toBeVisible();
console.log(`🌍 Verified button is visible: ${buttonText}`);
});
Then('I should be redirected to {string}', async function (path: string) {
await world.page.waitForLoadState('networkidle');
const currentUrl = world.page.url();