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
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
|
@@ -2,7 +2,6 @@ import { chartsBarPage } from "../../../../pages";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
|
|
7
6
|
describe('Create item page - Charts - Bar: All or nothing scoring with alternative answer - When Correct answer points are more than alternative Answer points', () => {
|
|
8
7
|
before(() => {
|
|
@@ -49,28 +48,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
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('(20 points)');
|
|
54
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
55
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
56
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
57
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
58
|
-
], 1);
|
|
59
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
60
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
61
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
62
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
63
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
64
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
65
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
66
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
67
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
68
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
69
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
70
|
-
], 2);
|
|
71
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
72
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
73
|
-
}
|
|
74
51
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
75
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')
|
|
76
53
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -117,28 +94,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
117
94
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
118
95
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
119
96
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
120
|
-
if (alternativeAnswerCheck === 'true') {
|
|
121
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
122
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
123
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
124
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
125
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
126
|
-
], 1);
|
|
127
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
128
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
129
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
130
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
131
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
132
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
133
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
134
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
135
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
136
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
137
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
138
|
-
], 2);
|
|
139
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
140
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
141
|
-
}
|
|
142
97
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
143
98
|
/*cy.log('When the user selects check answer after incorrectly attempting the question, then \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars')
|
|
144
99
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -186,9 +141,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
186
141
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
187
142
|
chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
188
143
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
189
|
-
if (alternativeAnswerCheck === 'true') {
|
|
190
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
191
|
-
}
|
|
192
144
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
193
145
|
/*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\' should be displayed and correct answer section should not be displayed')
|
|
194
146
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -241,9 +193,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
241
193
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
242
194
|
chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
243
195
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
244
|
-
if (alternativeAnswerCheck === 'true') {
|
|
245
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
246
|
-
}
|
|
247
196
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
248
197
|
/*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\' should be displayed and correct answer section should not be displayed')
|
|
249
198
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -272,28 +221,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
272
221
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
273
222
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
274
223
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
275
|
-
if (alternativeAnswerCheck === 'true') {
|
|
276
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
277
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
278
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
279
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
280
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
281
|
-
], 1);
|
|
282
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
283
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
284
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
285
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
286
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
287
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
288
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
289
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
290
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
291
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
292
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
293
|
-
], 2);
|
|
294
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
295
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
296
|
-
}
|
|
297
224
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
298
225
|
/*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
299
226
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -324,28 +251,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
324
251
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
325
252
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
326
253
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
327
|
-
if (alternativeAnswerCheck === 'true') {
|
|
328
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
329
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
330
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
331
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
332
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
333
|
-
], 1);
|
|
334
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
335
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
336
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
337
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
338
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
339
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
340
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
341
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
342
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
343
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
344
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
345
|
-
], 2);
|
|
346
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
347
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
348
|
-
}
|
|
349
254
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
350
255
|
/*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 a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
351
256
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -376,28 +281,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
376
281
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
377
282
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
378
283
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
379
|
-
if (alternativeAnswerCheck === 'true') {
|
|
380
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
381
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
382
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
383
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
384
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
385
|
-
], 1);
|
|
386
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
387
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
388
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
389
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
390
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
391
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
392
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
393
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
394
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
395
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
396
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
397
|
-
], 2);
|
|
398
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
399
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
400
|
-
}
|
|
401
284
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
402
285
|
/*cy.log('When the user attempts the question with all answers from the correct accordion except one 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 incorrect\' and correct answer section should not be displayed')
|
|
403
286
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -427,28 +310,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
427
310
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
428
311
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
429
312
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
430
|
-
if (alternativeAnswerCheck === 'true') {
|
|
431
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
432
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
433
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
434
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
435
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
436
|
-
], 1);
|
|
437
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
438
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
439
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
440
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
441
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
442
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
443
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
444
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
445
|
-
{ barIndex: 0, barValue: 4, 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
313
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
453
314
|
/*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
454
315
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -477,28 +338,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
477
338
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
478
339
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
479
340
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
480
|
-
if (alternativeAnswerCheck === 'true') {
|
|
481
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
482
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
483
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
484
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
485
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
486
|
-
], 1);
|
|
487
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
488
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
489
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
490
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
491
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
492
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
493
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
494
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
495
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
496
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
497
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
498
|
-
], 2);
|
|
499
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
500
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
501
|
-
}
|
|
502
341
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
503
342
|
/*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
504
343
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -529,28 +368,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
529
368
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
530
369
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
531
370
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
532
|
-
if (alternativeAnswerCheck === 'true') {
|
|
533
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
534
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
535
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
536
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
537
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
538
|
-
], 1);
|
|
539
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
540
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
541
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
542
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
543
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
544
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
545
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
546
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
547
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
548
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
549
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
550
|
-
], 2);
|
|
551
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
552
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
553
|
-
}
|
|
554
371
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
555
372
|
/*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 a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
556
373
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -582,28 +399,6 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
|
582
399
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
583
400
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
584
401
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
585
|
-
if (alternativeAnswerCheck === 'true') {
|
|
586
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
587
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
588
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
589
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
590
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
591
|
-
], 1);
|
|
592
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
593
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
594
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
595
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
596
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
597
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
598
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
599
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
600
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
601
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
602
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
603
|
-
], 2);
|
|
604
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
605
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
606
|
-
}
|
|
607
402
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
608
403
|
/*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 a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
609
404
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { chartsBarPage } from "../../../../pages";
|
|
1
|
+
import { chartsBarPage } from "../../../../pages/chartsBarPage";
|
|
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 different weights scoring with alternative answer - When alternate answer points are more than correct answer points', () => {
|
|
6
5
|
before(() => {
|
|
@@ -49,30 +48,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
49
48
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
50
49
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
51
50
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
52
|
-
if (alternativeAnswerCheck === 'true') {
|
|
53
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
54
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
55
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
56
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
57
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
58
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
67
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
68
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
69
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
70
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
71
|
-
{ barIndex: 3, barValue: 4, 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 different weights scoring wit
|
|
|
103
78
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
104
79
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
105
80
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
106
|
-
if (alternativeAnswerCheck === 'true') {
|
|
107
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
108
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
109
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
110
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
111
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
112
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
121
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
122
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
123
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
124
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
125
|
-
{ barIndex: 3, barValue: 4, 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 different weights scoring wit
|
|
|
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
160
108
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -181,9 +129,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
189
134
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -213,30 +158,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
213
158
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
214
159
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
215
160
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
216
|
-
if (alternativeAnswerCheck === 'true') {
|
|
217
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
218
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
219
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
220
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
221
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
222
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
231
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
232
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
233
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
234
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
235
|
-
{ barIndex: 3, barValue: 4, 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 different weights scoring wit
|
|
|
266
187
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
267
188
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
268
189
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
269
|
-
if (alternativeAnswerCheck === 'true') {
|
|
270
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
271
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
272
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
273
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
274
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
275
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
284
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
285
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
286
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
287
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
288
|
-
{ barIndex: 3, barValue: 4, 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 different weights scoring wit
|
|
|
319
216
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
320
217
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
321
218
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
322
|
-
if (alternativeAnswerCheck === 'true') {
|
|
323
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
324
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
325
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
326
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
327
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
328
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
337
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
338
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
339
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
340
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
341
|
-
{ barIndex: 3, barValue: 4, 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 different weights scoring wit
|
|
|
371
244
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
372
245
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
373
246
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
374
|
-
if (alternativeAnswerCheck === 'true') {
|
|
375
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
376
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
377
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
378
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
379
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
380
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
389
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
390
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
391
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
392
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
393
|
-
{ barIndex: 3, barValue: 4, 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();
|
|
@@ -424,30 +273,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
424
273
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
425
274
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
426
275
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
427
|
-
if (alternativeAnswerCheck === 'true') {
|
|
428
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
429
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
430
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
431
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
432
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
433
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
442
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
443
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
444
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
445
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
446
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
447
|
-
], 2);
|
|
448
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
449
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
450
|
-
}
|
|
451
276
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
452
277
|
/* 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')
|
|
453
278
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -479,30 +304,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
479
304
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
480
305
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
481
306
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
482
|
-
if (alternativeAnswerCheck === 'true') {
|
|
483
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
484
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
485
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
486
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
487
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
488
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
497
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
498
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
499
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
500
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
501
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
502
|
-
], 2);
|
|
503
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
504
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
505
|
-
}
|
|
506
307
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
507
308
|
/* 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')
|
|
508
309
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -534,30 +335,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
534
335
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
|
535
336
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
536
337
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
537
|
-
if (alternativeAnswerCheck === 'true') {
|
|
538
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
|
|
539
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
540
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
541
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
542
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
543
|
-
{ barIndex: 4, barValue: 6, 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 - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
|
|
552
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
553
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
554
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
555
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
556
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
557
|
-
], 2);
|
|
558
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
559
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
560
|
-
}
|
|
561
338
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
562
339
|
/* 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')
|
|
563
340
|
chartsBarPage.steps.checkAnswer();
|
|
@@ -595,30 +372,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
595
372
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 8, range: 10 });
|
|
596
373
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
|
597
374
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
598
|
-
if (alternativeAnswerCheck === 'true') {
|
|
599
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 15 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
600
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
601
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
602
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
603
|
-
{ barIndex: 3, barValue: 8, range: 10 },
|
|
604
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
605
|
-
], 1);
|
|
606
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
607
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
608
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
609
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
610
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
611
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
612
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 12 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
613
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
614
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
615
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
616
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
617
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
618
|
-
], 2);
|
|
619
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
620
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
621
|
-
}
|
|
622
375
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
623
376
|
/* 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')
|
|
624
377
|
chartsBarPage.steps.checkAnswer();
|