fix: support matchup query param for direct navigation to entry page
- 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:
@@ -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)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user