File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,14 @@ test.describe('Next.js', () => {
36
36
expect ( await img . evaluate < boolean , HTMLImageElement > ( ( image ) => image . complete ) ) . toBeFalsy ( ) ;
37
37
} ) ;
38
38
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');
41
42
42
- const img = sbPage . previewRoot ( ) . locator ( 'img' ) ;
43
+ // const img = sbPage.previewRoot().locator('img');
43
44
44
- expect ( await img . evaluate < boolean , HTMLImageElement > ( ( image ) => image . complete ) ) . toBeTruthy ( ) ;
45
- } ) ;
45
+ // expect(await img.evaluate<boolean, HTMLImageElement>((image) => image.complete)).toBeTruthy();
46
+ // });
46
47
} ) ;
47
48
48
49
test . describe ( 'next/navigation' , ( ) => {
You can’t perform that action at this time.
0 commit comments