itemengine-cypress-automation 1.0.80 → 1.0.82

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,6 +10,8 @@
10
10
  "spinnaker": "node scripts/spinnaker.mjs --env theme=ilc",
11
11
  "local:untagged": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc,grepUntagged=true",
12
12
  "spinnaker:untagged": "node scripts/spinnaker.mjs --env theme=ilc,grepUntagged=true",
13
+ "local:smoke": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc,grepTags=smoke+-css+-a11y",
14
+ "spinnaker:smoke": "node scripts/spinnaker.mjs --env theme=ilc,grepTags=smoke+-css+-a11y",
13
15
  "cy:ildev": "cypress open --env fileConfig=ildev",
14
16
  "cy:ilprod": "cypress open --env fileConfig=ilprod",
15
17
  "cy:ilqa": "cypress open --env fileConfig=ilqa",
@@ -24,7 +26,7 @@
24
26
  "axe-core": "^4.7.1",
25
27
  "cy-verify-downloads": "^0.1.11",
26
28
  "cy2": "^4.0.9",
27
- "cypress": "12.17.2",
29
+ "cypress": "^12.17.2",
28
30
  "cypress-axe": "^1.4.0",
29
31
  "cypress-file-upload": "^5.0.8",
30
32
  "cypress-real-events": "^1.7.6",
package/run.sh CHANGED
@@ -3,4 +3,4 @@ env=$STAGE
3
3
  echo Environment to test: $env
4
4
  echo START_TIME: $START_TIME
5
5
 
6
- npm run spinnaker
6
+ npm run spinnaker:smoke
@@ -70,18 +70,18 @@ export function runSorryCypressLocal() {
70
70
  startTime = Math.round(Date.now() / 1000000);
71
71
  ciBuildId = setCiBuildId(user, startTime);
72
72
  const envArgs = setCommandLineEnvArgs()
73
- let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/ShortTextResponse/*.js"`;
73
+ let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.smoke.js"`;
74
74
  execSync(command, { stdio: "inherit" });
75
75
  }
76
76
 
77
77
  /**
78
78
  * @method runSorryCypressSpinnaker
79
79
  */
80
- export function runSorryCypressSpinnaker() {
80
+ export function runSorryCypressSpinnaker() {
81
81
  process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.engineering/";
82
82
  startTime = process.env.START_TIME;
83
83
  ciBuildId = setCiBuildId("spinnaker", startTime);
84
84
  const envArgs = setCommandLineEnvArgs()
85
- let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/ShortTextResponse/*.js"`;
85
+ let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.smoke.js"`;
86
86
  execSync(command, { stdio: "inherit" });
87
87
  }