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
|
@@ -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 correct answer points are more than alternative answer points', () => {
|
|
9
10
|
before(() => {
|
|
@@ -41,6 +42,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
41
42
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
42
43
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
43
44
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
45
|
+
if (alternativeAnswerCheck === 'true') {
|
|
46
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
47
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
48
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
49
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
50
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
51
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
52
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
53
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
54
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
55
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
56
|
+
}
|
|
44
57
|
});
|
|
45
58
|
|
|
46
59
|
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', () => {
|
|
@@ -56,6 +69,9 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
56
69
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
57
70
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
58
71
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
72
|
+
if (alternativeAnswerCheck === 'true') {
|
|
73
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
74
|
+
}
|
|
59
75
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
60
76
|
/*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')
|
|
61
77
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -81,6 +97,9 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
81
97
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
82
98
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
83
99
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
100
|
+
if (alternativeAnswerCheck === 'true') {
|
|
101
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
102
|
+
}
|
|
84
103
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
85
104
|
/*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')
|
|
86
105
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -105,6 +124,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
105
124
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
|
106
125
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
107
126
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
127
|
+
if (alternativeAnswerCheck === 'true') {
|
|
128
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
129
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
130
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
131
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
132
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
133
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
134
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
135
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
136
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
137
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
138
|
+
}
|
|
108
139
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
109
140
|
/*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')
|
|
110
141
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -129,6 +160,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
129
160
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
|
130
161
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
131
162
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
163
|
+
if (alternativeAnswerCheck === 'true') {
|
|
164
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
165
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
166
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
167
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
168
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
169
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
170
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
171
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
172
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
173
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
174
|
+
}
|
|
132
175
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
133
176
|
/*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')
|
|
134
177
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -154,6 +197,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
154
197
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
155
198
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
156
199
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
200
|
+
if (alternativeAnswerCheck === 'true') {
|
|
201
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
202
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
203
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
204
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
205
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
206
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
207
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
208
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
209
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
210
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
211
|
+
}
|
|
157
212
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
158
213
|
/*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')
|
|
159
214
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -178,6 +233,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
178
233
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
179
234
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
180
235
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
236
|
+
if (alternativeAnswerCheck === 'true') {
|
|
237
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
238
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
239
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
240
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
241
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
242
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
243
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
244
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
245
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
246
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
247
|
+
}
|
|
181
248
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
182
249
|
/*cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
183
250
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -202,6 +269,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
202
269
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
203
270
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
204
271
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
272
|
+
if (alternativeAnswerCheck === 'true') {
|
|
273
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 5 pts)', 0);
|
|
274
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
275
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
276
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
277
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
278
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
279
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
280
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
281
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 3 pts)', 1);
|
|
282
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant']);
|
|
283
|
+
}
|
|
205
284
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
206
285
|
/*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')
|
|
207
286
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -238,6 +317,18 @@ describe('Create Item page - List ordering: Partial equal weights scoring with a
|
|
|
238
317
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
239
318
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
240
319
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
320
|
+
if (alternativeAnswerCheck === 'true') {
|
|
321
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 12.5 pts)', 0);
|
|
322
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
323
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
324
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
325
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
326
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
327
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
328
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
329
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(Points per response - 2.5 pts)', 1);
|
|
330
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['plant', 'flower', 'sprout', 'seed']);
|
|
331
|
+
}
|
|
241
332
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
242
333
|
/*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')
|
|
243
334
|
listOrderingPage.steps.checkAnswer();
|
|
@@ -8,6 +8,7 @@ const views = utilities.getViews(correctAnswerViews);
|
|
|
8
8
|
var itemReferenceID = "";
|
|
9
9
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
|
10
10
|
const correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
|
11
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
11
12
|
|
|
12
13
|
describe('Create item page - List ordering: All or nothing ', () => {
|
|
13
14
|
before(() => {
|
|
@@ -118,8 +119,11 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
118
119
|
};
|
|
119
120
|
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-2964
|
|
120
121
|
// listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
if (alternativeAnswerCheck === 'true') {
|
|
123
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
124
|
+
} else {
|
|
125
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
126
|
+
}
|
|
123
127
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
124
128
|
});
|
|
125
129
|
|
|
@@ -191,11 +195,193 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
191
195
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
192
196
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
193
197
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
198
|
+
if (alternativeAnswerCheck === 'true') {
|
|
199
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
200
|
+
}
|
|
194
201
|
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question correctly`);
|
|
195
202
|
});
|
|
196
203
|
});
|
|
197
204
|
});
|
|
198
205
|
|
|
206
|
+
if (alternativeAnswerCheck === 'true') {
|
|
207
|
+
views.forEach((view) => {
|
|
208
|
+
describe.skip(`${view}: Auto scored - All or nothing scoring with alternative answer`, { tags: 'smoke' }, () => {
|
|
209
|
+
abortEarlySetup();
|
|
210
|
+
before(() => {
|
|
211
|
+
switch (view) {
|
|
212
|
+
case 'Question preview':
|
|
213
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
|
214
|
+
cy.barsPreLoaderWait();
|
|
215
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
|
216
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
|
217
|
+
listOrderingPage.steps.allotPoints(20);
|
|
218
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
|
219
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('sprout', 1);
|
|
220
|
+
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(correctAnswerArray);
|
|
221
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
|
222
|
+
listOrderingPage.steps.allotPoints(15);
|
|
223
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
|
224
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('plant', 3);
|
|
225
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('flower', 1);
|
|
226
|
+
listOrderingPage.steps.switchToPreviewTab();
|
|
227
|
+
break;
|
|
228
|
+
case 'Item preview':
|
|
229
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
|
230
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
|
231
|
+
break;
|
|
232
|
+
case 'Grading view':
|
|
233
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
|
234
|
+
break;
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
beforeEach(() => {
|
|
239
|
+
switch (view) {
|
|
240
|
+
case 'Question preview':
|
|
241
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
242
|
+
listOrderingPage.steps.resetQuestionPreview();
|
|
243
|
+
break;
|
|
244
|
+
case 'Item preview':
|
|
245
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
246
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
|
247
|
+
break;
|
|
248
|
+
case 'Grading view':
|
|
249
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
if (view === 'Question preview') {
|
|
255
|
+
after(() => {
|
|
256
|
+
listOrderingPage.steps.clickOnSaveQuestionButton();
|
|
257
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
|
258
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
|
263
|
+
if (view === 'Grading view') {
|
|
264
|
+
studentViewPage.steps.submitResponse();
|
|
265
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
266
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
267
|
+
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
268
|
+
};
|
|
269
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
|
270
|
+
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
|
271
|
+
listOrderingPage.steps.switchToGradingView();
|
|
272
|
+
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
|
273
|
+
};
|
|
274
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-2964
|
|
275
|
+
// listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
276
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
277
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
278
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
279
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
280
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
281
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
282
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
283
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
284
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
285
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
286
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(15 points)', 1);
|
|
287
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant' ]);
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
|
291
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
|
292
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
|
293
|
+
if (view === 'Grading view') {
|
|
294
|
+
studentViewPage.steps.submitResponse();
|
|
295
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
296
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
297
|
+
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
298
|
+
};
|
|
299
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
|
300
|
+
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
|
301
|
+
listOrderingPage.steps.switchToGradingView();
|
|
302
|
+
};
|
|
303
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
304
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
305
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
|
306
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
|
307
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
308
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
309
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
310
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
311
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
312
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
313
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
314
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
315
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
316
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
317
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(15 points)', 1);
|
|
318
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant' ]);
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
|
322
|
+
if (view === 'Grading view') {
|
|
323
|
+
studentViewPage.steps.clearResponses();
|
|
324
|
+
};
|
|
325
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
|
|
326
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 0);
|
|
327
|
+
if (view === 'Grading view') {
|
|
328
|
+
studentViewPage.steps.submitResponse();
|
|
329
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
330
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
331
|
+
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
332
|
+
};
|
|
333
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
|
334
|
+
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
|
335
|
+
listOrderingPage.steps.switchToGradingView();
|
|
336
|
+
};
|
|
337
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
338
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
|
339
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
|
340
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
341
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
342
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
|
343
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
344
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(0, ['seed', 'sprout', 'plant', 'flower']);
|
|
345
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
346
|
+
listOrderingPage.steps.disableShowAlternativeAnswersToggle();
|
|
347
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
348
|
+
listOrderingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
349
|
+
listOrderingPage.steps.clickShowAlternativeAnswersToggle();
|
|
350
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
351
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(15 points)', 1);
|
|
352
|
+
listOrderingPage.steps.verifyOptionsInCorrectAndAlternativeAnswerSection(1, ['seed', 'flower', 'sprout', 'plant' ]);
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
it(`${view}: List ordering - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
|
|
356
|
+
if (view === 'Grading view') {
|
|
357
|
+
studentViewPage.steps.clearResponses();
|
|
358
|
+
};
|
|
359
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
|
360
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
|
361
|
+
if (view === 'Grading view') {
|
|
362
|
+
studentViewPage.steps.submitResponse();
|
|
363
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
364
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
365
|
+
gradingViewPage.steps.verifyGradingViewScore(20, 20);
|
|
366
|
+
};
|
|
367
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
|
368
|
+
listOrderingPage.steps.verifyPreviewScore(20, 20);
|
|
369
|
+
listOrderingPage.steps.switchToGradingView();
|
|
370
|
+
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
|
371
|
+
};
|
|
372
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
|
373
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
|
374
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
|
375
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
376
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
377
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
378
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
379
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question correctly`);
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
});
|
|
383
|
+
};
|
|
384
|
+
|
|
199
385
|
views.forEach((view) => {
|
|
200
386
|
describe(`${view}: List ordering - Manually scored`, { tags: 'smoke' }, () => {
|
|
201
387
|
abortEarlySetup();
|
|
@@ -264,6 +450,9 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
264
450
|
};
|
|
265
451
|
listOrderingPage.steps.verifyCorrectIncorrectIconsNotExist();
|
|
266
452
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
453
|
+
if (alternativeAnswerCheck === 'true') {
|
|
454
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
455
|
+
}
|
|
267
456
|
});
|
|
268
457
|
});
|
|
269
458
|
});
|
|
@@ -336,7 +525,11 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
336
525
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
337
526
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
338
527
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
339
|
-
|
|
528
|
+
if (alternativeAnswerCheck === 'true') {
|
|
529
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '', 0);
|
|
530
|
+
} else {
|
|
531
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
532
|
+
}
|
|
340
533
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower']);
|
|
341
534
|
});
|
|
342
535
|
|
|
@@ -358,7 +551,11 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
358
551
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
359
552
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
360
553
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
361
|
-
|
|
554
|
+
if (alternativeAnswerCheck === 'true') {
|
|
555
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '', 0);
|
|
556
|
+
} else {
|
|
557
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
558
|
+
}
|
|
362
559
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower']);
|
|
363
560
|
});
|
|
364
561
|
|
|
@@ -382,7 +579,11 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
382
579
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
|
383
580
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
|
384
581
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
385
|
-
|
|
582
|
+
if (alternativeAnswerCheck === 'true') {
|
|
583
|
+
listOrderingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '', 0);
|
|
584
|
+
} else {
|
|
585
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
586
|
+
}
|
|
386
587
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower']);
|
|
387
588
|
});
|
|
388
589
|
|
|
@@ -407,6 +608,9 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
407
608
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
|
408
609
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
409
610
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
611
|
+
if (alternativeAnswerCheck === 'true') {
|
|
612
|
+
listOrderingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
613
|
+
}
|
|
410
614
|
});
|
|
411
615
|
});
|
|
412
616
|
});
|