itemengine-cypress-automation 1.0.498-update-service-b9095c6.0 → 1.0.499-dependabot-npm-and-yarn-multi-c7c3a225fc-1b9e639.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.
@@ -5,6 +5,10 @@ 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
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.498-update-service-b9095c6.0",
3
+ "version": "1.0.499-dependabot-npm-and-yarn-multi-c7c3a225fc-1b9e639.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,7 +41,7 @@
41
41
  "axe-core": "^4.7.1",
42
42
  "cy-verify-downloads": "^0.1.11",
43
43
  "cy2": "^4.0.9",
44
- "cypress": "^12.17.2",
44
+ "cypress": "^15.1.0",
45
45
  "cypress-axe": "^1.4.0",
46
46
  "cypress-file-upload": "^5.0.8",
47
47
  "cypress-real-events": "^1.7.6",
@@ -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 = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "${specPaths}"`;
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"});