1- const { cylog , log } = require ( './utils/logger' ) ;
1+ const { log } = require ( './utils/logger' ) ;
22const client = require ( './utils/httpClient' ) ;
33const testType = 'cypress-driver' ;
44const CY_TIMEOUT = 30 * 1000 * 1.5 ;
@@ -9,10 +9,6 @@ function smartuiSnapshot(name, options = {}) {
99
1010 return cy . then ( { timeout : CY_TIMEOUT } , async ( ) => {
1111 if ( Cypress . config ( 'isInteractive' ) && ! Cypress . config ( 'enableSmartUIInteractiveMode' ) ) {
12- // return cylog('smartuiSnapshot', 'Disabled in interactive mode', {
13- // details: 'use "cypress run" instead of "cypress open"',
14- // snapshot: name,
15- // });
1612 cy . task ( 'log' , log ( 'info' , 'SmartUI snapshot skipped in interactive mode; use "cypress run" instead of "cypress open"' ) ) ;
1713 return ;
1814 }
@@ -36,7 +32,6 @@ function smartuiSnapshot(name, options = {}) {
3632 if ( resp . body . data . warnings . length ) {
3733 resp . body . data . warnings . map ( e => cy . task ( 'log' , log ( 'warn' , e ) ) ) ;
3834 }
39- // cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
4035 cy . task ( 'log' , log ( 'info' , `Snapshot captured: ${ name } ` ) ) ;
4136 } else {
4237 throw new Error ( resp . body . error . message ) ;
0 commit comments