itemengine-cypress-automation 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.0 → 1.0.578-IEI-7079-de6e553.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/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +184 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +164 -14
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +167 -16
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +178 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +165 -13
- package/cypress/pages/chartsBarPage.js +44 -1
- package/cypress/pages/chartsDotPlotPage.js +99 -1
- package/cypress/pages/chartsLinePage.js +48 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { chartsLinePage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
const css = Cypress.env('css');
|
|
4
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
5
|
|
|
5
6
|
describe('Create item page - Charts - Line: Partial equal weights scoring with alternative answer - When Correct answer points are equal to alternative Answer points', () => {
|
|
6
7
|
before(() => {
|
|
@@ -49,6 +50,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
49
50
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
50
51
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
51
52
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
53
|
+
if (alternativeAnswerCheck === 'true') {
|
|
54
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
55
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
56
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
57
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
58
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
59
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
60
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
61
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
62
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
63
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
64
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
65
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
66
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
67
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
68
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
69
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
70
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
71
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
72
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
73
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
74
|
+
}
|
|
52
75
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
53
76
|
});
|
|
54
77
|
|
|
@@ -70,6 +93,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
70
93
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
71
94
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
72
95
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
96
|
+
if (alternativeAnswerCheck === 'true') {
|
|
97
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
98
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
99
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
100
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
101
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
102
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
103
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
104
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
105
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
106
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
107
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
108
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
109
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
110
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
111
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
112
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
113
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
114
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
115
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
116
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
117
|
+
}
|
|
73
118
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
74
119
|
});
|
|
75
120
|
|
|
@@ -86,6 +131,9 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
86
131
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
87
132
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
88
133
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
134
|
+
if (alternativeAnswerCheck === 'true') {
|
|
135
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
136
|
+
}
|
|
89
137
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
90
138
|
});
|
|
91
139
|
|
|
@@ -103,6 +151,9 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
103
151
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
104
152
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
105
153
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
154
|
+
if (alternativeAnswerCheck === 'true') {
|
|
155
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
156
|
+
}
|
|
106
157
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
107
158
|
});
|
|
108
159
|
|
|
@@ -123,6 +174,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
123
174
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
124
175
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
125
176
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
177
|
+
if (alternativeAnswerCheck === 'true') {
|
|
178
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
179
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
180
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
181
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
182
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
183
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
184
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
185
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
186
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
187
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
188
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
189
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
190
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
191
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
192
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
193
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
194
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
195
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
196
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
197
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
198
|
+
}
|
|
126
199
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
127
200
|
});
|
|
128
201
|
|
|
@@ -143,6 +216,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
143
216
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
144
217
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
145
218
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
219
|
+
if (alternativeAnswerCheck === 'true') {
|
|
220
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
221
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
222
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
223
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
224
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
225
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
226
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
227
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
228
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
229
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
230
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
231
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
232
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
233
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
234
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
235
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
236
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
237
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
238
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
239
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
240
|
+
}
|
|
146
241
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
147
242
|
});
|
|
148
243
|
|
|
@@ -163,6 +258,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
163
258
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
164
259
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
165
260
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
261
|
+
if (alternativeAnswerCheck === 'true') {
|
|
262
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
263
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
264
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
265
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
266
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
267
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
268
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
269
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
270
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
271
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
272
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
273
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
274
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
275
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
276
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
277
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
278
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
279
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
280
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
281
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
282
|
+
}
|
|
166
283
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
167
284
|
});
|
|
168
285
|
|
|
@@ -182,6 +299,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
182
299
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
183
300
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
184
301
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
302
|
+
if (alternativeAnswerCheck === 'true') {
|
|
303
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
304
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
305
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
306
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
307
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
308
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
309
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
310
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
311
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
312
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
313
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
314
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
315
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
316
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
317
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
318
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
319
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
320
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
321
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
322
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
323
|
+
}
|
|
185
324
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
186
325
|
});
|
|
187
326
|
|
|
@@ -203,6 +342,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
203
342
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
204
343
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
205
344
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
345
|
+
if (alternativeAnswerCheck === 'true') {
|
|
346
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
347
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
348
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
349
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
350
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
351
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
352
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
353
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
354
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
355
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
356
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
357
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
358
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
359
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
360
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
361
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
362
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
363
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
364
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
365
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
366
|
+
}
|
|
206
367
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
207
368
|
});
|
|
208
369
|
|
|
@@ -225,6 +386,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
225
386
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
226
387
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
227
388
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
389
|
+
if (alternativeAnswerCheck === 'true') {
|
|
390
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
391
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
392
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
393
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
394
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
395
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
396
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
397
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
398
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
399
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
400
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
401
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
402
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
403
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
404
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
405
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
406
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
407
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
408
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
409
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
410
|
+
}
|
|
228
411
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
229
412
|
});
|
|
230
413
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { chartsLinePage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
|
+
|
|
4
6
|
describe('Create item page - Charts - Line: Partial equal weights scoring with alternative answer - When Correct answer points are more than alternative Answer points', () => {
|
|
5
7
|
before(() => {
|
|
6
8
|
cy.loginAs('admin');
|
|
@@ -49,6 +51,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
49
51
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
50
52
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
51
53
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
54
|
+
if (alternativeAnswerCheck === 'true') {
|
|
55
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
56
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
57
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
58
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
59
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
60
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
61
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
62
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
63
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
64
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
65
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
66
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
67
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
68
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
69
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
70
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
71
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
72
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
73
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
74
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
75
|
+
}
|
|
52
76
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
53
77
|
/* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the unattempted points and correct icons should be displayed on the bar which is correct by default')
|
|
54
78
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -79,6 +103,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
79
103
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
80
104
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
81
105
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
106
|
+
if (alternativeAnswerCheck === 'true') {
|
|
107
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
108
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
109
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
110
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
111
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
112
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
113
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
114
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
115
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
116
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
117
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
118
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
119
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
120
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
121
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
122
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
123
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
124
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
125
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
126
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
127
|
+
}
|
|
82
128
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
83
129
|
/* cy.log('When the user selects check answer after incorrectly attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrectly attempted points')
|
|
84
130
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -104,6 +150,9 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
104
150
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
105
151
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
106
152
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
153
|
+
if (alternativeAnswerCheck === 'true') {
|
|
154
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
155
|
+
}
|
|
107
156
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
108
157
|
/* cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
109
158
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -130,6 +179,9 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
130
179
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
131
180
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
132
181
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
182
|
+
if (alternativeAnswerCheck === 'true') {
|
|
183
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
184
|
+
}
|
|
133
185
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
134
186
|
/* cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
135
187
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -158,6 +210,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
158
210
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
159
211
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
160
212
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
213
|
+
if (alternativeAnswerCheck === 'true') {
|
|
214
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
215
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
216
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
217
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
218
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
219
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
220
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
221
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
222
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
223
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
224
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
225
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
226
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
227
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
228
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
229
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
230
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
231
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
232
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
233
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
234
|
+
}
|
|
161
235
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
162
236
|
/* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
163
237
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -187,6 +261,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
187
261
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
188
262
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
189
263
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
264
|
+
if (alternativeAnswerCheck === 'true') {
|
|
265
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
266
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
267
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
268
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
269
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
270
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
271
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
272
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
273
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
274
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
275
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
276
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
277
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
278
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
279
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
280
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
281
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
282
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
283
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
284
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
285
|
+
}
|
|
190
286
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
287
|
/* cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect points correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
192
288
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -216,6 +312,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
216
312
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
217
313
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
218
314
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
315
|
+
if (alternativeAnswerCheck === 'true') {
|
|
316
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
317
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
318
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
319
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
320
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
321
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
322
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
323
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
324
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
325
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
326
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
327
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
328
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
329
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
330
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
331
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
332
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
333
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
334
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
335
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
336
|
+
}
|
|
219
337
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
220
338
|
/* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
221
339
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -244,6 +362,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
244
362
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
245
363
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
246
364
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
365
|
+
if (alternativeAnswerCheck === 'true') {
|
|
366
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
367
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
368
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
369
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
370
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
371
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
372
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
373
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
374
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
375
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
376
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
377
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
378
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
379
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
380
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
381
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
382
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
383
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
384
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
385
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
386
|
+
}
|
|
247
387
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
248
388
|
/* cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
249
389
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -274,6 +414,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
274
414
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
275
415
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
276
416
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
417
|
+
if (alternativeAnswerCheck === 'true') {
|
|
418
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
419
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
420
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
421
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
422
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
423
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
424
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
425
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
426
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
427
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
428
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
429
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
430
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
431
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
432
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
433
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
434
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
435
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
436
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
437
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
438
|
+
}
|
|
277
439
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
278
440
|
/* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
279
441
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -305,6 +467,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
305
467
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
306
468
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
307
469
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
470
|
+
if (alternativeAnswerCheck === 'true') {
|
|
471
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
472
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
473
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
474
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
475
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
476
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
477
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
478
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
479
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
480
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
481
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
482
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
483
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
484
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
485
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
486
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
487
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
488
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
489
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
490
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
491
|
+
}
|
|
308
492
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
309
493
|
/* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect points, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
310
494
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -340,6 +524,28 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
340
524
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
341
525
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
342
526
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
527
|
+
if (alternativeAnswerCheck === 'true') {
|
|
528
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 10 pts)');
|
|
529
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
530
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
531
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
532
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
533
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
534
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
535
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
536
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
537
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
538
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
539
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
540
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
541
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
542
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
543
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
544
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 8, range: 10 });
|
|
545
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
546
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
547
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
548
|
+
}
|
|
343
549
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
344
550
|
/* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
345
551
|
chartsLinePage.steps.checkAnswer();
|