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