Skip to content

Commit 10a6cb0

Browse files
committed
Wait for .jupyter-widgets in the IFrame
1 parent 132a31c commit 10a6cb0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui-tests/tests/voila.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ describe('Voila Visual Regression', () => {
5555

5656
const iframe = await page.waitForSelector('iframe');
5757
const contentFrame = await iframe.contentFrame();
58-
await contentFrame.waitForLoadState('networkidle');
5958

60-
// TODO: wait for widgets to render
61-
await page.waitForTimeout(10000);
59+
await contentFrame.waitForSelector('.jupyter-widgets');
60+
await contentFrame.waitForLoadState('networkidle');
6261

6362
const imageName = 'basics';
6463
await galata.capture.screenshot(imageName, iframe);

0 commit comments

Comments
 (0)