itemengine-cypress-automation 1.0.573-IEI-7080-f70315e.0 → 1.0.573-IEI-7079-ed54ea2.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/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +181 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +37 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +72 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +19 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +56 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +57 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +15 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +54 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +12 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomizationAllViews.js +156 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +7 -108
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +7 -108
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +7 -108
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +9 -124
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -123
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +8 -123
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -108
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +6 -93
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -108
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +2 -23
- package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +284 -17
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +397 -25
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +320 -20
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +97 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +24 -14
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +26 -16
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +25 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -13
- package/cypress/e2e/ILC/dataApi/saveItems.js +1 -1
- package/cypress/e2e/ILC/dataApi/saveQuestions.js +7 -7
- package/cypress/e2e/ILC/dataApi/saveQuestionsMCQAlternateAnswers.js +6 -6
- package/cypress/pages/chartsBarPage.js +44 -1
- package/cypress/pages/chartsDotPlotPage.js +99 -1
- package/cypress/pages/chartsLinePage.js +48 -1
- package/cypress/pages/components/additionalSettingsPanel.js +9 -0
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/colorPopupComponent.js +1 -1
- package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +4 -10
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +14 -37
- package/cypress/pages/components/gradingViewEnumerationComponent.js +5 -0
- package/cypress/pages/components/imageCanvasComponent.js +0 -3
- package/cypress/pages/components/placeholderTextSectionComponent.js +10 -0
- package/cypress/pages/components/showAlternativeAnswersComponent.js +41 -65
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +21 -1
- package/cypress/pages/imageHighlightPage.js +184 -7
- package/cypress/pages/itemPreviewPage.js +1 -0
- package/cypress/pages/multipleSelectionPage.js +32 -0
- package/cypress/pages/singleSelectionPage.js +17 -0
- package/cypress/support/helpers/utilities.js +16 -0
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +47 -53
- package/service.yaml +2 -2
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { fillInTheGapsTextPage } from "../../../../pages";
|
|
2
|
-
import { showAlternativeAnswersComponent } from "../../../../pages/components";
|
|
3
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
4
3
|
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
6
|
-
|
|
7
4
|
describe('Create item page - Fill in the gaps with text: Partial different weights', () => {
|
|
8
5
|
before(() => {
|
|
9
6
|
cy.loginAs('admin');
|
|
@@ -25,24 +22,10 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
25
22
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
|
26
23
|
});
|
|
27
24
|
|
|
28
|
-
it
|
|
25
|
+
it('When the user selects \'Grading\' view without attempting the question, response area numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response area numeration', () => {
|
|
29
26
|
fillInTheGapsTextPage.steps.switchToGradingView();
|
|
30
27
|
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
|
31
|
-
|
|
32
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
33
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
34
|
-
{
|
|
35
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
36
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
40
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
41
|
-
}
|
|
42
|
-
]);
|
|
43
|
-
} else {
|
|
44
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
45
|
-
}
|
|
28
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
46
29
|
});
|
|
47
30
|
|
|
48
31
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, status message and correct answer section should not be displayed', () => {
|
|
@@ -94,21 +77,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
94
77
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
|
95
78
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
96
79
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
97
|
-
|
|
98
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
99
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
100
|
-
{
|
|
101
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
102
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
106
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
107
|
-
}
|
|
108
|
-
]);
|
|
109
|
-
} else {
|
|
110
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
111
|
-
}
|
|
80
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
112
81
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
113
82
|
/*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, status message and correct answer section should not be displayed')
|
|
114
83
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -128,21 +97,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
128
97
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
129
98
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
130
99
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
131
|
-
|
|
132
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
133
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
134
|
-
{
|
|
135
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
136
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
140
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
141
|
-
}
|
|
142
|
-
]);
|
|
143
|
-
} else {
|
|
144
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
145
|
-
}
|
|
100
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
146
101
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
147
102
|
/*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 status message and correct answer section should not be displayed')
|
|
148
103
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -162,21 +117,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
162
117
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
163
118
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
164
119
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
165
|
-
|
|
166
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
167
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
168
|
-
{
|
|
169
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
170
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
174
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
175
|
-
}
|
|
176
|
-
]);
|
|
177
|
-
} else {
|
|
178
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
179
|
-
}
|
|
120
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
180
121
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
181
122
|
/*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 alternative answer responses, incorrect icon should be displayed beside responses of the correct accordion status message and correct answer section should not be displayed')
|
|
182
123
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -196,21 +137,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
196
137
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
197
138
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
198
139
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
199
|
-
|
|
200
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
201
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
202
|
-
{
|
|
203
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
204
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
208
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
209
|
-
}
|
|
210
|
-
]);
|
|
211
|
-
} else {
|
|
212
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
213
|
-
}
|
|
140
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
214
141
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
215
142
|
/*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 status message and correct answer section should not be displayed')
|
|
216
143
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -230,21 +157,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
230
157
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
231
158
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
|
232
159
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
233
|
-
|
|
234
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
235
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
236
|
-
{
|
|
237
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
238
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
242
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
243
|
-
}
|
|
244
|
-
]);
|
|
245
|
-
} else {
|
|
246
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
247
|
-
}
|
|
160
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
248
161
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
162
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response status message and correct answer section should not be displayed')
|
|
250
163
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -264,21 +177,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
264
177
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
265
178
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
266
179
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
267
|
-
|
|
268
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
269
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
270
|
-
{
|
|
271
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
272
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
276
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
277
|
-
}
|
|
278
|
-
]);
|
|
279
|
-
} else {
|
|
280
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
281
|
-
}
|
|
180
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
|
282
181
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
283
182
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response status message and correct answer section should not be displayed')
|
|
284
183
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -305,21 +204,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
305
204
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
306
205
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
|
307
206
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
308
|
-
|
|
309
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
310
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
311
|
-
{
|
|
312
|
-
correctAnswers: [['Petals'],['Leaves'],['Branch']],
|
|
313
|
-
points: ['(23 points)', '(11.4 points)', '(1.2 points)', '(10.4 points)'],
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
317
|
-
points: ['(5 points)', '(1.2 points)', '(2.2 point)', '(1.6 points)'],
|
|
318
|
-
}
|
|
319
|
-
]);
|
|
320
|
-
} else {
|
|
321
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Branch']);
|
|
322
|
-
}
|
|
207
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Branch']);
|
|
323
208
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
324
209
|
/*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on the \'Check answer\' button, correct icon icons should be displayed beside the correct responses from the correct accordion, incorrect icons should be displayed beside the incorrectly answered responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
325
210
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { fillInTheGapsTextPage } from "../../../../pages";
|
|
2
|
-
import { showAlternativeAnswersComponent } from "../../../../pages/components";
|
|
3
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
4
3
|
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
6
|
-
|
|
7
4
|
describe('Create item page - Fill in the gaps with text: Partial different weights', () => {
|
|
8
5
|
before(() => {
|
|
9
6
|
cy.loginAs('admin');
|
|
@@ -28,21 +25,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
28
25
|
it('When the user selects \'Grading\' view without attempting the question, response area numeration, correct answers section with correct answers from the correct accordion and respective response area numeration should be displayed', () => {
|
|
29
26
|
fillInTheGapsTextPage.steps.switchToGradingView();
|
|
30
27
|
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
|
31
|
-
|
|
32
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
33
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
34
|
-
{
|
|
35
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
36
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
40
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
41
|
-
}
|
|
42
|
-
]);
|
|
43
|
-
} else {
|
|
44
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
45
|
-
}
|
|
28
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
46
29
|
});
|
|
47
30
|
|
|
48
31
|
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', () => {
|
|
@@ -94,21 +77,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
94
77
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
|
95
78
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
96
79
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
97
|
-
|
|
98
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
99
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
100
|
-
{
|
|
101
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
102
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
106
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
107
|
-
}
|
|
108
|
-
]);
|
|
109
|
-
} else {
|
|
110
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
111
|
-
}
|
|
80
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
112
81
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
113
82
|
/*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')
|
|
114
83
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -128,21 +97,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
128
97
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
129
98
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
130
99
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
131
|
-
|
|
132
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
133
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
134
|
-
{
|
|
135
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
136
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
140
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
141
|
-
}
|
|
142
|
-
]);
|
|
143
|
-
} else {
|
|
144
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
145
|
-
}
|
|
100
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
146
101
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
147
102
|
/*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, correct/incorrect status message and correct answer section should not be displayed')
|
|
148
103
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -162,21 +117,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
162
117
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
163
118
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
164
119
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
165
|
-
|
|
166
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
167
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
168
|
-
{
|
|
169
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
170
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
174
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
175
|
-
}
|
|
176
|
-
]);
|
|
177
|
-
} else {
|
|
178
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
179
|
-
}
|
|
120
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
180
121
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
181
122
|
/*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 correct/incorrect status message and correct answer section should not be displayed')
|
|
182
123
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -196,21 +137,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
196
137
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
197
138
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
198
139
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
199
|
-
|
|
200
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
201
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
202
|
-
{
|
|
203
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
204
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
208
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
209
|
-
}
|
|
210
|
-
]);
|
|
211
|
-
} else {
|
|
212
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
213
|
-
}
|
|
140
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
214
141
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
215
142
|
/*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 alternative responses, incorrect icon should be displayed beside correct accordion responses correct/incorrect status message and correct answer section should not be displayed')
|
|
216
143
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -230,21 +157,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
230
157
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
231
158
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
|
232
159
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
233
|
-
|
|
234
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
235
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
236
|
-
{
|
|
237
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
238
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
242
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
243
|
-
}
|
|
244
|
-
]);
|
|
245
|
-
} else {
|
|
246
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
247
|
-
}
|
|
160
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
248
161
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
162
|
/*cy.log('When the user has attempted the question with common response between 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, correct/incorrect status message and correct answer section should not be displayed')
|
|
250
163
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -264,21 +177,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
264
177
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
265
178
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
266
179
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
267
|
-
|
|
268
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
269
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
270
|
-
{
|
|
271
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
272
|
-
points: ['(15 points)', '(6 points)', '(5 points)', '(4 points)'],
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
276
|
-
points: ['(15 points)', '(7 points)', '(5 point)', '(3 points)'],
|
|
277
|
-
}
|
|
278
|
-
]);
|
|
279
|
-
} else {
|
|
280
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
281
|
-
}
|
|
180
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
282
181
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
283
182
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response, correct/incorrect status message and correct answer section should not be displayed')
|
|
284
183
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -305,21 +204,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
305
204
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
306
205
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
307
206
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
308
|
-
|
|
309
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
310
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
311
|
-
{
|
|
312
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
313
|
-
points: ['(15 points)', '(4.1 points)', '(5.4 points)', '(5.5 points)'],
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
correctAnswers: [['Petals'],['Leaves'],['Branch']],
|
|
317
|
-
points: ['(11 points)', '(12.6 points)', '(1.2 point)', '(1.2 points)'],
|
|
318
|
-
}
|
|
319
|
-
]);
|
|
320
|
-
} else {
|
|
321
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
322
|
-
}
|
|
207
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
323
208
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
324
209
|
/*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with response area numeration should be displayed')
|
|
325
210
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { fillInTheGapsTextPage } from "../../../../pages";
|
|
2
|
-
import { showAlternativeAnswersComponent } from "../../../../pages/components";
|
|
3
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
4
3
|
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
6
|
-
|
|
7
4
|
describe('Create item page - Fill in the gaps with text: Partial different weights', () => {
|
|
8
5
|
before(() => {
|
|
9
6
|
cy.loginAs('admin');
|
|
@@ -28,21 +25,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
28
25
|
it('When the user selects \'Grading\' view without attempting the question, response area numeration should be displayed, correct answers section should be displayed with correct answers from the correct accordion and respective response area numeration', () => {
|
|
29
26
|
fillInTheGapsTextPage.steps.switchToGradingView();
|
|
30
27
|
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
|
31
|
-
|
|
32
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
33
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
34
|
-
{
|
|
35
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
36
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
40
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
41
|
-
}
|
|
42
|
-
]);
|
|
43
|
-
} else {
|
|
44
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
45
|
-
}
|
|
28
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
46
29
|
});
|
|
47
30
|
|
|
48
31
|
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', () => {
|
|
@@ -94,21 +77,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
94
77
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
|
95
78
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
96
79
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
97
|
-
|
|
98
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
99
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
100
|
-
{
|
|
101
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
102
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
106
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
107
|
-
}
|
|
108
|
-
]);
|
|
109
|
-
} else {
|
|
110
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
111
|
-
}
|
|
80
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
112
81
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
113
82
|
/*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')
|
|
114
83
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -128,21 +97,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
128
97
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
129
98
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
130
99
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
131
|
-
|
|
132
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
133
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
134
|
-
{
|
|
135
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
136
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
140
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
141
|
-
}
|
|
142
|
-
]);
|
|
143
|
-
} else {
|
|
144
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
145
|
-
}
|
|
100
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
146
101
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
147
102
|
/*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 correct/incorrect status message and correct answer section should not be displayed')
|
|
148
103
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -162,21 +117,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
162
117
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
163
118
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
164
119
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
165
|
-
|
|
166
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
167
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
168
|
-
{
|
|
169
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
170
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
174
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
175
|
-
}
|
|
176
|
-
]);
|
|
177
|
-
} else {
|
|
178
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
179
|
-
}
|
|
120
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
180
121
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
181
122
|
/*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 should be displayed beside empty responses correct/incorrect status message and correct answer section should not be displayed')
|
|
182
123
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -196,21 +137,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
196
137
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
197
138
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
198
139
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
199
|
-
|
|
200
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
201
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
202
|
-
{
|
|
203
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
204
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
208
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
209
|
-
}
|
|
210
|
-
]);
|
|
211
|
-
} else {
|
|
212
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
213
|
-
}
|
|
140
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
214
141
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
215
142
|
/*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 should be displayed beside empty responses correct/incorrect status message and correct answer section should not be displayed')
|
|
216
143
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -230,21 +157,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
230
157
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
231
158
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
|
232
159
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
233
|
-
|
|
234
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
235
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
236
|
-
{
|
|
237
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
238
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
242
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
243
|
-
}
|
|
244
|
-
]);
|
|
245
|
-
} else {
|
|
246
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
247
|
-
}
|
|
160
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
248
161
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
162
|
/*cy.log('When the user has attempted the question with common response between 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 correct/incorrect status message and correct answer section should not be displayed')
|
|
250
163
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -264,21 +177,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
264
177
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
265
178
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
|
266
179
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
267
|
-
|
|
268
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
269
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
270
|
-
{
|
|
271
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
272
|
-
points: ['(15 points)', '(6 points)', '(4 points)', '(5 points)'],
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
correctAnswers: [['Petals'],['Leaves'],['Stem']],
|
|
276
|
-
points: ['(13 points)', '(7 points)', '(1 point)', '(5 points)'],
|
|
277
|
-
}
|
|
278
|
-
]);
|
|
279
|
-
} else {
|
|
280
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
281
|
-
}
|
|
180
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
282
181
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
283
182
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response correct/incorrect status message and correct answer section should not be displayed')
|
|
284
183
|
fillInTheGapsTextPage.steps.checkAnswer();
|
|
@@ -305,21 +204,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
|
305
204
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
|
306
205
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
|
307
206
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
308
|
-
|
|
309
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
310
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
|
|
311
|
-
{
|
|
312
|
-
correctAnswers: [['Flower'],['Leaf'],['Stem']],
|
|
313
|
-
points: ['(23 points)', '(11.4 points)', '(1.2 points)', '(10.4 points)'],
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
correctAnswers: [['Petals'],['Leaves'],['Branch']],
|
|
317
|
-
points: ['(5 points)', '(1.2 points)', '(2.2 point)', '(1.6 points)'],
|
|
318
|
-
}
|
|
319
|
-
]);
|
|
320
|
-
} else {
|
|
321
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
322
|
-
}
|
|
207
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
|
323
208
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
324
209
|
/*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on the \'Check answer\' button, correct icon icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
325
210
|
fillInTheGapsTextPage.steps.checkAnswer();
|