@@ -43,19 +43,16 @@ module.exports = (env, { port } = { port: '8080' }) => {
4343
4444 beforeAll ( async ( ) => {
4545 try {
46- console . log ( '-----beforeAll----->' , [ layout , theme ] ) ;
4746 await devServer . setLayout ( layout ) ;
4847 await devServer . setTheme ( theme ) ;
4948 await devServer . build ( ) ;
50- console . log ( '-----build----->' ) ;
5149 await devServer . start ( ) ;
5250 /* console.log('-----waiting----->');
5351 await waitOn({
5452 resources: [appUrl],
5553 timeout: 30000,
5654 interval: 100
5755 }); */
58- console . log ( '-----started----->' ) ;
5956 } catch ( e ) {
6057 // NOTE jest@27 will fail test, but jest@26 - not
6158 console . log ( '----throw new Error------>' , e ) ;
@@ -64,7 +61,6 @@ module.exports = (env, { port } = { port: '8080' }) => {
6461 } ) ;
6562
6663 afterAll ( async ( ) => {
67- console . log ( '-----afterAll----->' , [ layout , theme , new Date ( ) . toLocaleTimeString ( ) ] ) ;
6864 await devServer . stop ( ) ;
6965 } ) ;
7066
@@ -168,9 +164,7 @@ module.exports = (env, { port } = { port: '8080' }) => {
168164
169165 describe ( `${ viewportName } ` , ( ) => {
170166 fit ( 'Home view' , async ( ) => {
171- console . log ( '---START TEST------>' ) ;
172167 await openPage ( appUrl , { timeout : 5000 } ) ;
173- console . log ( '---START TEST---page opened--->' ) ;
174168 await page . reload ( [ {
175169 waitUntil : {
176170 networkidle0 : 5000 ,
@@ -179,7 +173,7 @@ module.exports = (env, { port } = { port: '8080' }) => {
179173 }
180174 } ] ) ;
181175 await page . waitForTimeout ( 5000 ) ;
182- console . log ( '---takeScreenshot------>' ) ;
176+
183177 const image = await takeScreenshot ( {
184178 clip : {
185179 x : 0 ,
@@ -188,7 +182,6 @@ module.exports = (env, { port } = { port: '8080' }) => {
188182 height : 150
189183 }
190184 } ) ;
191- console . log ( '---compareSnapshot------>' ) ;
192185 compareSnapshot ( image , 'home' ) ;
193186 } ) ;
194187
0 commit comments