itemengine-cypress-automation 1.0.295-applitools-1a2329c.0 → 1.0.295-applitools-2c3260f.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.
@@ -8,7 +8,5 @@ module.exports = {
8
8
  { width: 1024, height: 1366, name: 'safari' }
9
9
  ],
10
10
  //Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
11
- ignoreDisplacements: true, // Set to false to detect mismatches in the displacements of the elements
12
- failCypressOnDiff: false, // Set to true to fail the test when differences are detected
13
- isDisabled: false // Set to true to disable Applitools
11
+ APPLITOOLS_IS_DISABLED: Cypress.env('APPLITOOLS_IS_DISABLED')
14
12
  };
@@ -6,6 +6,8 @@ import { iePage } from './migrationHelpers/verifyIeQuestionData';
6
6
  import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
7
7
  require('cy-verify-downloads').addCustomCommand();
8
8
  import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
9
+ import * as applitoolsConfig from '../e2e/applitools.config';
10
+ const isEnabledDisabled = Cypress.env('APPLITOOLS_IS_DISABLED');
9
11
  //import addContext from "mochawesome/addContext";
10
12
 
11
13
  const randomUser = (j, username, i) => ({
@@ -162,6 +164,9 @@ Cypress.Commands.add('startApplitools', () => {
162
164
  browser,
163
165
  appName: 'Applitools Demo - ILC',
164
166
  testName: Cypress.currentTest.title,
167
+ isDisabled: applitoolsConfig.APPLITOOLS_IS_DISABLED,
168
+ ignoreDisplacements: true,
169
+ failCypressOnDiff: false
165
170
  });
166
171
  });
167
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.295-applitools-1a2329c.0",
3
+ "version": "1.0.295-applitools-2c3260f.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,10 +14,11 @@
14
14
  "spinnaker:smoke": "node scripts/smoke.mjs --env theme=ilc,grepTags=smoke",
15
15
  "local:migration": "node scripts/migrationLocal.mjs --env theme=ilc",
16
16
  "spinnaker:migration": "node scripts/migration.mjs --env theme=ilc",
17
- "cy:ildev": "cypress open --env fileConfig=ildev",
18
- "cy:ilprod": "cypress open --env fileConfig=ilprod",
19
- "cy:ilqa": "cypress open --env fileConfig=ilqa",
20
- "cy:ilstage": "cypress open --env fileConfig=ilstage"
17
+ "cy:ildev": "cypress open --env fileConfig=ildev,APPLITOOLS_IS_DISABLED=true",
18
+ "cy:ilprod": "cypress open --env fileConfig=ilprod,APPLITOOLS_IS_DISABLED=true",
19
+ "cy:ilqa": "cypress open --env fileConfig=ilqa,APPLITOOLS_IS_DISABLED=true",
20
+ "cy:ilstage": "cypress open --env fileConfig=ilstage,APPLITOOLS_IS_DISABLED=true",
21
+ "cy:applitools": "cypress open --env fileConfig=ilstage"
21
22
  },
22
23
  "repository": {
23
24
  "type": "git",