itemengine-cypress-automation 1.0.316-update-package-version-7582a78.0 → 1.0.316
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.
- package/Dockerfile +0 -2
- package/package.json +4 -6
- package/scripts/sorry-cypress.mjs +17 -7
- package/deploy/essayResponseBasicQuestion/deploy.yaml +0 -30
- package/deploy/essayResponseBasicQuestion/run.sh +0 -7
- package/deploy/essayResponseMathQuestion/deploy.yaml +0 -30
- package/deploy/essayResponseMathQuestion/run.sh +0 -7
package/Dockerfile
CHANGED
@@ -34,8 +34,6 @@ RUN chmod +x ./deploy/matchingDropdownQuestion/run.sh
|
|
34
34
|
RUN chmod +x ./deploy/listOrderingDropdownQuestion/run.sh
|
35
35
|
RUN chmod +x ./deploy/listOrderingQuestion/run.sh
|
36
36
|
RUN chmod +x ./deploy/listOrderingReorderQuestion/run.sh
|
37
|
-
RUN chmod +x ./deploy/essayResponseBasicQuestion/run.sh
|
38
|
-
RUN chmod +x ./deploy/essayResponseMathQuestion/run.sh
|
39
37
|
|
40
38
|
RUN npm ci
|
41
39
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.316
|
3
|
+
"version": "1.0.316",
|
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=
|
21
|
+
"spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse_EssayResponseBasic_EssayResponseMath,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,9 +36,7 @@
|
|
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"
|
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"
|
39
|
+
"spinnaker:listOrderingReorder": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingReorderAsASeperateList,grepTags=-css+-a11y"
|
42
40
|
},
|
43
41
|
"repository": {
|
44
42
|
"type": "git",
|
@@ -60,4 +58,4 @@
|
|
60
58
|
"devDependencies": {
|
61
59
|
"@applitools/eyes-cypress": "^3.47.0"
|
62
60
|
}
|
63
|
-
}
|
61
|
+
}
|
@@ -181,16 +181,26 @@ 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
|
-
|
185
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ envArgs:", envArgs)
|
186
|
-
|
187
|
-
//
|
184
|
+
let envArgs = setCommandLineEnvArgs();
|
185
|
+
console.log("🚀 ~ runSorryCypressQuestions ~ envArgs (before removing questionType):", envArgs);
|
186
|
+
|
187
|
+
// Extract and remove questionType from envArgs
|
188
188
|
const match = envArgs.match(/questionType=([^,]+)/);
|
189
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ match:", match)
|
190
189
|
const questionType = match ? match[1] : "**"; // Default to "**" if not found
|
191
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ questionType:", questionType)
|
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);
|
192
202
|
|
193
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "
|
203
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "${specPaths}"`;
|
194
204
|
console.log(`command: ${command}`);
|
195
205
|
execSync(command, { stdio: "inherit" });
|
196
206
|
}
|
@@ -1,30 +0,0 @@
|
|
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 }}"
|
@@ -1,30 +0,0 @@
|
|
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 }}"
|