Skip to content

Commit

Permalink
Merge branch 'next' of github.com:storybookjs/storybook into next
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Apr 30, 2023
2 parents 2059337 + 68c2444 commit e44c627
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/e2e-tests/framework-nextjs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ test.describe('Next.js', () => {
expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeFalsy();
});

test('should eager load images when loading parameter is set to eager', async () => {
await sbPage.navigateToStory('frameworks/nextjs/Image', 'eager');
// TODO: Test is very flaky, investigate why
// test('should eager load images when loading parameter is set to eager', async () => {
// await sbPage.navigateToStory('frameworks/nextjs/Image', 'eager');

const img = sbPage.previewRoot().locator('img');
// const img = sbPage.previewRoot().locator('img');

expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeTruthy();
});
// expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeTruthy();
// });
});

test.describe('next/navigation', () => {
Expand Down

0 comments on commit e44c627

Please sign in to comment.