itemengine-cypress-automation 1.0.576-IEI-7079-794342b.0 → 1.0.576
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -248
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -247
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -175
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -191
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -184
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -177
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -228
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -183
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -184
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +13 -0
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +117 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +101 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +12 -2
- package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +38 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +41 -23
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +78 -3
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +10 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -167
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +15 -178
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +13 -165
- package/cypress/pages/chartsBarPage.js +1 -44
- package/cypress/pages/chartsDotPlotPage.js +1 -99
- package/cypress/pages/chartsLinePage.js +1 -48
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +20 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +29 -1
- package/cypress/pages/essayResponsePage.js +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
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 correct answer points are equal to alternative 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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
54
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
55
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
56
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
57
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
58
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
59
|
-
], 1);
|
|
60
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
61
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
62
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
63
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
64
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
65
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
66
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
67
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
68
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
69
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
70
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
71
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
72
|
-
], 2);
|
|
73
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
74
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
75
|
-
}
|
|
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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
108
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
109
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
110
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
111
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
112
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
113
|
-
], 1);
|
|
114
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
115
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
116
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
117
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
118
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
119
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
120
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
121
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
122
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
123
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
124
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
125
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
126
|
-
], 2);
|
|
127
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
128
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
129
|
-
}
|
|
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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
218
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
219
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
220
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
221
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
222
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
223
|
-
], 1);
|
|
224
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
225
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
226
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
227
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
228
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
229
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
230
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
231
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
232
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
233
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
234
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
235
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
236
|
-
], 2);
|
|
237
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
238
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
239
|
-
}
|
|
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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
271
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
272
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
273
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
274
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
275
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
276
|
-
], 1);
|
|
277
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
278
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
279
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
280
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
281
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
282
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
283
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
284
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
285
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
286
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
287
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
288
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
289
|
-
], 2);
|
|
290
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
291
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
292
|
-
}
|
|
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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
324
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
325
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
326
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
327
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
328
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
329
|
-
], 1);
|
|
330
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
331
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
332
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
333
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
334
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
335
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
336
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
337
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
338
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
339
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
340
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
341
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
342
|
-
], 2);
|
|
343
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
344
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
345
|
-
}
|
|
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: 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 in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
376
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
377
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
378
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
379
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
380
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
381
|
-
], 1);
|
|
382
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
383
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
384
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
385
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
386
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
387
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
388
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
389
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
390
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
391
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
392
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
393
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
394
|
-
], 2);
|
|
395
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
396
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
397
|
-
}
|
|
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: 5, range: 10 });
|
|
425
274
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
426
275
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
427
|
-
if (alternativeAnswerCheck === 'true') {
|
|
428
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
429
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
430
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
431
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
432
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
433
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
434
|
-
], 1);
|
|
435
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
436
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
437
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
438
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
439
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
440
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
441
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
442
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
443
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
444
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
445
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
446
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
447
|
-
], 2);
|
|
448
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
449
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
450
|
-
}
|
|
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: 5, range: 10 });
|
|
480
305
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
481
306
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
482
|
-
if (alternativeAnswerCheck === 'true') {
|
|
483
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
484
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
485
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
486
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
487
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
488
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
489
|
-
], 1);
|
|
490
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
491
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
492
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
493
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
494
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
495
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
496
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
497
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
498
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
499
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
500
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
501
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
502
|
-
], 2);
|
|
503
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
504
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
505
|
-
}
|
|
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: 5, range: 10 });
|
|
535
336
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
536
337
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
537
|
-
if (alternativeAnswerCheck === 'true') {
|
|
538
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 3 pts, 4 pts)');
|
|
539
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
540
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
541
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
542
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
543
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
544
|
-
], 1);
|
|
545
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
546
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
547
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
548
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
549
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
550
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
551
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 2 pts, 6 pts, 3 pts)');
|
|
552
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
553
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
554
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
555
|
-
{ barIndex: 3, barValue: 4, range: 10 },
|
|
556
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
557
|
-
], 2);
|
|
558
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
559
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
560
|
-
}
|
|
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();
|
|
@@ -596,30 +373,6 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
|
|
|
596
373
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
|
597
374
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
|
598
375
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
599
|
-
if (alternativeAnswerCheck === 'true') {
|
|
600
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 15 pts, 1 pt, 3 pts, 4 pts, 5 pts)');
|
|
601
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
602
|
-
{ barIndex: 0, barValue: 3, range: 10 },
|
|
603
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
604
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
605
|
-
{ barIndex: 3, barValue: 4, range: 10 }
|
|
606
|
-
], 1);
|
|
607
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
608
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
609
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
610
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
611
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
612
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
613
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 18 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
|
|
614
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
615
|
-
{ barIndex: 0, barValue: 4, range: 10 },
|
|
616
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
617
|
-
{ barIndex: 3, barValue: 8, range: 10 },
|
|
618
|
-
{ barIndex: 4, barValue: 6, range: 10 }
|
|
619
|
-
], 2);
|
|
620
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
621
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
622
|
-
}
|
|
623
376
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
624
377
|
/* 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')
|
|
625
378
|
chartsBarPage.steps.checkAnswer();
|