@lambdatest/cypress-driver 1.0.8 → 1.0.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdatest/cypress-driver",
3
- "version": "1.0.8",
3
+ "version": "1.0.9-beta.0",
4
4
  "description": "Cypress driver for all Lambdatest functionalities",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
package/src/smartui.js CHANGED
@@ -9,10 +9,12 @@ 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
- });
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;
16
18
  }
17
19
 
18
20
  let resp = await client.isSmartUIRunning()
@@ -34,7 +36,7 @@ function smartuiSnapshot(name, options = {}) {
34
36
  if (resp.body.data.warnings.length) {
35
37
  resp.body.data.warnings.map(e => cy.task('log', log('warn', e)));
36
38
  }
37
- cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
39
+ // cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
38
40
  cy.task('log', log('info', `Snapshot captured: ${name}`));
39
41
  } else {
40
42
  throw new Error(resp.body.error.message);
@@ -1,4 +1,3 @@
1
- const { cylog } = require('./logger');
2
1
  const utils = require('./utils');
3
2
 
4
3
  module.exports = new class httpClient {