itemengine-cypress-automation 1.0.571-scoring-fix-8676243.0 → 1.0.571-scoring-fix-97df000.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/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js
CHANGED
|
@@ -143,4 +143,84 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
|
143
143
|
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(2, 20);
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
|
+
|
|
147
|
+
describe('Auto scored - Partial equal weights when response container is deleted', () => {
|
|
148
|
+
abortEarlySetup();
|
|
149
|
+
before(() => {
|
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
|
151
|
+
cy.barsPreLoaderWait();
|
|
152
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
|
153
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
|
155
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
|
156
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(50);
|
|
157
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
|
158
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
|
159
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(2, optionsForDropdown2);
|
|
160
|
+
fillInTheGapsOverImageDropdownPage.steps.removeResponseArea(1);
|
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
|
166
|
+
//fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
|
167
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
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 and respective response area numeration', () => {
|
|
171
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(0, 10);
|
|
172
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
|
173
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
|
174
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownNumerationPreviewTab();
|
|
175
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
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 dropdowns, correct/incorrect status message should not be displayed and correct answer section with all correct answers along with numeration should be displayed', () => {
|
|
179
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
|
180
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(0, 10);
|
|
181
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
|
182
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
|
183
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
|
184
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
185
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
|
186
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
it('When the user attempts the question partially correct, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the correct dropdowns, incorrect icon should be displayed besides incorrect dropdowns, correct/incorrect status message should not be displayed and correct answer section with all correct answers along with numeration should be displayed', () => {
|
|
190
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
|
191
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
|
192
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(5, 10);
|
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
|
196
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
197
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
|
198
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
199
|
+
/*cy.log('When the user attempts the question partially correct and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message and correct answer section should not be displayed')
|
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
it('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/incorrect status message and correct answer section should not be displayed', () => {
|
|
208
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
|
209
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
|
210
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(10, 10);
|
|
211
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
|
212
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
|
213
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
|
214
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
|
215
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
216
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
217
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
218
|
+
/*cy.log('When user clicks on Check answer button after he attempts the question correctly, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
|
|
219
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
|
220
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
|
221
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
|
222
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
223
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
|
224
|
+
});
|
|
225
|
+
});
|
|
146
226
|
});
|