itemengine-cypress-automation 1.0.576-IEI-7079-794342b.0 → 1.0.576
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 +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -248
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -247
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -175
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -191
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -184
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -177
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -228
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -183
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -184
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +13 -0
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +117 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +101 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +12 -2
- package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +38 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +41 -23
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +78 -3
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +10 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -167
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +15 -178
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +13 -165
- package/cypress/pages/chartsBarPage.js +1 -44
- package/cypress/pages/chartsDotPlotPage.js +1 -99
- package/cypress/pages/chartsLinePage.js +1 -48
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +20 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +29 -1
- package/cypress/pages/essayResponsePage.js +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
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');
|
|
5
4
|
|
|
6
5
|
describe('Create item page - Charts - Line: Partial equal weights scoring with alternative answer - When Correct answer points are equal to alternative Answer points', () => {
|
|
7
6
|
before(() => {
|
|
@@ -50,28 +49,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
50
49
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
51
50
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
52
51
|
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
|
-
}
|
|
75
52
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
76
53
|
});
|
|
77
54
|
|
|
@@ -93,28 +70,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
93
70
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
94
71
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
95
72
|
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
|
-
}
|
|
118
73
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
119
74
|
});
|
|
120
75
|
|
|
@@ -131,9 +86,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
131
86
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
132
87
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
133
88
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
134
|
-
if (alternativeAnswerCheck === 'true') {
|
|
135
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
136
|
-
}
|
|
137
89
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
138
90
|
});
|
|
139
91
|
|
|
@@ -151,9 +103,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
151
103
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
152
104
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
153
105
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
154
|
-
if (alternativeAnswerCheck === 'true') {
|
|
155
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
156
|
-
}
|
|
157
106
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
158
107
|
});
|
|
159
108
|
|
|
@@ -174,28 +123,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
174
123
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
175
124
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
176
125
|
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
|
-
}
|
|
199
126
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
200
127
|
});
|
|
201
128
|
|
|
@@ -216,28 +143,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
216
143
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
217
144
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
218
145
|
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
|
-
}
|
|
241
146
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
242
147
|
});
|
|
243
148
|
|
|
@@ -258,28 +163,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
258
163
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
259
164
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
260
165
|
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
|
-
}
|
|
283
166
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
284
167
|
});
|
|
285
168
|
|
|
@@ -299,28 +182,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
299
182
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
300
183
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
301
184
|
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
|
-
}
|
|
324
185
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
325
186
|
});
|
|
326
187
|
|
|
@@ -342,28 +203,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
342
203
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
343
204
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
344
205
|
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
|
-
}
|
|
367
206
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
368
207
|
});
|
|
369
208
|
|
|
@@ -386,28 +225,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
386
225
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
387
226
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
388
227
|
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
|
-
}
|
|
411
228
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
412
229
|
});
|
|
413
230
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
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
|
-
|
|
6
4
|
describe('Create item page - Charts - Line: Partial equal weights scoring with alternative answer - When Correct answer points are more than alternative Answer points', () => {
|
|
7
5
|
before(() => {
|
|
8
6
|
cy.loginAs('admin');
|
|
@@ -51,28 +49,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
51
49
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
52
50
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
53
51
|
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
|
-
}
|
|
76
52
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
77
53
|
/* 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')
|
|
78
54
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -103,28 +79,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
103
79
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
104
80
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
105
81
|
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
|
-
}
|
|
128
82
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
129
83
|
/* 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')
|
|
130
84
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -150,9 +104,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
150
104
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
151
105
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
152
106
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
153
|
-
if (alternativeAnswerCheck === 'true') {
|
|
154
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
155
|
-
}
|
|
156
107
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
157
108
|
/* 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')
|
|
158
109
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -179,9 +130,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
179
130
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
180
131
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
181
132
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
182
|
-
if (alternativeAnswerCheck === 'true') {
|
|
183
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
184
|
-
}
|
|
185
133
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
186
134
|
/* 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')
|
|
187
135
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -210,28 +158,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
210
158
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
211
159
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
212
160
|
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
|
-
}
|
|
235
161
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
236
162
|
/* 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')
|
|
237
163
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -261,28 +187,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
261
187
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
262
188
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
263
189
|
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
|
-
}
|
|
286
190
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
287
191
|
/* 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')
|
|
288
192
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -312,28 +216,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
312
216
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
313
217
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
314
218
|
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
|
-
}
|
|
337
219
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
338
220
|
/* 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')
|
|
339
221
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -362,28 +244,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
362
244
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
363
245
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
364
246
|
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
|
-
}
|
|
387
247
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
388
248
|
/* 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')
|
|
389
249
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -414,28 +274,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
414
274
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
415
275
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
416
276
|
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
|
-
}
|
|
439
277
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
440
278
|
/* 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')
|
|
441
279
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -467,28 +305,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
467
305
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
468
306
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
469
307
|
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
|
-
}
|
|
492
308
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
493
309
|
/* 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')
|
|
494
310
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -524,28 +340,6 @@ describe('Create item page - Charts - Line: Partial equal weights scoring with a
|
|
|
524
340
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
525
341
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
526
342
|
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
|
-
}
|
|
549
343
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
550
344
|
/* 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')
|
|
551
345
|
chartsLinePage.steps.checkAnswer();
|