1
- const { cylog , log } = require ( './utils/logger' ) ;
1
+ const { log } = require ( './utils/logger' ) ;
2
2
const client = require ( './utils/httpClient' ) ;
3
3
const testType = 'cypress-driver' ;
4
4
const CY_TIMEOUT = 30 * 1000 * 1.5 ;
@@ -9,10 +9,6 @@ function smartuiSnapshot(name, options = {}) {
9
9
10
10
return cy . then ( { timeout : CY_TIMEOUT } , async ( ) => {
11
11
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
- // });
16
12
cy . task ( 'log' , log ( 'info' , 'SmartUI snapshot skipped in interactive mode; use "cypress run" instead of "cypress open"' ) ) ;
17
13
return ;
18
14
}
@@ -36,7 +32,6 @@ function smartuiSnapshot(name, options = {}) {
36
32
if ( resp . body . data . warnings . length ) {
37
33
resp . body . data . warnings . map ( e => cy . task ( 'log' , log ( 'warn' , e ) ) ) ;
38
34
}
39
- // cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
40
35
cy . task ( 'log' , log ( 'info' , `Snapshot captured: ${ name } ` ) ) ;
41
36
} else {
42
37
throw new Error ( resp . body . error . message ) ;
0 commit comments