Skip to content

Commit 68c2444

Browse files
Merge pull request #22310 from storybookjs/valentin/remove-flaky-test
Comment out flaky test
2 parents 7e197e1 + f6a07d4 commit 68c2444

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

code/e2e-tests/framework-nextjs.spec.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ test.describe('Next.js', () => {
3636
expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeFalsy();
3737
});
3838

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

42-
const img = sbPage.previewRoot().locator('img');
43+
// const img = sbPage.previewRoot().locator('img');
4344

44-
expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeTruthy();
45-
});
45+
// expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeTruthy();
46+
// });
4647
});
4748

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

0 commit comments

Comments
 (0)