itemengine-cypress-automation 1.0.138-migrationScripts-a4b4ba4.0 → 1.0.139
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +7 -7
- package/scripts/smoke.mjs +3 -0
- package/scripts/smokeLocal.mjs +3 -0
- package/scripts/sorry-cypress.mjs +36 -7
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.139",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"build": "echo 'building'",
|
8
8
|
"test": "echo 'success'",
|
9
|
-
"local": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc
|
9
|
+
"local": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc",
|
10
|
+
"spinnaker": "node scripts/spinnaker.mjs --env theme=ilc",
|
10
11
|
"local:untagged": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc,grepTags=-css+-a11y",
|
11
|
-
"local:smoke": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc,grepTags=smoke+-css+-a11y --spec cypress/e2e/ILC/**/*.smoke.js",
|
12
|
-
"spinnaker": "node scripts/spinnaker.mjs --env theme=ilc,grepTags=-css+-a11y --spec cypress/e2e/ILC/**/*.js",
|
13
12
|
"spinnaker:untagged": "node scripts/spinnaker.mjs --env theme=ilc,grepTags=-css+-a11y",
|
14
|
-
"
|
15
|
-
"spinnaker:
|
13
|
+
"local:smoke": "node scripts/smokeLocal.mjs --env fileConfig=ilqa,theme=ilc,grepTags=smoke+-css+-a11y",
|
14
|
+
"spinnaker:smoke": "node scripts/smoke.mjs --env theme=ilc,grepTags=smoke+-css+-a11y",
|
16
15
|
"local:migration": "node scripts/migrationLocal.mjs --env theme=ilc",
|
16
|
+
"spinnaker:migration": "node scripts/migration.mjs --env theme=ilc",
|
17
17
|
"cy:ildev": "cypress open --env fileConfig=ildev",
|
18
18
|
"cy:ilprod": "cypress open --env fileConfig=ilprod",
|
19
19
|
"cy:ilqa": "cypress open --env fileConfig=ilqa",
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|
@@ -6,7 +6,7 @@ import { getS3Object } from "./awsHelper.mjs";
|
|
6
6
|
let ciBuildId;
|
7
7
|
let startTime;
|
8
8
|
const envArgs = {};
|
9
|
-
let spec;
|
9
|
+
// let spec;
|
10
10
|
|
11
11
|
if (process.argv.includes('--env')) {
|
12
12
|
const envArgsString = process.argv[process.argv.findIndex(elem => elem === '--env') + 1];
|
@@ -20,10 +20,10 @@ if (process.argv.includes('--env')) {
|
|
20
20
|
|
21
21
|
const env = process.env.STAGE ? process.env.STAGE : envArgs.fileConfig;
|
22
22
|
|
23
|
-
if (process.argv.includes('--spec')) {
|
24
|
-
|
25
|
-
|
26
|
-
}
|
23
|
+
// if (process.argv.includes('--spec')) {
|
24
|
+
// const specValue = process.argv[process.argv.findIndex(elem => elem === '--spec') + 1];
|
25
|
+
// spec = specValue ? `--spec ${specValue}` : '';
|
26
|
+
// }
|
27
27
|
|
28
28
|
/**
|
29
29
|
* @param {string} user
|
@@ -78,7 +78,8 @@ export function runSorryCypressLocal() {
|
|
78
78
|
startTime = Math.round(Date.now() / 1000000);
|
79
79
|
ciBuildId = setCiBuildId(user, startTime);
|
80
80
|
const envArgs = setCommandLineEnvArgs()
|
81
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs}
|
81
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec cypress/e2e/ILC/**/*.js`;
|
82
|
+
console.log(`command: ${command}`);
|
82
83
|
execSync(command, { stdio: "inherit" });
|
83
84
|
}
|
84
85
|
|
@@ -90,7 +91,35 @@ export function runSorryCypressSpinnaker() {
|
|
90
91
|
startTime = process.env.START_TIME;
|
91
92
|
ciBuildId = setCiBuildId("spinnaker", startTime);
|
92
93
|
const envArgs = setCommandLineEnvArgs()
|
93
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs}
|
94
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec cypress/e2e/ILC/**/*.js`;
|
95
|
+
console.log(`command: ${command}`);
|
96
|
+
execSync(command, { stdio: "inherit" });
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* @method runSorryCypressLocalSmoke
|
101
|
+
*/
|
102
|
+
export function runSorryCypressLocalSmoke() {
|
103
|
+
process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.engineering/";
|
104
|
+
const user = OS.userInfo().username;
|
105
|
+
startTime = Math.round(Date.now() / 1000000);
|
106
|
+
ciBuildId = setCiBuildId(user, startTime);
|
107
|
+
const envArgs = setCommandLineEnvArgs()
|
108
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec cypress/e2e/ILC/**/*.smoke.js`;
|
109
|
+
console.log(`command: ${command}`);
|
110
|
+
execSync(command, { stdio: "inherit" });
|
111
|
+
}
|
112
|
+
|
113
|
+
/**
|
114
|
+
* @method runSorryCypressSpinnakerSmoke
|
115
|
+
*/
|
116
|
+
export function runSorryCypressSpinnakerSmoke() {
|
117
|
+
process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.engineering/";
|
118
|
+
startTime = process.env.START_TIME;
|
119
|
+
ciBuildId = setCiBuildId("spinnaker", startTime);
|
120
|
+
const envArgs = setCommandLineEnvArgs()
|
121
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec cypress/e2e/ILC/**/*.smoke.js`;
|
122
|
+
console.log(`command: ${command}`);
|
94
123
|
execSync(command, { stdio: "inherit" });
|
95
124
|
}
|
96
125
|
|