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,5 +1,6 @@
|
|
|
1
1
|
import { chartsBarPage } from "../../../../pages/chartsBarPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
3
4
|
|
|
4
5
|
describe('Create Item page - Charts - Bar: Partial different weights scoring with alternative answer - When correct answer points are equal to alternative answer points', () => {
|
|
5
6
|
before(() => {
|
|
@@ -48,6 +49,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
48
49
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
49
50
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
50
51
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
52
|
+
if (alternativeAnswerCheck === 'true') {
|
|
53
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
54
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
55
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
56
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
57
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
58
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
59
|
+
], 1);
|
|
60
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
61
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
62
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
63
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
64
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
65
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
66
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
67
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
68
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
69
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
70
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
71
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
72
|
+
], 2);
|
|
73
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
74
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
75
|
+
}
|
|
51
76
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
52
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')
|
|
53
78
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -78,6 +103,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
78
103
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
79
104
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
80
105
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
106
|
+
if (alternativeAnswerCheck === 'true') {
|
|
107
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
108
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
109
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
110
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
111
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
112
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
113
|
+
], 1);
|
|
114
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
115
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
116
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
117
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
118
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
119
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
120
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
121
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
122
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
123
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
124
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
125
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
126
|
+
], 2);
|
|
127
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
128
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
129
|
+
}
|
|
81
130
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
82
131
|
/* 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')
|
|
83
132
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -103,6 +152,9 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
103
152
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
104
153
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
105
154
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
155
|
+
if (alternativeAnswerCheck === 'true') {
|
|
156
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
157
|
+
}
|
|
106
158
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
107
159
|
/* 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')
|
|
108
160
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -129,6 +181,9 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
129
181
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
130
182
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
131
183
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
184
|
+
if (alternativeAnswerCheck === 'true') {
|
|
185
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
186
|
+
}
|
|
132
187
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
133
188
|
/* 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')
|
|
134
189
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -158,6 +213,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
158
213
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
159
214
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
160
215
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
216
|
+
if (alternativeAnswerCheck === 'true') {
|
|
217
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
218
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
219
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
220
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
221
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
222
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
223
|
+
], 1);
|
|
224
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
225
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
226
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
227
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
228
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
229
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
230
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
231
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
232
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
233
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
234
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
235
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
236
|
+
], 2);
|
|
237
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
238
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
239
|
+
}
|
|
161
240
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
162
241
|
/* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
163
242
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -187,6 +266,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
187
266
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
188
267
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
189
268
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
269
|
+
if (alternativeAnswerCheck === 'true') {
|
|
270
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
271
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
272
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
273
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
274
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
275
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
276
|
+
], 1);
|
|
277
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
278
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
279
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
280
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
281
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
282
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
283
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
284
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
285
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
286
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
287
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
288
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
289
|
+
], 2);
|
|
290
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
291
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
292
|
+
}
|
|
190
293
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
294
|
/* 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')
|
|
192
295
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -216,6 +319,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
216
319
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
217
320
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
218
321
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
322
|
+
if (alternativeAnswerCheck === 'true') {
|
|
323
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
324
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
325
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
326
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
327
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
328
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
329
|
+
], 1);
|
|
330
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
331
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
332
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
333
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
334
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
335
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
336
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
337
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
338
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
339
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
340
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
341
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
342
|
+
], 2);
|
|
343
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
344
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
345
|
+
}
|
|
219
346
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
220
347
|
/* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
221
348
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -244,6 +371,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
244
371
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
245
372
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
246
373
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
374
|
+
if (alternativeAnswerCheck === 'true') {
|
|
375
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
376
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
377
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
378
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
379
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
380
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
381
|
+
], 1);
|
|
382
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
383
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
384
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
385
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
386
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
387
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
388
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
389
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
390
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
391
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
392
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
393
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
394
|
+
], 2);
|
|
395
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
396
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
397
|
+
}
|
|
247
398
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
248
399
|
/* cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
249
400
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -273,6 +424,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
273
424
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
274
425
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
275
426
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
427
|
+
if (alternativeAnswerCheck === 'true') {
|
|
428
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
429
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
430
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
431
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
432
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
433
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
434
|
+
], 1);
|
|
435
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
436
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
437
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
438
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
439
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
440
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
441
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
442
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
443
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
444
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
445
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
446
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
447
|
+
], 2);
|
|
448
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
449
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
450
|
+
}
|
|
276
451
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
277
452
|
/* 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')
|
|
278
453
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -304,6 +479,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
304
479
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
305
480
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
306
481
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
482
|
+
if (alternativeAnswerCheck === 'true') {
|
|
483
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
484
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
485
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
486
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
487
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
488
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
489
|
+
], 1);
|
|
490
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
491
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
492
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
493
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
494
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
495
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
496
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
497
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
498
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
499
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
500
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
501
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
502
|
+
], 2);
|
|
503
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
504
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
505
|
+
}
|
|
307
506
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
308
507
|
/* 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')
|
|
309
508
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -335,6 +534,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
335
534
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
336
535
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
337
536
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
537
|
+
if (alternativeAnswerCheck === 'true') {
|
|
538
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
539
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
540
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
541
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
542
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
543
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
544
|
+
], 1);
|
|
545
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
546
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
547
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
548
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
549
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
550
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
551
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
552
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
553
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
554
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
555
|
+
{ barIndex: 3, barValue: 4, range: 10 },
|
|
556
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
557
|
+
], 2);
|
|
558
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
559
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
560
|
+
}
|
|
338
561
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
339
562
|
/* 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')
|
|
340
563
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -373,6 +596,30 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
373
596
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
374
597
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
375
598
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
599
|
+
if (alternativeAnswerCheck === 'true') {
|
|
600
|
+
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 15 pts, 1 pt, 3 pts, 4 pts, 5 pts)');
|
|
601
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
602
|
+
{ barIndex: 0, barValue: 3, range: 10 },
|
|
603
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
604
|
+
{ barIndex: 2, barValue: 5, range: 10 },
|
|
605
|
+
{ barIndex: 3, barValue: 4, range: 10 }
|
|
606
|
+
], 1);
|
|
607
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
608
|
+
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
609
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
610
|
+
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
611
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
612
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
613
|
+
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 18 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
614
|
+
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
615
|
+
{ barIndex: 0, barValue: 4, range: 10 },
|
|
616
|
+
{ barIndex: 1, barValue: 2, range: 10 },
|
|
617
|
+
{ barIndex: 3, barValue: 8, range: 10 },
|
|
618
|
+
{ barIndex: 4, barValue: 6, range: 10 }
|
|
619
|
+
], 2);
|
|
620
|
+
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
621
|
+
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
622
|
+
}
|
|
376
623
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
377
624
|
/* 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
625
|
chartsBarPage.steps.checkAnswer();
|