Skip to content

Commit 6e96642

Browse files
committed
remove cylog usage
1 parent a2646bc commit 6e96642

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/cypress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/cypress-driver",
3-
"version": "1.0.8",
3+
"version": "1.0.9-beta.0",
44
"description": "Cypress driver for all Lambdatest functionalities",
55
"main": "index.js",
66
"types": "types/index.d.ts",

packages/cypress/src/smartui.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

packages/cypress/src/utils/httpClient.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const { cylog } = require('./logger');
21
const utils = require('./utils');
32

43
module.exports = new class httpClient {

0 commit comments

Comments
 (0)