@@ -9,10 +9,12 @@ 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- } ) ;
12+ // return cylog('smartuiSnapshot', 'Disabled in interactive mode', {
13+ // details: 'use "cypress run" instead of "cypress open"',
14+ // snapshot: name,
15+ // });
16+ cy . task ( 'log' , log ( 'info' , 'SmartUI snapshot skipped in interactive mode; use "cypress run" instead of "cypress open"' ) ) ;
17+ return ;
1618 }
1719
1820 let resp = await client . isSmartUIRunning ( )
@@ -34,7 +36,7 @@ function smartuiSnapshot(name, options = {}) {
3436 if ( resp . body . data . warnings . length ) {
3537 resp . body . data . warnings . map ( e => cy . task ( 'log' , log ( 'warn' , e ) ) ) ;
3638 }
37- cylog ( 'smartuiSnapshot' , `Snapshot captured: ${ name } ` ) ;
39+ // cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
3840 cy . task ( 'log' , log ( 'info' , `Snapshot captured: ${ name } ` ) ) ;
3941 } else {
4042 throw new Error ( resp . body . error . message ) ;
0 commit comments