itemengine-cypress-automation 1.0.316-reducingDeployFiles-ba516bc.0 → 1.0.316-update-package-version-7582a78.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.
@@ -0,0 +1,30 @@
1
+ global:
2
+ team: itemengine
3
+ name: item-engine-ui-essay-response-basic
4
+ type: integration_test
5
+
6
+ variables:
7
+ START_TIME: "$(date +%s)"
8
+
9
+ deployment:
10
+ job:
11
+ backoffLimit: 25
12
+ activeDeadlineSeconds: 7200
13
+ parallelism: 7
14
+ completions: 7
15
+
16
+ image:
17
+ cmd: /ie-e2e/deploy/essayResponseBasicQuestion/run.sh
18
+
19
+ resources:
20
+ limits:
21
+ memory: 8446Mi
22
+ cpu: 5000m
23
+ requests:
24
+ memory: 4096Mi
25
+ cpu: 2000m
26
+
27
+ env:
28
+ instance:
29
+ - name: START_TIME
30
+ value: "${{ variables.START_TIME }}"
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ env=$STAGE
3
+ echo Environment to test: $env
4
+ echo START_TIME: $START_TIME
5
+ echo "Running Essay Response basic question test"
6
+
7
+ npm run spinnaker:essayResponseBasic
@@ -0,0 +1,30 @@
1
+ global:
2
+ team: itemengine
3
+ name: item-engine-ui-essay-response-math
4
+ type: integration_test
5
+
6
+ variables:
7
+ START_TIME: "$(date +%s)"
8
+
9
+ deployment:
10
+ job:
11
+ backoffLimit: 25
12
+ activeDeadlineSeconds: 7200
13
+ parallelism: 2
14
+ completions: 2
15
+
16
+ image:
17
+ cmd: /ie-e2e/deploy/essayResponseMathQuestion/run.sh
18
+
19
+ resources:
20
+ limits:
21
+ memory: 8446Mi
22
+ cpu: 5000m
23
+ requests:
24
+ memory: 4096Mi
25
+ cpu: 2000m
26
+
27
+ env:
28
+ instance:
29
+ - name: START_TIME
30
+ value: "${{ variables.START_TIME }}"
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ env=$STAGE
3
+ echo Environment to test: $env
4
+ echo START_TIME: $START_TIME
5
+ echo "Running Essay Response math question test"
6
+
7
+ npm run spinnaker:essayResponseMath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.316-reducingDeployFiles-ba516bc.0",
3
+ "version": "1.0.316-update-package-version-7582a78.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "cy:ilprod": "cypress open --env fileConfig=ilprod",
19
19
  "cy:ilqa": "cypress open --env fileConfig=ilqa",
20
20
  "cy:ilstage": "cypress open --env fileConfig=ilstage",
21
- "spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse_EssayResponseBasic_EssayResponseMath,grepTags=-css+-a11y",
21
+ "spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse,grepTags=-css+-a11y",
22
22
  "spinnaker:thinkSphereQuestion": "node scripts/questions.mjs --env theme=ilc,questionType=ThinkSphere,grepTags=-css+-a11y",
23
23
  "spinnaker:textEntryMath": "node scripts/questions.mjs --env theme=ilc,questionType=TextEntryMath,grepTags=-css+-a11y",
24
24
  "spinnaker:textEntryMathImage": "node scripts/questions.mjs --env theme=ilc,questionType=TextEntryMathWithImage,grepTags=-css+-a11y",
@@ -36,7 +36,9 @@
36
36
  "spinnaker:matchingDropdown": "node scripts/questions.mjs --env theme=ilc,questionType=MatchingDropdown,grepTags=-css+-a11y",
37
37
  "spinnaker:listOrderingDropdown": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingDropdown,grepTags=-css+-a11y",
38
38
  "spinnaker:listOrdering": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingNew,grepTags=-css+-a11y",
39
- "spinnaker:listOrderingReorder": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingReorderAsASeperateList,grepTags=-css+-a11y"
39
+ "spinnaker:listOrderingReorder": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingReorderAsASeperateList,grepTags=-css+-a11y",
40
+ "spinnaker:essayResponseBasic": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponseBasic,grepTags=-css+-a11y",
41
+ "spinnaker:essayResponseMath": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponseMath,grepTags=-css+-a11y"
40
42
  },
41
43
  "repository": {
42
44
  "type": "git",
@@ -181,26 +181,16 @@ export function runSorryCypressQuestions() {
181
181
  const user = OS.userInfo().username;
182
182
  startTime = Math.round(Date.now() / 1000000);
183
183
  ciBuildId = setCiBuildId(user, startTime);
184
- let envArgs = setCommandLineEnvArgs();
185
- console.log("🚀 ~ runSorryCypressQuestions ~ envArgs (before removing questionType):", envArgs);
186
-
187
- // Extract and remove questionType from envArgs
184
+ const envArgs = setCommandLineEnvArgs();
185
+ console.log("🚀 ~ runSorryCypressQuestions ~ envArgs:", envArgs)
186
+
187
+ // Extracting questionType from envArgs
188
188
  const match = envArgs.match(/questionType=([^,]+)/);
189
+ console.log("🚀 ~ runSorryCypressQuestions ~ match:", match)
189
190
  const questionType = match ? match[1] : "**"; // Default to "**" if not found
190
- console.log("🚀 ~ runSorryCypressQuestions ~ questionType:", questionType);
191
-
192
- envArgs = envArgs.replace(/questionType=[^,]+,?/, "").trim(); // Remove questionType from envArgs
193
- console.log("🚀 ~ runSorryCypressQuestions ~ envArgs (after removing questionType):", envArgs);
194
-
195
- // Handling multiple question types (underscore-separated)
196
- const questionTypes = questionType.split("_");
197
- console.log("🚀 ~ runSorryCypressQuestions ~ questionTypes:", questionTypes);
198
-
199
- // Creating spec paths for Cypress
200
- const specPaths = questionTypes.map(type => `cypress/e2e/ILC/${type}/**/*.js`).join(",");
201
- console.log("🚀 ~ runSorryCypressQuestions ~ specPaths:", specPaths);
191
+ console.log("🚀 ~ runSorryCypressQuestions ~ questionType:", questionType)
202
192
 
203
- let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "${specPaths}"`;
193
+ let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/${questionType}/**/*.js"`;
204
194
  console.log(`command: ${command}`);
205
195
  execSync(command, { stdio: "inherit" });
206
196
  }