itemengine-cypress-automation 1.0.299-IEI-5208-pass-parametrs-f2a7f83.0 → 1.0.299-minorUpdated7thFeb-2e116a9.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.
- package/Dockerfile +0 -1
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +3 -2
- package/cypress/pages/singleSelectionPage.js +1 -1
- package/package.json +2 -3
- package/scripts/sorry-cypress.mjs +2 -23
- package/deploy/essayQuestion/deploy.yaml +0 -30
- package/deploy/essayQuestion/run.sh +0 -7
- package/scripts/questions.mjs +0 -3
package/Dockerfile
CHANGED
@@ -108,8 +108,9 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
108
108
|
});
|
109
109
|
} else {
|
110
110
|
it(`The correct options should have correct icons besides them`, () => {
|
111
|
-
|
112
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(
|
111
|
+
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
112
|
+
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
113
|
+
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
113
114
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
114
115
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
115
116
|
});
|
@@ -37,7 +37,7 @@ const selectors = {
|
|
37
37
|
noneOptionNumeration: () => cy.get('.no-numeration-div'),
|
38
38
|
//correct answer section
|
39
39
|
correctAnswersLabel: () => cy.get('[class*="question-preview-wrapper"] [class*="CorrectAnswerLabel"]'),
|
40
|
-
correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(
|
40
|
+
correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(1),
|
41
41
|
optionWrapperCorrectAnswerSection: () => cy.get('.radio-option-wrapper'),
|
42
42
|
correctIncorrectAnswerLabel: () => cy.get('[class*="style"][class*="__Status"]'),
|
43
43
|
answerStatusBanner: () => cy.get('[class*="StatusContainer"]'),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.299-
|
3
|
+
"version": "1.0.299-minorUpdated7thFeb-2e116a9.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -17,8 +17,7 @@
|
|
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",
|
20
|
-
"cy:ilstage": "cypress open --env fileConfig=ilstage"
|
21
|
-
"spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse,grepTags=-css+-a11y"
|
20
|
+
"cy:ilstage": "cypress open --env fileConfig=ilstage"
|
22
21
|
},
|
23
22
|
"repository": {
|
24
23
|
"type": "git",
|
@@ -45,7 +45,6 @@ function setCommandLineEnvArgs() {
|
|
45
45
|
let theme = envArgs.theme ? `theme=${envArgs.theme}` : '';
|
46
46
|
let tags;
|
47
47
|
let fileConfig;
|
48
|
-
const questionType = envArgs.questionType ? `questionType=${envArgs.questionType}` : '';
|
49
48
|
//let consoleErrors = envArgs.consoleErrors ? `consoleErrors=${envArgs.consoleErrors}` : '';
|
50
49
|
|
51
50
|
console.log('ENV is:', env);
|
@@ -73,7 +72,7 @@ function setCommandLineEnvArgs() {
|
|
73
72
|
tags = ''
|
74
73
|
}
|
75
74
|
|
76
|
-
return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (
|
75
|
+
return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (tags ? `,${tags}` : '')
|
77
76
|
//return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (tags ? `,${tags}` : '') + (consoleErrors ? `,${consoleErrors}` : '')
|
78
77
|
}
|
79
78
|
|
@@ -173,24 +172,4 @@ export async function runSorryCypressLocalMigration() {
|
|
173
172
|
let command = `npx cypress run --browser chrome --env fileConfig=ilqa,theme=ilc,migrationQuestionTypes=${questionTypes} --spec "cypress/e2e/migration/*.js"`;
|
174
173
|
console.log(`command: ${command}`);
|
175
174
|
execSync(command, { stdio: "inherit" });
|
176
|
-
}
|
177
|
-
|
178
|
-
// Functions to execute cypress tests specific to Question Types
|
179
|
-
export function runSorryCypressQuestions() {
|
180
|
-
process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.tech/";
|
181
|
-
const user = OS.userInfo().username;
|
182
|
-
startTime = Math.round(Date.now() / 1000000);
|
183
|
-
ciBuildId = setCiBuildId(user, startTime);
|
184
|
-
const envArgs = setCommandLineEnvArgs();
|
185
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ envArgs:", envArgs)
|
186
|
-
|
187
|
-
// Extracting questionType from envArgs
|
188
|
-
const match = envArgs.match(/questionType=([^,]+)/);
|
189
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ match:", match)
|
190
|
-
const questionType = match ? match[1] : "**"; // Default to "**" if not found
|
191
|
-
console.log("🚀 ~ runSorryCypressQuestions ~ questionType:", questionType)
|
192
|
-
|
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"`;
|
194
|
-
console.log(`command: ${command}`);
|
195
|
-
execSync(command, { stdio: "inherit" });
|
196
|
-
}
|
175
|
+
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
global:
|
2
|
-
team: itemengine
|
3
|
-
name: item-engine-ui-essay-response
|
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/essayQuestion/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 }}"
|
package/scripts/questions.mjs
DELETED