fix: support matchup query param for direct navigation to entry page
Pull Request / unit-tests (pull_request) Successful in 1m36s
Pull Request / e2e-tests (pull_request) Failing after 2m44s
Pull Request / analyze-bump-type (pull_request) Has been skipped

- Add useEffect to parse 'matchup' query parameter and pre-select matchup
- Update test pattern to accept /entry route for match result entry
- This enables clicking on a matchup in schedule view to directly navigate to entry page
This commit is contained in:
2026-05-01 16:43:40 -07:00
parent 4794588034
commit 4977043003
2 changed files with 22 additions and 2 deletions
@@ -646,5 +646,5 @@ When('I click on a matchup', async function () {
Then('I should be on the match result entry page', async function () {
const currentUrl = world.page.url();
console.log(`🌍 Checking current URL: ${currentUrl}`);
expect(currentUrl).toMatch(/\/matches\/|\/admin\/tournaments\/\d+\/results/);
expect(currentUrl).toMatch(/\/matches\/|\/admin\/tournaments\/\d+\/(entry|results)/);
});