itemengine-cypress-automation 1.0.602-IEI-7053-f14f91b.0 → 1.0.602-IEI-7260-20e3fb8.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.
Files changed (18) hide show
  1. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -108
  2. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +5 -58
  3. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -25
  4. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -108
  5. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +7 -108
  6. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +10 -93
  7. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -123
  8. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +7 -108
  9. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -123
  10. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -47
  11. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -123
  12. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +7 -108
  13. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -123
  14. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -234
  15. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -235
  16. package/cypress/e2e/ILC/ThinkSphere/gradingViewPlanTabSection.js +1 -0
  17. package/cypress/pages/textEntryMathPage.js +3 -41
  18. package/package.json +1 -1
@@ -2,9 +2,6 @@ import { textEntryMathPage } from "../../../../pages";
2
2
  import { equationEditorFlyout } from "../../../../pages/components";
3
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../../support/helpers/utilities";
5
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
6
-
7
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
8
5
 
9
6
  describe('Create Item page - Text entry math: Preview scoring', () => {
10
7
  before(() => {
@@ -55,21 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
55
52
  it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
56
53
  textEntryMathPage.steps.switchToGradingView();
57
54
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
58
- if (alternativeAnswerCheck) {
59
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
60
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
61
- {
62
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
63
- points: ['(20 points)']
64
- },
65
- {
66
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
67
- points: ['(12 points)']
68
- },
69
- ]);
70
- } else {
71
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
72
- }
55
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
73
56
  textEntryMathPage.steps.switchToGradingView();
74
57
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
75
58
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
@@ -130,21 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
130
113
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
131
114
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
132
115
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
133
- if (alternativeAnswerCheck) {
134
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
135
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
136
- {
137
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
138
- points: ['(20 points)']
139
- },
140
- {
141
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
142
- points: ['(12 points)']
143
- },
144
- ]);
145
- } else {
146
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
147
- }
116
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
148
117
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
149
118
  });
150
119
 
@@ -161,21 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
161
130
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
162
131
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
163
132
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
164
- if (alternativeAnswerCheck) {
165
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
166
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
167
- {
168
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
169
- points: ['(20 points)']
170
- },
171
- {
172
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
173
- points: ['(12 points)']
174
- },
175
- ]);
176
- } else {
177
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
178
- }
133
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
179
134
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
180
135
  });
181
136
 
@@ -192,21 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
192
147
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
193
148
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
194
149
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
195
- if (alternativeAnswerCheck) {
196
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
197
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
198
- {
199
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
200
- points: ['(20 points)']
201
- },
202
- {
203
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
204
- points: ['(12 points)']
205
- },
206
- ]);
207
- } else {
208
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
209
- }
150
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
210
151
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
211
152
  });
212
153
 
@@ -226,21 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
226
167
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
227
168
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
228
169
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
- if (alternativeAnswerCheck) {
230
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
231
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
232
- {
233
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
234
- points: ['(20 points)']
235
- },
236
- {
237
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
238
- points: ['(12 points)']
239
- },
240
- ]);
241
- } else {
242
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
243
- }
170
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
244
171
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
245
172
  });
246
173
 
@@ -255,21 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
255
182
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
256
183
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
257
184
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
258
- if (alternativeAnswerCheck) {
259
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
260
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
261
- {
262
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
263
- points: ['(20 points)']
264
- },
265
- {
266
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
267
- points: ['(12 points)']
268
- },
269
- ]);
270
- } else {
271
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
272
- }
185
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
273
186
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
274
187
  });
275
188
 
@@ -290,21 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
290
203
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
291
204
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
292
205
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
293
- if (alternativeAnswerCheck) {
294
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
295
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
296
- {
297
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
298
- points: ['(20 points)']
299
- },
300
- {
301
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
302
- points: ['(12 points)']
303
- },
304
- ]);
305
- } else {
306
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
307
- }
206
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e']);
308
207
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
309
208
  });
310
209
  });
@@ -2,9 +2,6 @@ import { textEntryMathPage } from "../../../../pages";
2
2
  import { equationEditorFlyout } from "../../../../pages/components";
3
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../../support/helpers/utilities";
5
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
6
-
7
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
8
5
 
9
6
  describe('Create Item page - Text entry math: Preview scoring', () => {
10
7
  before(() => {
@@ -43,17 +40,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
43
40
  it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
44
41
  textEntryMathPage.steps.switchToGradingView();
45
42
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
46
- if (alternativeAnswerCheck) {
47
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
48
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
49
- {
50
- correctAnswers: ['2⁢x+3⁢x', '(a+b)2'],
51
- points: ['(10 points)']
52
- }
53
- ]);
54
- } else {
55
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
56
- }
43
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
57
44
  textEntryMathPage.steps.switchToGradingView();
58
45
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
59
46
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
@@ -90,17 +77,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
90
77
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
91
78
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
92
79
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
93
- if (alternativeAnswerCheck) {
94
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
95
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
96
- {
97
- correctAnswers: ['2⁢x+3⁢x', '(a+b)2'],
98
- points: ['(10 points)']
99
- }
100
- ]);
101
- } else {
102
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
103
- }
80
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
104
81
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
105
82
  });
106
83
 
@@ -117,17 +94,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
117
94
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
118
95
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
119
96
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
120
- if (alternativeAnswerCheck) {
121
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
122
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
123
- {
124
- correctAnswers: ['2⁢x+3⁢x', '(a+b)2'],
125
- points: ['(10 points)']
126
- }
127
- ]);
128
- } else {
129
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
130
- }
97
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
131
98
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
132
99
  });
133
100
 
@@ -144,17 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
144
111
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
145
112
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
146
113
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
147
- if (alternativeAnswerCheck) {
148
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
149
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
150
- {
151
- correctAnswers: ['2⁢x+3⁢x', '(a+b)2'],
152
- points: ['(10 points)']
153
- }
154
- ]);
155
- } else {
156
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
157
- }
114
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
158
115
  });
159
116
 
160
117
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
@@ -170,17 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
170
127
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
171
128
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
172
129
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
173
- if (alternativeAnswerCheck) {
174
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
175
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
176
- {
177
- correctAnswers: ['2⁢x+3⁢x', '(a+b)2'],
178
- points: ['(10 points)']
179
- }
180
- ]);
181
- } else {
182
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
183
- }
130
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2⁢x+3⁢x', '(a+b)2']);
184
131
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
185
132
  });
186
133
  });
@@ -2,9 +2,6 @@ import { textEntryMathPage } from "../../../../pages";
2
2
  import { equationEditorFlyout } from "../../../../pages/components";
3
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../../support/helpers/utilities";
5
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
6
-
7
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
8
5
 
9
6
  describe('Create Item page - Text entry math: Preview scoring', () => {
10
7
  before(() => {
@@ -43,17 +40,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
43
40
  it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
44
41
  textEntryMathPage.steps.switchToGradingView();
45
42
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
46
- if (alternativeAnswerCheck) {
47
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
48
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
49
- {
50
- correctAnswers: ['c⁢a⁢r', 'c⁢a⁢t'],
51
- points: ['(20 points)']
52
- }
53
- ]);
54
- } else {
55
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['c⁢a⁢r', 'c⁢a⁢t']);
56
- }
43
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['c⁢a⁢r', 'c⁢a⁢t']);
57
44
  textEntryMathPage.steps.switchToGradingView();
58
45
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
59
46
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
@@ -124,17 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
124
111
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
125
112
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
126
113
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
- if (alternativeAnswerCheck) {
128
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
129
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
130
- {
131
- correctAnswers: ['c⁢a⁢r', 'c⁢a⁢t'],
132
- points: ['(20 points)']
133
- }
134
- ]);
135
- } else {
136
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['c⁢a⁢r', 'c⁢a⁢t']);
137
- }
114
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['c⁢a⁢r', 'c⁢a⁢t']);
138
115
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
139
116
  });
140
117
 
@@ -2,9 +2,6 @@ import { textEntryMathPage } from "../../../../pages";
2
2
  import { equationEditorFlyout } from "../../../../pages/components";
3
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../../support/helpers/utilities";
5
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
6
-
7
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
8
5
 
9
6
  describe('Create Item page - Text entry math: Preview scoring', () => {
10
7
  before(() => {
@@ -55,21 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
55
52
  it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
56
53
  textEntryMathPage.steps.switchToGradingView();
57
54
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
58
- if (alternativeAnswerCheck) {
59
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
60
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
61
- {
62
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
63
- points: ['(20 points)']
64
- },
65
- {
66
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
67
- points: ['(20 points)']
68
- },
69
- ]);
70
- } else {
71
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
72
- }
55
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
73
56
  textEntryMathPage.steps.switchToGradingView();
74
57
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
75
58
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
@@ -130,21 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
130
113
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
131
114
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
132
115
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
133
- if (alternativeAnswerCheck) {
134
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
135
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
136
- {
137
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
138
- points: ['(20 points)']
139
- },
140
- {
141
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
142
- points: ['(20 points)']
143
- },
144
- ]);
145
- } else {
146
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
147
- }
116
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
148
117
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
149
118
  });
150
119
 
@@ -161,21 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
161
130
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
162
131
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
163
132
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
164
- if (alternativeAnswerCheck) {
165
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
166
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
167
- {
168
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
169
- points: ['(20 points)']
170
- },
171
- {
172
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
173
- points: ['(20 points)']
174
- },
175
- ]);
176
- } else {
177
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
178
- }
133
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
179
134
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
180
135
  });
181
136
 
@@ -192,21 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
192
147
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
193
148
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
194
149
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
195
- if (alternativeAnswerCheck) {
196
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
197
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
198
- {
199
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
200
- points: ['(20 points)']
201
- },
202
- {
203
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
204
- points: ['(20 points)']
205
- },
206
- ]);
207
- } else {
208
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
209
- }
150
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
210
151
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
211
152
  });
212
153
 
@@ -226,21 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
226
167
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
227
168
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
228
169
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
- if (alternativeAnswerCheck) {
230
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
231
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
232
- {
233
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
234
- points: ['(20 points)']
235
- },
236
- {
237
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
238
- points: ['(20 points)']
239
- },
240
- ]);
241
- } else {
242
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
243
- }
170
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
244
171
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
245
172
  });
246
173
 
@@ -255,21 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
255
182
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
256
183
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
257
184
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
258
- if (alternativeAnswerCheck) {
259
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
260
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
261
- {
262
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
263
- points: ['(20 points)']
264
- },
265
- {
266
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
267
- points: ['(20 points)']
268
- },
269
- ]);
270
- } else {
271
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
272
- }
185
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
273
186
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
274
187
  });
275
188
 
@@ -290,21 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
290
203
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
291
204
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
292
205
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
293
- if (alternativeAnswerCheck) {
294
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
295
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
296
- {
297
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%'],
298
- points: ['(20 points)']
299
- },
300
- {
301
- correctAnswers: ['C⁢o⁢r⁢r⁢e⁢c⁢t', '6×π', '7.07⁢e'],
302
- points: ['(20 points)']
303
- },
304
- ]);
305
- } else {
306
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
307
- }
206
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
308
207
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
309
208
  });
310
209
  });