Skip to content

Commit

Permalink
Merge pull request #26907 from storybookjs/jeppe/fix-nextjs-js-e2e
Browse files Browse the repository at this point in the history
E2E: Test `nextjs/default-ts` instead of `nextjs/default-js`
  • Loading branch information
JReinhold authored Apr 22, 2024
2 parents 479b8e9 + f9ba2f1 commit 3c33b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/e2e-tests/framework-nextjs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.describe('Next.js', () => {
// TODO: improve these E2E tests given that we have more version of Next.js to test
// and this only tests nextjs/default-js
test.skip(
!templateName?.includes('nextjs/default-js'),
!templateName?.includes('nextjs/default-ts'),
'Only run this test for the Frameworks that support next/navigation'
);

Expand Down Expand Up @@ -66,7 +66,7 @@ test.describe('Next.js', () => {
sbPage = new SbPage(page);

await sbPage.navigateToStory(
'stories/frameworks/nextjs-nextjs-default-js/Navigation',
'stories/frameworks/nextjs-nextjs-default-ts/Navigation',
'default'
);
root = sbPage.previewRoot();
Expand Down Expand Up @@ -100,7 +100,7 @@ test.describe('Next.js', () => {
test.beforeEach(async ({ page }) => {
sbPage = new SbPage(page);

await sbPage.navigateToStory('stories/frameworks/nextjs-nextjs-default-js/Router', 'default');
await sbPage.navigateToStory('stories/frameworks/nextjs-nextjs-default-ts/Router', 'default');
root = sbPage.previewRoot();
});

Expand Down

0 comments on commit 3c33b3c

Please sign in to comment.