diff --git a/ui-tests/tests/voila.test.ts b/ui-tests/tests/voila.test.ts index 36a222c5a..b469ef052 100644 --- a/ui-tests/tests/voila.test.ts +++ b/ui-tests/tests/voila.test.ts @@ -85,7 +85,7 @@ test.describe('Voila performance Tests', () => { `/voila/render/${notebookName}.ipynb?voila-template=classic` ); // wait for the widgets to load - await page.waitForSelector('span[role="presentation"] >> text=x'); + await page.waitForSelector('.noUi-touch-area'); }; await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName); @@ -105,7 +105,7 @@ test.describe('Voila performance Tests', () => { const testFunction = async () => { await page.goto(`/voila/render/${notebookName}.ipynb`); // wait for the widgets to load - await page.waitForSelector('span.mjx-char >> text=x'); + await page.waitForSelector('.noUi-touch-area'); }; await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName); // change the value of the slider @@ -130,7 +130,7 @@ test.describe('Voila performance Tests', () => { const testFunction = async () => { await page.goto(`/voila/render/${notebookName}.ipynb?voila-theme=dark`); // wait for the widgets to load - await page.waitForSelector('span[role="presentation"] >> text=x'); + await page.waitForSelector('.noUi-touch-area'); }; await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);