itemengine-cypress-automation 1.0.498-update-service-a924f49.0 → 1.0.498
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.
@@ -5,10 +5,14 @@ global:
|
|
5
5
|
enabled: true
|
6
6
|
highestEnvironment: dev
|
7
7
|
|
8
|
+
env:
|
9
|
+
- name: STAGE
|
10
|
+
value: "dev"
|
11
|
+
|
8
12
|
deployment:
|
9
13
|
activeDeadlineSeconds: 28800
|
10
14
|
architecture: amd64
|
11
|
-
backoffLimit:
|
15
|
+
backoffLimit: 1
|
12
16
|
restartPolicy: Never
|
13
17
|
image:
|
14
18
|
cmd: /ie-e2e/deploy/audioResponseQuestion/run.sh
|
@@ -20,6 +24,9 @@ deployment:
|
|
20
24
|
requests:
|
21
25
|
memory: 4096Mi
|
22
26
|
cpu: 2000m
|
27
|
+
env:
|
28
|
+
- name: OTK_VERSION
|
29
|
+
value: "2"
|
23
30
|
|
24
31
|
namespaces:
|
25
32
|
dev:
|
package/package.json
CHANGED
@@ -244,6 +244,8 @@ export function runSorryCypressQuestions() {
|
|
244
244
|
const user = OS.userInfo().username;
|
245
245
|
startTime = Math.round(Date.now() / 1000000);
|
246
246
|
ciBuildId = setCiBuildId(user, startTime);
|
247
|
+
const isOtkv2 = process.env.OTK_VERSION === "2";
|
248
|
+
console.log("🚀 ~ runSorryCypressQuestions ~ isOtkv2:", isOtkv2);
|
247
249
|
let envArgs = setCommandLineEnvArgs();
|
248
250
|
console.log("🚀 ~ runSorryCypressQuestions ~ envArgs (before removing questionType):", envArgs);
|
249
251
|
|
@@ -263,7 +265,13 @@ export function runSorryCypressQuestions() {
|
|
263
265
|
const specPaths = questionTypes.map(type => `cypress/e2e/ILC/${type}/**/*.js`).join(",");
|
264
266
|
console.log("🚀 ~ runSorryCypressQuestions ~ specPaths:", specPaths);
|
265
267
|
|
266
|
-
let command =
|
268
|
+
let command = "";
|
269
|
+
if (isOtkv2) {
|
270
|
+
command = `cy2 run --group --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "${specPaths}"`;
|
271
|
+
} else {
|
272
|
+
command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "${specPaths}"`;
|
273
|
+
}
|
274
|
+
|
267
275
|
console.log(`command: ${command}`);
|
268
276
|
try {
|
269
277
|
execSync(command, {stdio: "inherit"});
|