@@ -169,23 +169,17 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
169169 await openPage ( getPageURL ( 'profile' ) ) ;
170170
171171 await new Promise ( r => setTimeout ( r , 3000 ) ) ;
172- await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' , {
173- visible : true
174- } ) ;
172+ await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' ) ;
175173
176174 const image = await takeScreenshot ( ) ;
177175
178176 compareSnapshot ( image , 'profile' ) ;
179177
180178 await switchTheme ( ) ;
181- await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' , {
182- visible : true
183- } ) ;
179+ await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' ) ;
184180 await compareThemeModeSnapshot ( 'profile' , 'dark' ) ;
185181 await switchTheme ( ) ;
186- await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' , {
187- visible : true
188- } ) ;
182+ await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' ) ;
189183
190184 await compareThemeModeSnapshot ( 'profile' , 'light' ) ;
191185 } ) ;
@@ -217,9 +211,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
217211
218212 // NOTE: Wait for animation complete
219213 await new Promise ( r => setTimeout ( r , 3000 ) ) ;
220- await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' , {
221- visible : true
222- } ) ;
214+ await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' ) ;
223215 const image = await takeScreenshot ( ) ;
224216
225217 compareSnapshot ( image , 'toggle' ) ;
@@ -231,9 +223,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
231223 await page . click ( isCompact ? '.dx-dropdownmenu-button' : '.user-button' ) ;
232224 // NOTE: Wait for animation complete
233225 await new Promise ( r => setTimeout ( r , 2000 ) ) ;
234- await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' , {
235- visible : true
236- } ) ;
226+ await page . waitForSelector ( '.dx-toolbar-item div::-p-text(My App)' ) ;
237227 const image = await takeScreenshot ( {
238228 clip : {
239229 x : viewport . width - 300 ,
0 commit comments