Skip to content

Commit cb059a4

Browse files
committed
Fix ui-tests for both ipywidgets 7 and 8
1 parent 3e6fd7c commit cb059a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui-tests/tests/voila.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ test.describe('Voila performance Tests', () => {
8585
`/voila/render/${notebookName}.ipynb?voila-template=classic`
8686
);
8787
// wait for the widgets to load
88-
await page.waitForSelector('.noUi-touch-area');
88+
await page.waitForSelector('.slider-container');
8989
};
9090
await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);
9191

@@ -105,7 +105,7 @@ test.describe('Voila performance Tests', () => {
105105
const testFunction = async () => {
106106
await page.goto(`/voila/render/${notebookName}.ipynb`);
107107
// wait for the widgets to load
108-
await page.waitForSelector('.noUi-touch-area');
108+
await page.waitForSelector('.slider-container');
109109
};
110110
await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);
111111
// change the value of the slider
@@ -130,7 +130,7 @@ test.describe('Voila performance Tests', () => {
130130
const testFunction = async () => {
131131
await page.goto(`/voila/render/${notebookName}.ipynb?voila-theme=dark`);
132132
// wait for the widgets to load
133-
await page.waitForSelector('.noUi-touch-area');
133+
await page.waitForSelector('.slider-container');
134134
};
135135
await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);
136136

@@ -288,7 +288,7 @@ test.describe('Voila performance Tests', () => {
288288
const notebookName = 'reveal';
289289
const testFunction = async () => {
290290
await page.goto(`/voila/render/${notebookName}.ipynb`);
291-
await page.waitForSelector('.noUi-touch-area');
291+
await page.waitForSelector('.slider-container');
292292
};
293293
await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);
294294
expect(await page.screenshot()).toMatchSnapshot(`${notebookName}.png`);

0 commit comments

Comments
 (0)