itemengine-cypress-automation 1.0.583-IEI-7048-71a8251.0 → 1.0.584-IEI-7041-1da58ac.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/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
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
7
6
|
|
|
8
7
|
describe('Create Item page - List ordering: All or nothing scoring with alternative answer - When Correct answer points are equal to the alternative answer points', () => {
|
|
@@ -33,21 +32,9 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
33
32
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(1);
|
|
34
33
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(2);
|
|
35
34
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
35
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
36
36
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
37
37
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
38
|
-
if (alternativeAnswerCheck === 'true') {
|
|
39
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
40
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
41
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
42
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
43
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
44
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
45
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
46
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
47
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
48
|
-
} else {
|
|
49
|
-
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
50
|
-
}
|
|
51
38
|
});
|
|
52
39
|
|
|
53
40
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
|
@@ -61,9 +48,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
61
48
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
62
49
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
63
50
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
64
|
-
if (alternativeAnswerCheck === 'true') {
|
|
65
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
66
|
-
}
|
|
67
51
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
68
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
69
53
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -86,9 +70,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
86
70
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
87
71
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
88
72
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
89
|
-
if (alternativeAnswerCheck === 'true') {
|
|
90
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
91
|
-
}
|
|
92
73
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
93
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, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
94
75
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -111,17 +92,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
111
92
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
112
93
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
113
94
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
114
|
-
if (alternativeAnswerCheck === 'true') {
|
|
115
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 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', '(20 points)', 1);
|
|
123
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
124
|
-
}
|
|
125
95
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
127
97
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -144,17 +114,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
144
114
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
145
115
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
146
116
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
147
|
-
if (alternativeAnswerCheck === 'true') {
|
|
148
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 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', '(20 points)', 1);
|
|
156
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
157
|
-
}
|
|
158
117
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
159
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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
160
119
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -177,17 +136,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
177
136
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
178
137
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
179
138
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
180
|
-
if (alternativeAnswerCheck === 'true') {
|
|
181
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 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', '(20 points)', 1);
|
|
189
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
190
|
-
}
|
|
191
139
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
192
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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
193
141
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -210,17 +158,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
210
158
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
211
159
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
212
160
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
213
|
-
if (alternativeAnswerCheck === 'true') {
|
|
214
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 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', '(20 points)', 1);
|
|
222
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
223
|
-
}
|
|
224
161
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
225
162
|
/*cy.log('When the user has attempted the question with the common response between correct and 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 incorrect\' and correct answer section should not be displayed')
|
|
226
163
|
listOrderingPage.steps.checkAnswer()
|
|
@@ -243,17 +180,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
243
180
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
244
181
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
245
182
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
246
|
-
if (alternativeAnswerCheck === 'true') {
|
|
247
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 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', '(20 points)', 1);
|
|
255
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
256
|
-
}
|
|
257
183
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
258
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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
259
185
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -286,9 +212,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
286
212
|
listOrderingPage.steps.switchToGradingView();
|
|
287
213
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
288
214
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
289
|
-
if (alternativeAnswerCheck === 'true') {
|
|
290
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
291
|
-
}
|
|
292
215
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
293
216
|
});
|
|
294
217
|
});
|
|
@@ -2,7 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
const css = Cypress.env('css');
|
|
7
6
|
|
|
8
7
|
|
|
@@ -35,22 +34,10 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
35
34
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(1);
|
|
36
35
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(2);
|
|
37
36
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
37
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
38
38
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
39
39
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
40
40
|
listOrderingPage.steps.verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSection();
|
|
41
|
-
if (alternativeAnswerCheck === 'true') {
|
|
42
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
43
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
44
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
45
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
46
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
47
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
48
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
49
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
50
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
51
|
-
} else {
|
|
52
|
-
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
53
|
-
}
|
|
54
41
|
});
|
|
55
42
|
|
|
56
43
|
it('CSS of correct answer section', { tags: 'css' }, () => {
|
|
@@ -84,9 +71,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
84
71
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
85
72
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
86
73
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
87
|
-
if (alternativeAnswerCheck === 'true') {
|
|
88
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
89
|
-
}
|
|
90
74
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
91
75
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
92
76
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -139,9 +123,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
139
123
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
140
124
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
141
125
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
142
|
-
if (alternativeAnswerCheck === 'true') {
|
|
143
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
144
|
-
}
|
|
145
126
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
146
127
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
147
128
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -165,17 +146,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
165
146
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
166
147
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
167
148
|
listOrderingPage.steps.verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSection();
|
|
168
|
-
if (alternativeAnswerCheck === 'true') {
|
|
169
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
170
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
171
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
172
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
173
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
174
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
175
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
176
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
177
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
178
|
-
}
|
|
179
149
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
180
150
|
/*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')
|
|
181
151
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -198,17 +168,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
198
168
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
199
169
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
200
170
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
201
|
-
if (alternativeAnswerCheck === 'true') {
|
|
202
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
203
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
204
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
205
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
206
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
207
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
208
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
209
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
210
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
211
|
-
}
|
|
212
171
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
213
172
|
/*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
214
173
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -231,17 +190,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
231
190
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
232
191
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
233
192
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
234
|
-
if (alternativeAnswerCheck === 'true') {
|
|
235
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
236
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
237
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
238
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
239
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
240
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
241
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
242
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
243
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
244
|
-
}
|
|
245
193
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
246
194
|
/*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')
|
|
247
195
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -264,17 +212,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
264
212
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
265
213
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
266
214
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
267
|
-
if (alternativeAnswerCheck === 'true') {
|
|
268
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
269
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
270
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
271
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
272
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
273
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
274
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
275
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
276
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
277
|
-
}
|
|
278
215
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
279
216
|
/*cy.log('When the user has attempted the question with the common response between correct and 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 incorrect\' and correct answer section should not be displayed')
|
|
280
217
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -297,17 +234,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
297
234
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
298
235
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
299
236
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
|
300
|
-
if (alternativeAnswerCheck === 'true') {
|
|
301
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
302
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
303
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
304
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
305
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
306
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
307
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
308
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
309
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['3', '4', '2', '1']);
|
|
310
|
-
}
|
|
311
237
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
312
238
|
/*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
313
239
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -366,9 +292,6 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
|
366
292
|
listOrderingPage.steps.switchToGradingView();
|
|
367
293
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
368
294
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
369
|
-
if (alternativeAnswerCheck === 'true') {
|
|
370
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
371
|
-
}
|
|
372
295
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
373
296
|
});
|
|
374
297
|
});
|
|
@@ -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 different 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 different weights scoring wi
|
|
|
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 in order of appearance - 10 pts, 6 pts, 9 pts, 4 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, 8 pts, 7 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', () => {
|
|
@@ -59,10 +47,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
59
47
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
|
60
48
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
61
49
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
62
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
63
|
-
if (alternativeAnswerCheck === 'true') {
|
|
64
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
65
|
-
}
|
|
50
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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();
|
|
@@ -84,10 +69,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
84
69
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
|
85
70
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
86
71
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
87
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
88
|
-
if (alternativeAnswerCheck === 'true') {
|
|
89
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
90
|
-
}
|
|
72
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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();
|
|
@@ -109,18 +91,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
109
91
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
|
110
92
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
111
93
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
112
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
113
|
-
if (alternativeAnswerCheck === 'true') {
|
|
114
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 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 in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
122
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
123
|
-
}
|
|
94
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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();
|
|
@@ -142,18 +113,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
142
113
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
|
143
114
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
144
115
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
145
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
146
|
-
if (alternativeAnswerCheck === 'true') {
|
|
147
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 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 in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
155
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
156
|
-
}
|
|
116
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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();
|
|
@@ -175,18 +135,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
175
135
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
|
176
136
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
177
137
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
178
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
179
|
-
if (alternativeAnswerCheck === 'true') {
|
|
180
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 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 in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
188
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
189
|
-
}
|
|
138
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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 incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
192
141
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -208,18 +157,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
208
157
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
|
209
158
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
210
159
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
211
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
212
|
-
if (alternativeAnswerCheck === 'true') {
|
|
213
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 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 in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
221
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
222
|
-
}
|
|
160
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
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, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
225
163
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -241,18 +179,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
241
179
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
|
242
180
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
|
243
181
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
244
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
245
|
-
if (alternativeAnswerCheck === 'true') {
|
|
246
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 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 in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
254
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
255
|
-
}
|
|
182
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
256
183
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
257
184
|
/*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 red cross-marks should be displayed beside the incorrectly responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
258
185
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -274,18 +201,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
274
201
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
|
275
202
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
276
203
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['3', '4', '2', '1']);
|
|
277
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
278
|
-
if (alternativeAnswerCheck === 'true') {
|
|
279
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 10 pts, 6 pts, 9 pts, 4 pts)', 0);
|
|
280
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
281
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
282
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
283
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
284
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
285
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
286
|
-
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response in order of appearance - 5 pts, 4 pts, 8 pts, 7 pts)', 1);
|
|
287
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
288
|
-
}
|
|
204
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
289
205
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
290
206
|
/*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, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
|
|
291
207
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -319,18 +235,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
|
319
235
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
|
320
236
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
|
321
237
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['1', '2', '3', '5', '4']);
|
|
322
|
-
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
323
|
-
if (alternativeAnswerCheck === 'true') {
|
|
324
|
-
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);
|
|
325
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
326
|
-
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
327
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
328
|
-
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
329
|
-
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
330
|
-
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
331
|
-
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);
|
|
332
|
-
listOrderingPage.steps.verifyOptionsPositionInAlternativeAnswerSection(1, options, ['2', '3', '4', '1']);
|
|
333
|
-
}
|
|
238
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
|
334
239
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
335
240
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the alternative accordion than the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
|
336
241
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
3
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
|
5
4
|
|
|
6
5
|
describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
@@ -88,9 +87,6 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
|
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')
|