itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.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 { chartsBarPage } 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 - Bar: Partial equal weights scoring with alternative answer - When Correct answer points are equal to alternative Answer points', () => {
|
|
7
6
|
before(() => {
|
|
@@ -50,30 +49,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
50
49
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
51
50
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
52
51
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
53
|
-
if (alternativeAnswerCheck === 'true') {
|
|
54
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
55
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
56
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
57
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
58
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
59
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
60
|
-
], 1);
|
|
61
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
62
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
63
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
64
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
65
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
66
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
67
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
68
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
69
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
70
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
71
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
72
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
73
|
-
], 2);
|
|
74
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
75
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
76
|
-
}
|
|
77
52
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
78
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 bars and correct icons should be displayed on the bar which is correct by default')
|
|
79
54
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -104,30 +79,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
104
79
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
105
80
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
106
81
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
107
|
-
if (alternativeAnswerCheck === 'true') {
|
|
108
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
109
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
110
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
111
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
112
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
113
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
114
|
-
], 1);
|
|
115
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
116
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
117
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
118
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
119
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
120
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
121
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
122
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
123
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
124
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
125
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
126
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
127
|
-
], 2);
|
|
128
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
129
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
130
|
-
}
|
|
131
82
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
132
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 bars')
|
|
133
84
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -153,9 +104,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
153
104
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
154
105
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
155
106
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
156
|
-
if (alternativeAnswerCheck === 'true') {
|
|
157
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
158
|
-
}
|
|
159
107
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
160
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')
|
|
161
109
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -182,9 +130,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
182
130
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
183
131
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
184
132
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
185
|
-
if (alternativeAnswerCheck === 'true') {
|
|
186
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
187
|
-
}
|
|
188
133
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
189
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')
|
|
190
135
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -215,30 +160,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
215
160
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
216
161
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
217
162
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
218
|
-
if (alternativeAnswerCheck === 'true') {
|
|
219
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
220
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
221
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
222
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
223
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
224
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
225
|
-
], 1);
|
|
226
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
227
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
228
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
229
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
230
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
231
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
232
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
233
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
234
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
235
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
236
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
237
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
238
|
-
], 2);
|
|
239
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
240
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
241
|
-
}
|
|
242
163
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
243
164
|
/* 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')
|
|
244
165
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -268,30 +189,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
268
189
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
269
190
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
270
191
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
271
|
-
if (alternativeAnswerCheck === 'true') {
|
|
272
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
273
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
274
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
275
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
276
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
277
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
278
|
-
], 1);
|
|
279
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
280
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
281
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
282
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
283
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
284
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
285
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
286
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
287
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
288
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
289
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
290
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
291
|
-
], 2);
|
|
292
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
293
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
294
|
-
}
|
|
295
192
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
296
193
|
/* 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')
|
|
297
194
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -349,30 +246,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
349
246
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
350
247
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
351
248
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
352
|
-
if (alternativeAnswerCheck === 'true') {
|
|
353
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
354
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
355
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
356
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
357
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
358
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
359
|
-
], 1);
|
|
360
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
361
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
362
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
363
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
364
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
365
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
366
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
367
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
368
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
369
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
370
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
371
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
372
|
-
], 2);
|
|
373
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
374
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
375
|
-
}
|
|
376
249
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
377
250
|
/* 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')
|
|
378
251
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -403,30 +276,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
403
276
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
404
277
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
405
278
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
406
|
-
if (alternativeAnswerCheck === 'true') {
|
|
407
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
408
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
409
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
410
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
411
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
412
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
413
|
-
], 1);
|
|
414
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
415
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
416
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
417
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
418
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
419
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
420
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
421
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
422
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
423
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
424
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
425
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
426
|
-
], 2);
|
|
427
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
428
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
429
|
-
}
|
|
430
279
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
431
280
|
/* 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')
|
|
432
281
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -458,30 +307,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
458
307
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
459
308
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
460
309
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
461
|
-
if (alternativeAnswerCheck === 'true') {
|
|
462
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
463
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
464
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
465
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
466
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
467
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
468
|
-
], 1);
|
|
469
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
470
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
471
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
472
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
473
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
474
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
475
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 4 pts)');
|
|
476
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
477
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
478
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
479
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
480
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
481
|
-
], 2);
|
|
482
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
483
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
484
|
-
}
|
|
485
310
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
486
311
|
/* 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')
|
|
487
312
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { chartsBarPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
3
|
|
|
5
4
|
describe('Create item page - Charts - Bar: Partial equal weights scoring with alternative answer - When Correct answer points are more than alternative Answer points', () => {
|
|
6
5
|
before(() => {
|
|
@@ -49,30 +48,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
49
48
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
50
49
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
51
50
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
52
|
-
if (alternativeAnswerCheck === 'true') {
|
|
53
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
76
51
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
77
52
|
/* 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')
|
|
78
53
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -103,30 +78,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
103
78
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
104
79
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
105
80
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
106
|
-
if (alternativeAnswerCheck === 'true') {
|
|
107
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
130
81
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
131
82
|
/* 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')
|
|
132
83
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -152,9 +103,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
152
103
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
153
104
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
154
105
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
155
|
-
if (alternativeAnswerCheck === 'true') {
|
|
156
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
157
|
-
}
|
|
158
106
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
159
107
|
/* 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')
|
|
160
108
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -181,9 +129,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
181
129
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
182
130
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
183
131
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
184
|
-
if (alternativeAnswerCheck === 'true') {
|
|
185
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
186
|
-
}
|
|
187
132
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
188
133
|
/* 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')
|
|
189
134
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -213,30 +158,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
213
158
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
214
159
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
215
160
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
216
|
-
if (alternativeAnswerCheck === 'true') {
|
|
217
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
240
161
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
241
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')
|
|
242
163
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -266,30 +187,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
266
187
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
267
188
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
268
189
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
269
|
-
if (alternativeAnswerCheck === 'true') {
|
|
270
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
293
190
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
294
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 bars correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
295
192
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -319,30 +216,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
319
216
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
320
217
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
321
218
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
322
|
-
if (alternativeAnswerCheck === 'true') {
|
|
323
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
346
219
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
347
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')
|
|
348
221
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -371,30 +244,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
371
244
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
372
245
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
373
246
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
374
|
-
if (alternativeAnswerCheck === 'true') {
|
|
375
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 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 - 2 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
|
-
}
|
|
398
247
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
399
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')
|
|
400
249
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -425,30 +274,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
425
274
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
426
275
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
427
276
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
428
|
-
if (alternativeAnswerCheck === 'true') {
|
|
429
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
430
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
431
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
432
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
433
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
434
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
435
|
-
], 1);
|
|
436
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
437
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
438
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
439
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
440
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
441
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
442
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
443
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
444
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
445
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
446
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
447
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
448
|
-
], 2);
|
|
449
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
450
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
451
|
-
}
|
|
452
277
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
453
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')
|
|
454
279
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -480,30 +305,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
480
305
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
481
306
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
482
307
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
483
|
-
if (alternativeAnswerCheck === 'true') {
|
|
484
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 4 pts)');
|
|
485
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
486
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
487
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
488
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
489
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
490
|
-
], 1);
|
|
491
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
492
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
493
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
494
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
495
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
496
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
497
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
498
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
499
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
500
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
501
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
502
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
503
|
-
], 2);
|
|
504
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
505
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
506
|
-
}
|
|
507
308
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
508
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 bars, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
|
509
310
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -541,30 +342,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
541
342
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
542
343
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
543
344
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
544
|
-
if (alternativeAnswerCheck === 'true') {
|
|
545
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 10 pts)');
|
|
546
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
547
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
548
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
549
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
550
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
551
|
-
], 1);
|
|
552
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
553
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
554
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
555
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
556
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
557
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
558
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
559
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
560
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
561
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
562
|
-
{ barIndex: 3, barValue: 8, range: 10 },
|
|
563
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
564
|
-
], 2);
|
|
565
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
566
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
567
|
-
}
|
|
568
345
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
569
346
|
/* 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')
|
|
570
347
|
chartsBarPage.steps.checkAnswer();
|