@@ -83,7 +83,7 @@ test.describe('Voila performance Tests', () => {
83
83
const testFunction = async ( ) => {
84
84
await page . goto ( `/voila/render/${ notebookName } .ipynb?template=classic` ) ;
85
85
// wait for the widgets to load
86
- await page . waitForSelector ( 'span[role="presentation"] >> text=x ' ) ;
86
+ await page . waitForSelector ( '.slider-container ' ) ;
87
87
} ;
88
88
await addBenchmarkToTest ( notebookName , testFunction , testInfo , browserName ) ;
89
89
@@ -103,7 +103,7 @@ test.describe('Voila performance Tests', () => {
103
103
const testFunction = async ( ) => {
104
104
await page . goto ( `/voila/render/${ notebookName } .ipynb` ) ;
105
105
// wait for the widgets to load
106
- await page . waitForSelector ( 'span.mjx-char >> text=x ' ) ;
106
+ await page . waitForSelector ( '.slider-container ' ) ;
107
107
} ;
108
108
await addBenchmarkToTest ( notebookName , testFunction , testInfo , browserName ) ;
109
109
// change the value of the slider
@@ -128,7 +128,7 @@ test.describe('Voila performance Tests', () => {
128
128
const testFunction = async ( ) => {
129
129
await page . goto ( `/voila/render/${ notebookName } .ipynb?theme=dark` ) ;
130
130
// wait for the widgets to load
131
- await page . waitForSelector ( 'span[role="presentation"] >> text=x ' ) ;
131
+ await page . waitForSelector ( '.slider-container ' ) ;
132
132
} ;
133
133
await addBenchmarkToTest ( notebookName , testFunction , testInfo , browserName ) ;
134
134
@@ -148,7 +148,7 @@ test.describe('Voila performance Tests', () => {
148
148
`/voila/render/${ notebookName } .ipynb?theme=JupyterLab%20Miami%20Nights`
149
149
) ;
150
150
// wait for the widgets to load
151
- await page . waitForSelector ( 'span[role="presentation"] >> text=x ' ) ;
151
+ await page . waitForSelector ( '.slider-container ' ) ;
152
152
} ;
153
153
await addBenchmarkToTest ( notebookName , testFunction , testInfo , browserName ) ;
154
154
@@ -334,7 +334,7 @@ test.describe('Voila performance Tests', () => {
334
334
const notebookName = 'reveal' ;
335
335
const testFunction = async ( ) => {
336
336
await page . goto ( `/voila/render/${ notebookName } .ipynb` ) ;
337
- await page . waitForSelector ( 'span[role="presentation"] >> text=x ' ) ;
337
+ await page . waitForSelector ( '.slider-container ' ) ;
338
338
} ;
339
339
await addBenchmarkToTest ( notebookName , testFunction , testInfo , browserName ) ;
340
340
expect ( await page . screenshot ( ) ) . toMatchSnapshot ( `${ notebookName } .png` ) ;
0 commit comments