Skip to content

Commit

Permalink
Merge pull request #22310 from storybookjs/valentin/remove-flaky-test
Browse files Browse the repository at this point in the history
Comment out flaky test
  • Loading branch information
valentinpalkovic authored Apr 28, 2023
2 parents 7e197e1 + f6a07d4 commit 68c2444
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 68c2444

Please sign in to comment.