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,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 different weights scoring with alternative answer - When alternate answer points are more than correct answer points', () => {
|
|
5
7
|
before(() => {
|
|
6
8
|
cy.loginAs('admin');
|
|
@@ -49,6 +51,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
49
51
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
50
52
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
51
53
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
54
|
+
if (alternativeAnswerCheck === 'true') {
|
|
55
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
56
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
57
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
58
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
59
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
60
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, 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 in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
68
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
69
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
70
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
71
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
72
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, 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 bars 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 different weights scoring w
|
|
|
79
103
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
80
104
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
81
105
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
106
|
+
if (alternativeAnswerCheck === 'true') {
|
|
107
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
108
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
109
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
110
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
111
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
112
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, 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 in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
120
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
121
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
122
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
123
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
124
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, 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 bars')
|
|
84
130
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -104,6 +150,9 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
109
158
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -130,6 +179,9 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
135
187
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -159,6 +211,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
159
211
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
160
212
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
161
213
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
214
|
+
if (alternativeAnswerCheck === 'true') {
|
|
215
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
216
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
217
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
218
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
219
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
220
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
221
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
222
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
223
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
224
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
225
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
226
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
227
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
228
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
229
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
230
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
231
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
232
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
233
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
234
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
235
|
+
}
|
|
162
236
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
163
237
|
/* 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')
|
|
164
238
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -188,6 +262,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
188
262
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
189
263
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
190
264
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
265
|
+
if (alternativeAnswerCheck === 'true') {
|
|
266
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
267
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
268
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
269
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
270
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
271
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
272
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
273
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
274
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
275
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
276
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
277
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
278
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
279
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
280
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
281
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
282
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
283
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
284
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
285
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
286
|
+
}
|
|
191
287
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
192
288
|
/* 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 bars correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
193
289
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -217,6 +313,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
217
313
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
218
314
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
219
315
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
316
|
+
if (alternativeAnswerCheck === 'true') {
|
|
317
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
318
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
319
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
320
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
321
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
322
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
323
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
324
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
325
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
326
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
327
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
328
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
329
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
330
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
331
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
332
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
333
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
334
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
335
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
336
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
337
|
+
}
|
|
220
338
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
221
339
|
/* 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')
|
|
222
340
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -245,6 +363,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
245
363
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
246
364
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
247
365
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
366
|
+
if (alternativeAnswerCheck === 'true') {
|
|
367
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
368
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
369
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
370
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
371
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
372
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
373
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
374
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
375
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
376
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
377
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
378
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
379
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
380
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
381
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
382
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
383
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
384
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
385
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
386
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
387
|
+
}
|
|
248
388
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
389
|
/* 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')
|
|
250
390
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -274,6 +414,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
274
414
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
275
415
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
276
416
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
417
|
+
if (alternativeAnswerCheck === 'true') {
|
|
418
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
419
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
420
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
421
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
422
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
423
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, 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 in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
431
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
432
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
433
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
434
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
435
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, 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 different weights scoring w
|
|
|
305
467
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
306
468
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
307
469
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
470
|
+
if (alternativeAnswerCheck === 'true') {
|
|
471
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
472
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
473
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
474
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
475
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
476
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, 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 in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
484
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
485
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
486
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
487
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
488
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, 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 icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
310
494
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -336,6 +520,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
336
520
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
337
521
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
338
522
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
523
|
+
if (alternativeAnswerCheck === 'true') {
|
|
524
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
525
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
526
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
527
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
528
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
529
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
530
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
531
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
532
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
533
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
534
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
535
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
536
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
537
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
538
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
539
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
540
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
541
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
542
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
543
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
544
|
+
}
|
|
339
545
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
340
546
|
/* 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 bars, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
341
547
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -373,6 +579,28 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
|
|
|
373
579
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
|
|
374
580
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
375
581
|
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
582
|
+
if (alternativeAnswerCheck === 'true') {
|
|
583
|
+
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 15 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
584
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
585
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
586
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
587
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
|
|
588
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
589
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
590
|
+
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
591
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
592
|
+
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
593
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
594
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
595
|
+
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 12 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
596
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
597
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
598
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
599
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
600
|
+
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
601
|
+
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
602
|
+
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
603
|
+
}
|
|
376
604
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
377
605
|
/* 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')
|
|
378
606
|
chartsLinePage.steps.checkAnswer();
|