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/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
|
@@ -2,7 +2,6 @@ import { chartsLinePage } 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 - Point: All or nothing scoring with alternative answer - When Correct answer points are more than alternative Answer points', () => {
|
|
8
7
|
before(() => {
|
|
@@ -50,28 +49,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
50
49
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
51
50
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
52
51
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
53
|
-
if (alternativeAnswerCheck === 'true') {
|
|
54
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
55
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
56
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
57
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
58
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
59
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
60
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
61
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
62
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
63
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
64
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
65
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
66
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
67
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
68
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
69
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
70
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
71
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
72
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
73
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
74
|
-
}
|
|
75
52
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
76
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')
|
|
77
54
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -118,28 +95,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
118
95
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
119
96
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
120
97
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
121
|
-
if (alternativeAnswerCheck === 'true') {
|
|
122
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
123
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
124
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
125
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
126
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
127
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
128
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
129
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
130
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
131
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
132
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
133
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
134
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
135
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
136
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
137
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
138
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
139
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
140
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
141
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
142
|
-
}
|
|
143
98
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
144
99
|
/*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')
|
|
145
100
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -187,9 +142,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
187
142
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
188
143
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
189
144
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
190
|
-
if (alternativeAnswerCheck === 'true') {
|
|
191
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
192
|
-
}
|
|
193
145
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
194
146
|
/*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')
|
|
195
147
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -242,9 +194,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
242
194
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
243
195
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
244
196
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
245
|
-
if (alternativeAnswerCheck === 'true') {
|
|
246
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
247
|
-
}
|
|
248
197
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
198
|
/*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')
|
|
250
199
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -273,28 +222,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
273
222
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
274
223
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
275
224
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
276
|
-
if (alternativeAnswerCheck === 'true') {
|
|
277
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
278
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
279
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
280
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
281
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
282
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
283
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
284
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
285
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
286
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
287
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
288
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
289
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
290
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
291
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
292
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
293
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
294
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
295
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
296
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
297
|
-
}
|
|
298
225
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
299
226
|
/*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')
|
|
300
227
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -325,28 +252,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
325
252
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
326
253
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
327
254
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
328
|
-
if (alternativeAnswerCheck === 'true') {
|
|
329
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
330
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
331
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
332
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
333
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
334
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
335
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
336
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
337
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
338
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
339
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
340
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
341
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
342
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
343
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
344
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
345
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
346
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
347
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
348
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
349
|
-
}
|
|
350
255
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
351
256
|
/*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')
|
|
352
257
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -377,28 +282,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
377
282
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
378
283
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
379
284
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
380
|
-
if (alternativeAnswerCheck === 'true') {
|
|
381
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
382
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
383
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
384
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
385
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
386
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
387
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
388
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
389
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
390
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
391
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
392
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
393
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
394
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
395
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
396
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
397
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
398
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
399
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
400
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
401
|
-
}
|
|
402
285
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
403
286
|
/*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')
|
|
404
287
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -428,28 +311,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
428
311
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
429
312
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
430
313
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
431
|
-
if (alternativeAnswerCheck === 'true') {
|
|
432
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
433
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
434
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
435
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
436
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
437
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
438
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
439
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
440
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
441
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
442
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
443
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
444
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
445
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
446
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
447
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
448
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
449
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
450
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
451
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
452
|
-
}
|
|
453
314
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
454
315
|
/*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')
|
|
455
316
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -478,28 +339,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
478
339
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
479
340
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
480
341
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
481
|
-
if (alternativeAnswerCheck === 'true') {
|
|
482
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
483
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
484
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
485
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
486
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
487
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
488
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
489
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
490
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
491
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
492
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
493
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
494
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
495
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
496
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
497
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
498
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
499
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
500
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
501
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
502
|
-
}
|
|
503
342
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
504
343
|
/*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')
|
|
505
344
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -530,28 +369,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
530
369
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
531
370
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
532
371
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
533
|
-
if (alternativeAnswerCheck === 'true') {
|
|
534
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
535
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
536
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
537
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
538
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
539
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
540
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
541
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
542
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
543
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
544
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
545
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
546
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
547
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
548
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
549
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
550
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
551
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
552
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
553
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
554
|
-
}
|
|
555
372
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
556
373
|
/*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')
|
|
557
374
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -583,28 +400,6 @@ describe('Create item page - Charts - Point: All or nothing scoring with alterna
|
|
|
583
400
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
584
401
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
585
402
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
586
|
-
if (alternativeAnswerCheck === 'true') {
|
|
587
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
588
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
589
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
590
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
591
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
592
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
593
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
594
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
595
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
596
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
597
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
598
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
599
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
600
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
601
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
602
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
603
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
604
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
605
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
606
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
607
|
-
}
|
|
608
403
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
609
404
|
/*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')
|
|
610
405
|
chartsLinePage.steps.checkAnswer();
|