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
|
|
|
@@ -33,23 +32,8 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
33
32
|
it('When the user selects \'Grading\' view without attempting the question, cell numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective dropzone numeration', () => {
|
|
34
33
|
matchingPage.steps.switchToGradingView();
|
|
35
34
|
matchingPage.steps.verifyDropzoneNumeration();
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
39
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
40
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
41
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
42
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
43
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
44
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
45
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
46
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
47
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
48
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
49
|
-
} else {
|
|
50
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
51
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
52
|
-
}
|
|
35
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
36
|
+
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
53
37
|
});
|
|
54
38
|
|
|
55
39
|
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 and correct answer section should not be displayed', () => {
|
|
@@ -62,9 +46,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
62
46
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
63
47
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
64
48
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
65
|
-
if (alternativeAnswerCheck === 'true') {
|
|
66
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
67
|
-
}
|
|
68
49
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
69
50
|
/*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 and correct answer section should not be displayed')
|
|
70
51
|
matchingPage.steps.checkAnswer();
|
|
@@ -85,9 +66,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
85
66
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
86
67
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
87
68
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
|
-
if (alternativeAnswerCheck === 'true') {
|
|
89
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
90
|
-
}
|
|
91
69
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
92
70
|
/*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 and correct answer section should not be displayed')
|
|
93
71
|
matchingPage.steps.checkAnswer();
|
|
@@ -108,19 +86,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
108
86
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
109
87
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
110
88
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
111
|
-
if (alternativeAnswerCheck === 'true') {
|
|
112
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
113
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
114
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
115
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
116
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
117
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
118
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
119
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
120
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
121
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
122
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
123
|
-
}
|
|
124
89
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
125
90
|
/*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
91
|
matchingPage.steps.checkAnswer();
|
|
@@ -141,19 +106,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
141
106
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
142
107
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
143
108
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
144
|
-
if (alternativeAnswerCheck === 'true') {
|
|
145
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
146
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
147
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
148
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
149
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
150
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
151
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
152
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
153
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
154
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
155
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
156
|
-
}
|
|
157
109
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
158
110
|
/*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
111
|
matchingPage.steps.checkAnswer();
|
|
@@ -174,19 +126,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
174
126
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
175
127
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
176
128
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
177
|
-
if (alternativeAnswerCheck === 'true') {
|
|
178
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
179
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
180
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
181
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
182
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
183
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
184
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
185
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
186
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
187
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
188
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
189
|
-
}
|
|
190
129
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
130
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message should not be displayed and correct answer section should not be displayed')
|
|
192
131
|
matchingPage.steps.checkAnswer();
|
|
@@ -207,19 +146,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
207
146
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
208
147
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
209
148
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
210
|
-
if (alternativeAnswerCheck === 'true') {
|
|
211
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
212
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
213
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
214
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
215
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
216
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
217
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
218
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
219
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
220
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
221
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
222
|
-
}
|
|
223
149
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
224
150
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses a status message should not be displayed and correct answer section should not be displayed')
|
|
225
151
|
matchingPage.steps.checkAnswer();
|
|
@@ -240,19 +166,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
240
166
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
241
167
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
242
168
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
243
|
-
if (alternativeAnswerCheck === 'true') {
|
|
244
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
245
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
246
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
247
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
248
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
249
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
250
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
251
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
252
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
253
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
254
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
255
|
-
}
|
|
256
169
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
257
170
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
258
171
|
matchingPage.steps.checkAnswer();
|
|
@@ -273,19 +186,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
273
186
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
274
187
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
275
188
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
276
|
-
if (alternativeAnswerCheck === 'true') {
|
|
277
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
278
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
279
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
280
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
281
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
282
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
283
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
284
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 5 pts)', 1);
|
|
285
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
286
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
287
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
288
|
-
}
|
|
289
189
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
290
190
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
291
191
|
matchingPage.steps.checkAnswer();
|
|
@@ -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
|
|
|
@@ -33,23 +32,8 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
33
32
|
it('When the user selects \'Grading\' view without attempting the question, cell numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective dropzone numeration', () => {
|
|
34
33
|
matchingPage.steps.switchToGradingView();
|
|
35
34
|
matchingPage.steps.verifyDropzoneNumeration();
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
39
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
40
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
41
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
42
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
43
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
44
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
45
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
46
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
47
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
48
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
49
|
-
} else {
|
|
50
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
51
|
-
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
52
|
-
}
|
|
35
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
|
36
|
+
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
53
37
|
});
|
|
54
38
|
|
|
55
39
|
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 and correct answer section should not be displayed', () => {
|
|
@@ -62,9 +46,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
62
46
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
63
47
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
64
48
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
65
|
-
if (alternativeAnswerCheck === 'true') {
|
|
66
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
67
|
-
}
|
|
68
49
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
69
50
|
/*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 and correct answer section should not be displayed')
|
|
70
51
|
matchingPage.steps.checkAnswer();
|
|
@@ -85,9 +66,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
85
66
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
86
67
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
87
68
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
|
-
if (alternativeAnswerCheck === 'true') {
|
|
89
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
90
|
-
}
|
|
91
69
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
92
70
|
/*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 and correct answer section should not be displayed')
|
|
93
71
|
matchingPage.steps.checkAnswer();
|
|
@@ -108,19 +86,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
108
86
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
109
87
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
110
88
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
111
|
-
if (alternativeAnswerCheck === 'true') {
|
|
112
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
113
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
114
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
115
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
116
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
117
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
118
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
119
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
120
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
121
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
122
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
123
|
-
}
|
|
124
89
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
125
90
|
/*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
91
|
matchingPage.steps.checkAnswer();
|
|
@@ -141,19 +106,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
141
106
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
142
107
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
143
108
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
144
|
-
if (alternativeAnswerCheck === 'true') {
|
|
145
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
146
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
147
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
148
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
149
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
150
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
151
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
152
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
153
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
154
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
155
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
156
|
-
}
|
|
157
109
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
158
110
|
/*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
111
|
matchingPage.steps.checkAnswer();
|
|
@@ -174,19 +126,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
174
126
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
175
127
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
176
128
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
177
|
-
if (alternativeAnswerCheck === 'true') {
|
|
178
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
179
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
180
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
181
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
182
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
183
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
184
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
185
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
186
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
187
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
188
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
189
|
-
}
|
|
190
129
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
130
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message should not be displayed and correct answer section should not be displayed')
|
|
192
131
|
matchingPage.steps.checkAnswer();
|
|
@@ -207,19 +146,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
207
146
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
208
147
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
209
148
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
210
|
-
if (alternativeAnswerCheck === 'true') {
|
|
211
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
212
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
213
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
214
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
215
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
216
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
217
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
218
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
219
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
220
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
221
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
222
|
-
}
|
|
223
149
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
224
150
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses a status message should not be displayed and correct answer section should not be displayed')
|
|
225
151
|
matchingPage.steps.checkAnswer();
|
|
@@ -240,19 +166,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
240
166
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
|
241
167
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
242
168
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
243
|
-
if (alternativeAnswerCheck === 'true') {
|
|
244
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
245
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
246
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
247
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
248
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
249
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
250
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
251
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
252
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
253
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
254
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
255
|
-
}
|
|
256
169
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
257
170
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
258
171
|
matchingPage.steps.checkAnswer();
|
|
@@ -273,19 +186,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
273
186
|
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
|
274
187
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
275
188
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
276
|
-
if (alternativeAnswerCheck === 'true') {
|
|
277
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
278
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
279
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
280
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
281
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
282
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
283
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
284
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
285
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
|
|
286
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
287
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
288
|
-
}
|
|
289
189
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
290
190
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
|
291
191
|
matchingPage.steps.checkAnswer();
|
|
@@ -314,19 +214,6 @@ describe('Create item page - Matching: Partial equal weights with alternative an
|
|
|
314
214
|
matchingPage.steps.verifyIncorrectOptionIcon(2);
|
|
315
215
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
316
216
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
|
317
|
-
if (alternativeAnswerCheck === 'true') {
|
|
318
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 7.67 pts)', 0);
|
|
319
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
320
|
-
matchingPage.steps.disableShowAlternativeAnswersToggle();
|
|
321
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
322
|
-
matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
323
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
324
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
325
|
-
matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 1.67 pts)', 1);
|
|
326
|
-
matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Eagle']], 1);
|
|
327
|
-
matchingPage.steps.clickShowAlternativeAnswersToggle();
|
|
328
|
-
matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
329
|
-
}
|
|
330
217
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
331
218
|
/*cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct accordion, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
|
332
219
|
matchingPage.steps.checkAnswer();
|