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 { matchingPage } from "../../../../pages";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
|
|
7
6
|
const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
|
|
8
7
|
|
|
@@ -34,23 +33,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
34
33
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
35
34
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
36
35
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
40
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
41
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
42
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
43
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
44
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
45
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
46
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
47
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
48
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
49
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
50
|
-
} else {
|
|
51
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
52
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
53
|
-
}
|
|
36
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
37
|
+
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
54
38
|
});
|
|
55
39
|
|
|
56
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', () => {
|
|
@@ -63,9 +47,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
63
47
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
64
48
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
65
49
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
66
|
-
if (alternativeAnswerCheck === 'true') {
|
|
67
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
68
|
-
}
|
|
69
50
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
70
51
|
});
|
|
71
52
|
|
|
@@ -79,9 +60,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
79
60
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
80
61
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
81
62
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
82
|
-
if (alternativeAnswerCheck === 'true') {
|
|
83
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
84
|
-
}
|
|
85
63
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
86
64
|
});
|
|
87
65
|
|
|
@@ -95,19 +73,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
95
73
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
96
74
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
97
75
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
98
|
-
if (alternativeAnswerCheck === 'true') {
|
|
99
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
100
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
101
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
102
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
103
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
104
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
105
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
106
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
107
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
108
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
109
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
110
|
-
}
|
|
111
76
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
112
77
|
});
|
|
113
78
|
|
|
@@ -121,19 +86,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
121
86
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
122
87
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
123
88
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
124
|
-
if (alternativeAnswerCheck === 'true') {
|
|
125
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
126
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
127
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
128
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
129
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
130
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
131
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
132
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
133
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
134
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
135
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
136
|
-
}
|
|
137
89
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
138
90
|
});
|
|
139
91
|
|
|
@@ -147,19 +99,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
147
99
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
148
100
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
149
101
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
150
|
-
if (alternativeAnswerCheck === 'true') {
|
|
151
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
152
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
153
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
154
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
155
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
156
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
157
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
158
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
159
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
160
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
161
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
162
|
-
}
|
|
163
102
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
164
103
|
});
|
|
165
104
|
|
|
@@ -173,19 +112,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
173
112
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
174
113
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
175
114
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
176
|
-
if (alternativeAnswerCheck === 'true') {
|
|
177
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
178
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
179
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
180
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
181
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
182
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
183
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
184
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
185
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
186
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
187
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
188
|
-
}
|
|
189
115
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
190
116
|
});
|
|
191
117
|
|
|
@@ -199,19 +125,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
199
125
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
200
126
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
201
127
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
202
|
-
if (alternativeAnswerCheck === 'true') {
|
|
203
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
204
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
205
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
206
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
207
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
208
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
209
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
210
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
211
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
212
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
213
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
214
|
-
}
|
|
215
128
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
216
129
|
});
|
|
217
130
|
|
|
@@ -225,19 +138,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
225
138
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
226
139
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
227
140
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
228
|
-
if (alternativeAnswerCheck === 'true') {
|
|
229
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
230
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
231
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
232
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
233
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
234
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
235
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
236
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
237
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
238
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
239
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
240
|
-
}
|
|
241
141
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
242
142
|
});
|
|
243
143
|
});
|
|
@@ -2,7 +2,6 @@ import { matchingPage } from "../../../../pages";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
5
|
const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
|
|
7
6
|
const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
|
|
8
7
|
|
|
@@ -34,23 +33,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
34
33
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
35
34
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
36
35
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
40
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
41
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
42
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
43
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
44
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
45
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
46
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
47
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
48
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
49
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
50
|
-
} else {
|
|
51
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
52
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
53
|
-
}
|
|
36
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
37
|
+
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
54
38
|
});
|
|
55
39
|
|
|
56
40
|
it('CSS of correct answer section and dropzone numeration', { tags: 'css' }, () => {
|
|
@@ -93,9 +77,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
93
77
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
94
78
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
95
79
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
96
|
-
if (alternativeAnswerCheck === 'true') {
|
|
97
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
98
|
-
}
|
|
99
80
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
100
81
|
});
|
|
101
82
|
|
|
@@ -131,9 +112,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
131
112
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
132
113
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
133
114
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
134
|
-
if (alternativeAnswerCheck === 'true') {
|
|
135
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
136
|
-
}
|
|
137
115
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
138
116
|
});
|
|
139
117
|
|
|
@@ -147,19 +125,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
147
125
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
148
126
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
149
127
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
150
|
-
if (alternativeAnswerCheck === 'true') {
|
|
151
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
152
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
153
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
154
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
155
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
156
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
157
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
158
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
159
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
160
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
161
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
162
|
-
}
|
|
163
128
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
164
129
|
});
|
|
165
130
|
|
|
@@ -173,19 +138,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
173
138
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
174
139
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
175
140
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
176
|
-
if (alternativeAnswerCheck === 'true') {
|
|
177
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
178
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
179
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
180
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
181
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
182
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
183
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
184
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
185
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
186
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
187
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
188
|
-
}
|
|
189
141
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
190
142
|
});
|
|
191
143
|
|
|
@@ -199,19 +151,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
199
151
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
200
152
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
201
153
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
202
|
-
if (alternativeAnswerCheck === 'true') {
|
|
203
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
204
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
205
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
206
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
207
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
208
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
209
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
210
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
211
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
212
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
213
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
214
|
-
}
|
|
215
154
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
216
155
|
});
|
|
217
156
|
|
|
@@ -225,19 +164,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
225
164
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
226
165
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
227
166
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
228
|
-
if (alternativeAnswerCheck === 'true') {
|
|
229
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
230
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
231
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
232
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
233
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
234
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
235
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
236
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
237
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
238
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
239
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
240
|
-
}
|
|
241
167
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
242
168
|
});
|
|
243
169
|
|
|
@@ -251,19 +177,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
251
177
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
252
178
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
253
179
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
254
|
-
if (alternativeAnswerCheck === 'true') {
|
|
255
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
256
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
257
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
258
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
259
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
260
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
261
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
262
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
263
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
264
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
265
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
266
|
-
}
|
|
267
180
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
268
181
|
});
|
|
269
182
|
|
|
@@ -277,19 +190,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
|
277
190
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
|
278
191
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
279
192
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
280
|
-
if (alternativeAnswerCheck === 'true') {
|
|
281
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
282
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
283
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
284
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
285
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
286
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
287
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
288
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
|
|
289
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
290
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
291
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
292
|
-
}
|
|
293
193
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
294
194
|
});
|
|
295
195
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { dialogBoxBase, matchingPage, studentViewPage, itemPreviewPage, gradingViewPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
4
|
const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
|
|
6
5
|
const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
|
|
7
6
|
|
|
@@ -35,11 +34,7 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
35
34
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
36
35
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
37
36
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
38
|
-
|
|
39
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
|
|
40
|
-
} else {
|
|
41
|
-
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
42
|
-
}
|
|
37
|
+
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
43
38
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
44
39
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
|
45
40
|
});
|
|
@@ -52,11 +47,7 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
52
47
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
|
|
53
48
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
|
|
54
49
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
|
|
55
|
-
|
|
56
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
|
|
57
|
-
} else {
|
|
58
|
-
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
59
|
-
}
|
|
50
|
+
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
60
51
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
61
52
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
|
62
53
|
});
|
|
@@ -73,11 +64,7 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
73
64
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
74
65
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
75
66
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
76
|
-
|
|
77
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
|
|
78
|
-
} else {
|
|
79
|
-
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
80
|
-
}
|
|
67
|
+
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
81
68
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
82
69
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
|
|
83
70
|
});
|
|
@@ -129,9 +116,6 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
129
116
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
130
117
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
|
|
131
118
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
132
|
-
if (alternativeAnswerCheck === 'true') {
|
|
133
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
134
|
-
}
|
|
135
119
|
});
|
|
136
120
|
});
|
|
137
121
|
|
|
@@ -159,11 +143,7 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
159
143
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
160
144
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
161
145
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
162
|
-
|
|
163
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 8 pts)', 0);
|
|
164
|
-
} else {
|
|
165
|
-
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
166
|
-
}
|
|
146
|
+
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
167
147
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
168
148
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''],[''],['']]);
|
|
169
149
|
});
|
|
@@ -191,11 +171,7 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
191
171
|
matchingPage.steps.verifyDropdownNumeration(0);
|
|
192
172
|
matchingPage.steps.verifyDropdownNumeration(1);
|
|
193
173
|
matchingPage.steps.verifyDropdownNumeration(2);
|
|
194
|
-
|
|
195
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 8 pts)', 0);
|
|
196
|
-
} else {
|
|
197
|
-
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
198
|
-
}
|
|
174
|
+
matchingPage.steps.verifyCorrectAnswerSectionLabel();
|
|
199
175
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
200
176
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
|
|
201
177
|
});
|
|
@@ -232,9 +208,6 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
|
232
208
|
matchingPage.steps.verifyCorrectOptionIconDropdown(1);
|
|
233
209
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
234
210
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
235
|
-
if (alternativeAnswerCheck === 'true') {
|
|
236
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
237
|
-
}
|
|
238
211
|
});
|
|
239
212
|
});
|
|
240
213
|
});
|
|
@@ -110,9 +110,6 @@ describe('Create Item page - Matching: Manually and non scored', () => {
|
|
|
110
110
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
111
111
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
112
112
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
113
|
-
if (alternativeAnswerCheck === 'true') {
|
|
114
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
115
|
-
}
|
|
116
113
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
117
114
|
});
|
|
118
115
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { matchingPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
|
-
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
4
|
const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
|
|
7
5
|
const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
|
|
8
6
|
|
|
@@ -37,11 +35,7 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
|
37
35
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
|
|
38
36
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
|
|
39
37
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
|
|
40
|
-
|
|
41
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 9 pts, 6 pts, 5 pts)', 0);
|
|
42
|
-
} else {
|
|
43
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
44
|
-
}
|
|
38
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
45
39
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
46
40
|
});
|
|
47
41
|
|
|
@@ -94,9 +88,6 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
|
94
88
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
|
95
89
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
96
90
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
97
|
-
if (alternativeAnswerCheck === 'true') {
|
|
98
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
99
|
-
}
|
|
100
91
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
101
92
|
});
|
|
102
93
|
});
|