itemengine-cypress-automation 1.0.583-IEI-7048-71a8251.0 → 1.0.583
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/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +123 -8
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +123 -8
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +131 -14
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +138 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +138 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +153 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +138 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +108 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +138 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +272 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +109 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +109 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +109 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +7 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +139 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +124 -9
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +139 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +124 -9
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +109 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +124 -9
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +243 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -77
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -78
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -78
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +9 -104
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -95
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -95
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -84
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -73
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -84
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +2 -187
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -79
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -79
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -79
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +0 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -91
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -79
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -91
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +5 -209
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +1 -195
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -85
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -82
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -85
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +6 -109
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -91
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +0 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -79
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -91
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +3 -203
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +1 -9
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -102
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -102
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -107
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +2 -36
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -5
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +0 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +1 -10
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -128
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -115
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -128
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +1 -9
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -115
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -102
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -115
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -226
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +1 -9
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -102
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -102
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -102
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +5 -32
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +0 -3
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +1 -10
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -128
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +2 -115
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +2 -128
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +1 -9
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -115
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -102
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -115
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -216
- package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +1 -18
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +25 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +38 -0
- package/cypress/pages/listOrderingPage.js +1 -60
- package/cypress/pages/matchingPage.js +1 -23
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
|
|
7
6
|
describe('Create Item page - List ordering: Partial different weights scoring with alternative answer - When alternative answer points are equal to correct answer points', () => {
|
|
8
7
|
before(() => {
|
|
@@ -36,17 +35,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
36
35
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
37
36
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
38
37
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
39
|
-
if (alternativeAnswerCheck === 'true') {
|
|
40
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
41
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
42
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
43
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
44
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
45
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
46
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
47
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
48
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
49
|
-
}
|
|
50
38
|
listOrderingPage.steps.verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSection();
|
|
51
39
|
});
|
|
52
40
|
|
|
@@ -61,9 +49,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
61
49
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
62
50
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
63
51
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
64
|
-
if (alternativeAnswerCheck === 'true') {
|
|
65
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
66
|
-
}
|
|
67
52
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
68
53
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
69
54
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -86,9 +71,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
86
71
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
87
72
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
73
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
89
|
-
if (alternativeAnswerCheck === 'true') {
|
|
90
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
91
|
-
}
|
|
92
74
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
93
75
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
94
76
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -111,17 +93,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
111
93
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
112
94
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
113
95
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
114
|
-
if (alternativeAnswerCheck === 'true') {
|
|
115
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
116
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
117
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
118
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
119
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
120
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
121
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
122
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
123
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
124
|
-
}
|
|
125
96
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
97
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
127
98
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -144,17 +115,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
144
115
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
145
116
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
146
117
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
147
|
-
if (alternativeAnswerCheck === 'true') {
|
|
148
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
149
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
150
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
151
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
152
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
153
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
154
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
155
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
156
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
157
|
-
}
|
|
158
118
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
159
119
|
/*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, correct/incorrect status message and correct answer section should not be displayed')
|
|
160
120
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -178,17 +138,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
178
138
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
179
139
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
180
140
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
181
|
-
if (alternativeAnswerCheck === 'true') {
|
|
182
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
183
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
184
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
185
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
186
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
187
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
188
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
189
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
190
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
191
|
-
}
|
|
192
141
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
193
142
|
/*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 incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
194
143
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -211,17 +160,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
211
160
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
212
161
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
213
162
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
214
|
-
if (alternativeAnswerCheck === 'true') {
|
|
215
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
216
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
217
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
218
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
219
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
220
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
221
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
222
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
223
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
224
|
-
}
|
|
225
163
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
226
164
|
/*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 incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
227
165
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -244,17 +182,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
244
182
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
245
183
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
246
184
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
247
|
-
if (alternativeAnswerCheck === 'true') {
|
|
248
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
249
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
250
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
251
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
252
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
253
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
254
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
255
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
256
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
257
|
-
}
|
|
258
185
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
259
186
|
/*cy.log('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then on selecting the \'Check answer\' button the correct icon should be displayed beside the common option and incorrect should be displayed beside the incorrect responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
260
187
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -277,17 +204,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
277
204
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
278
205
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
279
206
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
280
|
-
if (alternativeAnswerCheck === 'true') {
|
|
281
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
282
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
283
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
284
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
285
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
286
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
287
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
288
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 9 pts, 6 pts)', 1);
|
|
289
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
290
|
-
}
|
|
291
207
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
292
208
|
/*cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then incorrect icons should be displayed beside all the options, correct/incorrect status message and correct answer section should not be displayed')
|
|
293
209
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -324,17 +240,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
324
240
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
|
325
241
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['2', '3', '4', '1', '5']);
|
|
326
242
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
327
|
-
if (alternativeAnswerCheck === 'true') {
|
|
328
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 24.5 pts, 1.5 pts, 4.5 pts, 1.5 pts, 3.5 pts)', 0);
|
|
329
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
330
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
331
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
332
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
333
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
334
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
335
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 22.5 pts, 6.5 pts, 1.5 pts, 1.5 pts, 3.5 pts)', 1);
|
|
336
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['1', '2', '3', '5', '4']);
|
|
337
|
-
}
|
|
338
243
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
339
244
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
|
340
245
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -2,7 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
|
|
7
6
|
describe('Create Item page - List ordering: Partial different weights scoring with alternative answer - When correct answer points are more than alternative answer points', () => {
|
|
8
7
|
before(() => {
|
|
@@ -36,17 +35,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
36
35
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
37
36
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
38
37
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
39
|
-
if (alternativeAnswerCheck === 'true') {
|
|
40
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
41
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
42
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
43
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
44
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
45
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
46
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
47
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
48
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
49
|
-
}
|
|
50
38
|
listOrderingPage.steps.verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSection();
|
|
51
39
|
});
|
|
52
40
|
|
|
@@ -61,9 +49,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
61
49
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
62
50
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
63
51
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
64
|
-
if (alternativeAnswerCheck === 'true') {
|
|
65
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
66
|
-
}
|
|
67
52
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
68
53
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
69
54
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -86,9 +71,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
86
71
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
87
72
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
73
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
89
|
-
if (alternativeAnswerCheck === 'true') {
|
|
90
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
91
|
-
}
|
|
92
74
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
93
75
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
94
76
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -111,17 +93,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
111
93
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
112
94
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
113
95
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
114
|
-
if (alternativeAnswerCheck === 'true') {
|
|
115
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
116
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
117
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
118
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
119
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
120
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
121
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
122
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
123
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
124
|
-
}
|
|
125
96
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
97
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
127
98
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -144,17 +115,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
144
115
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
145
116
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
146
117
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
147
|
-
if (alternativeAnswerCheck === 'true') {
|
|
148
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
149
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
150
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
151
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
152
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
153
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
154
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
155
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
156
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
157
|
-
}
|
|
158
118
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
159
119
|
/*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, correct/incorrect status message and correct answer section should not be displayed')
|
|
160
120
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -177,17 +137,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
177
137
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
178
138
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
179
139
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
180
|
-
if (alternativeAnswerCheck === 'true') {
|
|
181
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
182
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
183
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
184
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
185
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
186
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
187
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
188
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
189
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
190
|
-
}
|
|
191
140
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
192
141
|
/*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 incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
193
142
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -210,17 +159,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
210
159
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
211
160
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
212
161
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
213
|
-
if (alternativeAnswerCheck === 'true') {
|
|
214
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
215
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
216
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
217
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
218
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
219
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
220
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
221
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
222
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
223
|
-
}
|
|
224
162
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
225
163
|
/*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 incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
226
164
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -243,17 +181,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
243
181
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
244
182
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
245
183
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
246
|
-
if (alternativeAnswerCheck === 'true') {
|
|
247
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
248
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
249
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
250
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
251
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
252
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
253
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
254
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
255
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
256
|
-
}
|
|
257
184
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
258
185
|
/*cy.log('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then on selecting the \'Check answer\' button the correct icon should be displayed beside the common option and incorrect should be displayed beside the incorrectly ordered options, correct/incorrect status message and correct answer section should not be displayed')
|
|
259
186
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -276,17 +203,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
276
203
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
277
204
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
278
205
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
279
|
-
if (alternativeAnswerCheck === 'true') {
|
|
280
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 0);
|
|
281
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
282
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
283
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
284
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
285
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
286
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
287
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 2 pts, 9 pts, 3 pts, 6 pts)', 1);
|
|
288
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
289
|
-
}
|
|
290
206
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
291
207
|
/*cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then incorrect icons should be displayed beside all the options, correct/incorrect status message and correct answer section should not be displayed')
|
|
292
208
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -321,17 +237,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
321
237
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
|
322
238
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['2', '3', '4', '1', '5']);
|
|
323
239
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
324
|
-
if (alternativeAnswerCheck === 'true') {
|
|
325
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 24.5 pts, 1.5 pts, 4.5 pts, 1.5 pts, 3.5 pts)', 0);
|
|
326
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
327
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
328
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
329
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
330
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
331
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
332
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 14.5 pts, 2.5 pts, 1.5 pts, 2.5 pts, 3.5 pts)', 1);
|
|
333
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['1', '2', '3', '5', '4']);
|
|
334
|
-
}
|
|
335
240
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
336
241
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
|
337
242
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
6
5
|
|
|
7
6
|
describe('Create Item page - List ordering: Partial equal weights scoring with alternative answer - When alternative answer points are more than correct answer points', () => {
|
|
@@ -36,17 +35,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
36
35
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
37
36
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
38
37
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
39
|
-
if (alternativeAnswerCheck === 'true') {
|
|
40
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
41
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
42
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
43
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
44
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
45
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
46
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
47
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
48
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
49
|
-
}
|
|
50
38
|
});
|
|
51
39
|
|
|
52
40
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
|
@@ -60,9 +48,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
60
48
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
61
49
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
62
50
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
63
|
-
if (alternativeAnswerCheck === 'true') {
|
|
64
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
65
|
-
}
|
|
66
51
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
67
52
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
68
53
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -85,9 +70,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
85
70
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
86
71
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
87
72
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
|
-
if (alternativeAnswerCheck === 'true') {
|
|
89
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
90
|
-
}
|
|
91
73
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
92
74
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
93
75
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -110,17 +92,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
110
92
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
111
93
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
112
94
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
113
|
-
if (alternativeAnswerCheck === 'true') {
|
|
114
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
115
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
116
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
117
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
118
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
119
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
120
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
121
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
122
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
123
|
-
}
|
|
124
95
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
125
96
|
/*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 should not be displayed and correct answer section should not be displayed')
|
|
126
97
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -143,17 +114,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
143
114
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
144
115
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
145
116
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
146
|
-
if (alternativeAnswerCheck === 'true') {
|
|
147
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
148
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
149
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
150
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
151
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
152
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
153
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
154
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
155
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
156
|
-
}
|
|
157
117
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
158
118
|
/*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, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
159
119
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -176,17 +136,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
176
136
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
177
137
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
178
138
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
179
|
-
if (alternativeAnswerCheck === 'true') {
|
|
180
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
181
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
182
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
183
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
184
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
185
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
186
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
187
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
188
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
189
|
-
}
|
|
190
139
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
140
|
/*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 should not be displayed and correct answer section should not be displayed')
|
|
192
141
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -209,17 +158,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
209
158
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
210
159
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
211
160
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
212
|
-
if (alternativeAnswerCheck === 'true') {
|
|
213
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
214
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
215
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
216
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
217
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
218
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
219
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
220
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
221
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
222
|
-
}
|
|
223
161
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
224
162
|
/*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, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
225
163
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -242,17 +180,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
242
180
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
243
181
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
244
182
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
245
|
-
if (alternativeAnswerCheck === 'true') {
|
|
246
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 6 pts)', 0);
|
|
247
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
248
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
249
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
250
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
251
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
252
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
253
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
254
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
255
|
-
}
|
|
256
183
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
257
184
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
258
185
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -284,17 +211,6 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
284
211
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
285
212
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '1', '2', '4']);
|
|
286
213
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
287
|
-
if (alternativeAnswerCheck === 'true') {
|
|
288
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 12.5 pts)', 0);
|
|
289
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
290
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
291
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
292
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
293
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
294
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
295
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 2.5 pts)', 1);
|
|
296
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
297
|
-
}
|
|
298
214
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
299
215
|
/*cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion and clicks on \'Check answer\' button, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
300
216
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -2,7 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
4
4
|
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
|
|
7
6
|
describe('Create Item page - List ordering: Partial equal weights', () => {
|
|
8
7
|
before(() => {
|
|
@@ -88,9 +87,6 @@ describe('Create Item page - List ordering: Partial equal weights', () => {
|
|
|
88
87
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
|
89
88
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
90
89
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
91
|
-
if (alternativeAnswerCheck === 'true') {
|
|
92
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
93
|
-
}
|
|
94
90
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
95
91
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
96
92
|
/*cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, then correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed')
|