Skip to content

Commit

Permalink
fix: generic path for mock
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Sep 10, 2024
1 parent eebd292 commit 8825273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/navigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Navigation tests', () => {

// Intercept the chain data API call and mock the response using a JSON fixture for chainId 324
cy.fixture('nextData.json').then((nextData) => {
cy.intercept('GET', '/_next/data/development/en/324.json?chain=324', {
cy.intercept('GET', '**/_next/data/**/324.json?chain=324', {
statusCode: 200,
body: nextData,
}).as('fetchNextData');
Expand Down

0 comments on commit 8825273

Please sign in to comment.