itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.0 → 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +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/allOrNothingAlternatePointsGreaterThanCorrectPoints.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { chartsLinePage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
|
-
|
|
6
4
|
describe('Create item page - Charts - Line: All or nothing scoring with alternative answer - When Alternate answer points are more than correct answer points', () => {
|
|
7
5
|
before(() => {
|
|
8
6
|
cy.loginAs('admin');
|
|
@@ -49,27 +47,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
49
47
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
50
48
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
51
49
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
52
|
-
if (alternativeAnswerCheck === 'true') {
|
|
53
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
54
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
55
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
56
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
57
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
58
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
59
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
60
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
61
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
62
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
63
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
64
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
65
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
66
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
67
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
68
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
69
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
70
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
71
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
72
|
-
}
|
|
73
50
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
74
51
|
/*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')
|
|
75
52
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -100,27 +77,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
100
77
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
101
78
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
102
79
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
103
|
-
if (alternativeAnswerCheck === 'true') {
|
|
104
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
105
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
106
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
107
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
108
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
109
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
110
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
111
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
112
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
113
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
114
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
115
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
116
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
117
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
118
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
119
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
120
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
121
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
122
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
123
|
-
}
|
|
124
80
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
125
81
|
/*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')
|
|
126
82
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -146,9 +102,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
146
102
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
147
103
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
148
104
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
149
|
-
if (alternativeAnswerCheck === 'true') {
|
|
150
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
151
|
-
}
|
|
152
105
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
153
106
|
/*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')
|
|
154
107
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -175,9 +128,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
175
128
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
176
129
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
177
130
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
178
|
-
if (alternativeAnswerCheck === 'true') {
|
|
179
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
180
|
-
}
|
|
181
131
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
182
132
|
/*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')
|
|
183
133
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -206,7 +156,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
206
156
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
207
157
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
208
158
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
209
|
-
|
|
210
159
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
211
160
|
/*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')
|
|
212
161
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -236,27 +185,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
236
185
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
237
186
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
238
187
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
239
|
-
if (alternativeAnswerCheck === 'true') {
|
|
240
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
241
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
242
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
243
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
244
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
245
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
246
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
247
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
248
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
249
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
250
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
251
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
252
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
253
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
254
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
255
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
256
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
257
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
258
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
259
|
-
}
|
|
260
188
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
261
189
|
/*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')
|
|
262
190
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -288,27 +216,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
288
216
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
289
217
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
290
218
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
291
|
-
if (alternativeAnswerCheck === 'true') {
|
|
292
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
293
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
294
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
295
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
296
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
297
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
298
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
299
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
300
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
301
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
302
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
303
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
304
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
305
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
306
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
307
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
308
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
309
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
310
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
311
|
-
}
|
|
312
219
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
313
220
|
/*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')
|
|
314
221
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -338,27 +245,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
338
245
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
339
246
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
340
247
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
341
|
-
if (alternativeAnswerCheck === 'true') {
|
|
342
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
343
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
344
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
345
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
346
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
347
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
348
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
349
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
350
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
351
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
352
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
353
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
354
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
355
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
356
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
357
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
358
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
359
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
360
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
361
|
-
}
|
|
362
248
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
363
249
|
/*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 alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
364
250
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -387,27 +273,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
387
273
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
388
274
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
389
275
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
390
|
-
if (alternativeAnswerCheck === 'true') {
|
|
391
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
392
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
393
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
394
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
395
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
396
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
397
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
398
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
399
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
400
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
401
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
402
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
403
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
404
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
405
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
406
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
407
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
408
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
409
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
410
|
-
}
|
|
411
276
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
412
277
|
/*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')
|
|
413
278
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -438,27 +303,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
438
303
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
439
304
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
440
305
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
441
|
-
if (alternativeAnswerCheck === 'true') {
|
|
442
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
443
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
444
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
445
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
446
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
447
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
448
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
449
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
450
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
451
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
452
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
453
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
454
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
455
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
456
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
457
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
458
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
459
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
460
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
461
|
-
}
|
|
462
306
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
463
307
|
/*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')
|
|
464
308
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -490,27 +334,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
490
334
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
491
335
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
492
336
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
493
|
-
if (alternativeAnswerCheck === 'true') {
|
|
494
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
495
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
496
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
497
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
498
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
499
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
500
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
501
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
502
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
503
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
504
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
505
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
506
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
507
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
508
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
509
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
510
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
511
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
512
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
513
|
-
}
|
|
514
337
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
515
338
|
/*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')
|
|
516
339
|
chartsLinePage.steps.checkAnswer();
|
package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { chartsLinePage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
|
-
|
|
6
4
|
describe('Create item page - Charts - Line: All or nothing scoring with alternative answer - When Correct answer points are equal to alternative Answer points', () => {
|
|
7
5
|
before(() => {
|
|
8
6
|
cy.loginAs('admin');
|
|
@@ -49,28 +47,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
49
47
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
50
48
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
51
49
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
52
|
-
if (alternativeAnswerCheck === 'true') {
|
|
53
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
54
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
55
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
56
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
57
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
58
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
59
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
60
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
61
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
62
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
63
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
64
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
65
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
66
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
67
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
68
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
69
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
70
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
71
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
72
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
73
|
-
}
|
|
74
50
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
75
51
|
/*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
52
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -101,28 +77,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
101
77
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
102
78
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
103
79
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
104
|
-
if (alternativeAnswerCheck === 'true') {
|
|
105
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
106
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
107
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
108
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
109
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
110
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
111
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
112
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
113
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
114
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
115
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
116
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
117
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
118
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
119
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
120
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
121
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
122
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
123
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
124
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
125
|
-
}
|
|
126
80
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
127
81
|
/*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')
|
|
128
82
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -148,9 +102,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
148
102
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
149
103
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
150
104
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
151
|
-
if (alternativeAnswerCheck === 'true') {
|
|
152
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
153
|
-
}
|
|
154
105
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
155
106
|
/*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')
|
|
156
107
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -177,9 +128,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
177
128
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
178
129
|
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
179
130
|
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
|
180
|
-
if (alternativeAnswerCheck === 'true') {
|
|
181
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
182
|
-
}
|
|
183
131
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
184
132
|
/*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')
|
|
185
133
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -208,28 +156,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
208
156
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
209
157
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
210
158
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
211
|
-
if (alternativeAnswerCheck === 'true') {
|
|
212
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
213
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
214
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
215
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
216
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
217
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
218
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
219
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
220
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
221
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
222
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
223
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
224
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
225
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
226
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
227
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
228
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
229
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
230
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
231
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
232
|
-
}
|
|
233
159
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
234
160
|
/*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')
|
|
235
161
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -259,28 +185,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
259
185
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
260
186
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
261
187
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
262
|
-
if (alternativeAnswerCheck === 'true') {
|
|
263
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
264
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
265
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
266
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
267
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
268
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
269
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
270
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
271
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
272
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
273
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
274
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
275
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
276
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
277
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
278
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
279
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
280
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
281
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
282
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
283
|
-
}
|
|
284
188
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
285
189
|
/*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')
|
|
286
190
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -311,28 +215,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
311
215
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
312
216
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
313
217
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
314
|
-
if (alternativeAnswerCheck === 'true') {
|
|
315
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
316
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
317
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
318
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
319
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
320
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
321
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
322
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
323
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
324
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
325
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
326
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
327
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
328
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
329
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
330
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
331
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
332
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
333
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
334
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
335
|
-
}
|
|
336
218
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
337
219
|
/*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')
|
|
338
220
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -362,28 +244,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
362
244
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
363
245
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
364
246
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
365
|
-
if (alternativeAnswerCheck === 'true') {
|
|
366
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
367
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
368
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
369
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
370
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
371
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
372
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
373
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
374
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
375
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
376
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
377
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
378
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
379
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
380
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
381
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
382
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
383
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
384
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
385
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
386
|
-
}
|
|
387
247
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
388
248
|
/*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')
|
|
389
249
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -412,28 +272,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
412
272
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
413
273
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
414
274
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
415
|
-
if (alternativeAnswerCheck === 'true') {
|
|
416
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
417
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
418
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
419
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
420
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
421
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
422
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
423
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
424
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
425
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
426
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
427
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
428
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
429
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
430
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
431
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
432
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
433
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
434
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
435
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
436
|
-
}
|
|
437
275
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
438
276
|
/*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')
|
|
439
277
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -464,28 +302,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
464
302
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
465
303
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
466
304
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
467
|
-
if (alternativeAnswerCheck === 'true') {
|
|
468
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
469
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
470
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
471
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
472
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
473
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
474
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
475
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
476
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
477
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
478
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
479
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
480
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
481
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
482
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
483
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
484
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
485
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
486
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
487
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
488
|
-
}
|
|
489
305
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
490
306
|
/*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')
|
|
491
307
|
chartsLinePage.steps.checkAnswer();
|
|
@@ -517,28 +333,6 @@ describe('Create item page - Charts - Line: All or nothing scoring with alternat
|
|
|
517
333
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
518
334
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
519
335
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
520
|
-
if (alternativeAnswerCheck === 'true') {
|
|
521
|
-
chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
522
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
|
523
|
-
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
524
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
|
525
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
526
|
-
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
|
527
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
528
|
-
chartsLinePage.steps.disableShowAlternativeAnswersToggle();
|
|
529
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
530
|
-
chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
531
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
532
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
533
|
-
chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
534
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
|
535
|
-
chartsLinePage.steps.verifyLockedPointInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
|
536
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 0, range: 10 });
|
|
537
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
|
538
|
-
chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
|
539
|
-
chartsLinePage.steps.clickShowAlternativeAnswersToggle();
|
|
540
|
-
chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
541
|
-
}
|
|
542
336
|
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
543
337
|
/*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')
|
|
544
338
|
chartsLinePage.steps.checkAnswer();
|