@@ -47,7 +47,6 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
4747 timeout : 30000 ,
4848 interval : 100
4949 } ) ;
50- console . log ( '----waitOn------>' ) ;
5150 } catch ( e ) {
5251 // NOTE jest@27 will fail test, but jest@26 - not
5352 throw new Error ( e ) ;
@@ -65,14 +64,11 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
6564 async function openPage ( url , options ) {
6665 await page . goto ( 'about:blank' ) ;
6766 await page . setViewport ( viewport ) ;
68- console . log ( '----openPage----goto-->' , url ) ;
6967 await page . goto ( url , {
7068 waitUntil : 'networkidle0' ,
7169 ...options
7270 } ) ;
73- console . log ( '----openPage--after--goto-waitForSelector->' ) ;
74- // await page.waitForSelector('.with-footer');
75- console . log ( '----openPage---waitForSelector--FOUND-->' ) ;
71+ await page . waitForSelector ( '.with-footer' ) ;
7672 await page . waitForTimeout ( 3000 ) ;
7773 }
7874
@@ -161,7 +157,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
161157 }
162158
163159 describe ( `${ viewportName } ` , ( ) => {
164- it ( 'Home view' , async ( ) => {
160+ fit ( 'Home view' , async ( ) => {
165161 await openPage ( appUrl , { timeout : 5000 } ) ;
166162 await page . reload ( [ {
167163 waitUntil : {
0 commit comments