itemengine-cypress-automation 1.0.47 → 1.0.50
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettings.js +1 -1139
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsBasic.js +202 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsCustomSpecialCharachters.js +120 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsMultilineResponse.js +189 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsResponseAccordions.js +431 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsStudentResponseAreaAndLayout.js +262 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingScoring.js +1 -763
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingWithAlternateAnswer.js +613 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingWithAlternateAnswerMatchFromAllResponsesTrue.js +172 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextConditionalCheckboxes.js +0 -154
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +1 -76
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextMatchFromAllResponses.js +162 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsScoring.js +0 -999
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswer.js +849 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswerMatchFromAllResponsesTrue.js +171 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsScoring.js +0 -885
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswer.js +738 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswerMatchFromAllResponsesTrue.js +168 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextSupportedFileTypes.js +86 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +246 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingCorrectPointsEqualToAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/ListOrdering/{listOrderingAllOrNothingScoring.js → ListOrderingScoringFiles/allOrNothingScoring.js} +3 -3
- package/cypress/e2e/ILC/ListOrdering/{listOrderingManuallyAndNonScoredScoring.js → ListOrderingScoringFiles/manuallyAndNonScoredScoring.js} +3 -3
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +316 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +287 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialDifferentWeightsScoring.js → ListOrderingScoringFiles/partialDifferentWeightsScoring.js} +3 -3
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +286 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +258 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +287 -0
- package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialEqualWeightsScoring.js → ListOrderingScoringFiles/partialEqualWeightsScoring.js} +3 -3
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +261 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingCorrectPointsEqualToAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/ListSorting/{listSortingAllOrNothingScoring.js → ListSortingScoringFiles/allOrNothingScoring.js} +3 -3
- package/cypress/e2e/ILC/ListSorting/{listSortingManuallyAndNonScoredScoring.js → ListSortingScoringFiles/manuallyAndNonScoredScoring.js} +3 -3
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +338 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +303 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +337 -0
- package/cypress/e2e/ILC/ListSorting/{listSortingPartialDifferentWeightsScoring.js → ListSortingScoringFiles/partialDifferentWeightsScoring.js} +3 -3
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +307 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +272 -0
- package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +307 -0
- package/cypress/e2e/ILC/ListSorting/{listSortingPartialEqualWeightsScoring.js → ListSortingScoringFiles/partialEqualWeightsScoring.js} +3 -3
- package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +242 -0
- package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +99 -0
- package/cypress/e2e/ILC/Passage/passageEditTab.js +241 -0
- package/cypress/e2e/ILC/Passage/passageHeaderSection.js +73 -0
- package/cypress/e2e/ILC/Passage/passagePreviewTab.js +246 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoringWithAlternateAnswer.js +0 -712
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoringWithAlternateAnswer.js +0 -895
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -807
- package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoringWithAlternateAnswer.js +0 -759
- package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoringWithAlternateTab.js +0 -952
- package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -860
@@ -2,7 +2,6 @@ import { fillInTheGapsOverImageTextPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
5
|
-
const alternateTabAnswerArray = ['Petals', 'Leaves', 'Stem'];
|
6
5
|
const incorrectAnswerArray = ['Roots', 'Branch', 'Seed'];
|
7
6
|
|
8
7
|
describe('Create item page - Fill in the gaps over image - text: Partial different weights scoring', () => {
|
@@ -158,1004 +157,6 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
158
157
|
});
|
159
158
|
});
|
160
159
|
|
161
|
-
describe('Question preview: AutoScored - Partial different weights with alternate answer (Match from all responses - false): When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
162
|
-
abortEarlySetup();
|
163
|
-
before(() => {
|
164
|
-
cy.log('Navigate to fill in the gaps over image - text question type');
|
165
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
166
|
-
cy.barsPreLoaderWait();
|
167
|
-
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
168
|
-
fillInTheGapsOverImageTextPage.steps.clickOnImagePopupOkButton();
|
169
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
170
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
171
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
172
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, correctTabAnswerArray[0]);
|
173
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, correctTabAnswerArray[1]);
|
174
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, correctTabAnswerArray[2]);
|
175
|
-
fillInTheGapsOverImageTextPage.steps.selectPartialDifferentWeightsCheckbox();
|
176
|
-
fillInTheGapsOverImageTextPage.steps.uncheckRoundDownScoreCheckbox();
|
177
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([8, 4, 4]);
|
178
|
-
fillInTheGapsOverImageTextPage.steps.addAlternateTab(1);
|
179
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, alternateTabAnswerArray[0]);
|
180
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, alternateTabAnswerArray[1]);
|
181
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, alternateTabAnswerArray[2]);
|
182
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([5, 6, 4]);
|
183
|
-
fillInTheGapsOverImageTextPage.steps.expandAdditonalSettings();
|
184
|
-
fillInTheGapsOverImageTextPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
185
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
186
|
-
});
|
187
|
-
|
188
|
-
it('The points displayed should be equal to correct answer points', () => {
|
189
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 16);
|
190
|
-
});
|
191
|
-
|
192
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
193
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
194
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
195
|
-
fillInTheGapsOverImageTextPage.steps.uncheckShowCorrectAnswerCheckbox();
|
196
|
-
});
|
197
|
-
|
198
|
-
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
199
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
200
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
201
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
202
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
203
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(16, 16);
|
204
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
205
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
206
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
207
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
208
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
209
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
210
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
211
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
212
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
213
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
214
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
215
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
216
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
217
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
218
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
219
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
220
|
-
});
|
221
|
-
|
222
|
-
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
223
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
224
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
225
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
226
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, alternateTabAnswerArray[2]);
|
227
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(15, 16);
|
228
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
229
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
230
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
231
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
232
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
233
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
234
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
235
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
236
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
237
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
238
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
239
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
240
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
241
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
242
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
243
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
244
|
-
});
|
245
|
-
|
246
|
-
it('When the user attempts the question partially correct exclusively according to the correct tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
247
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
248
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
249
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
250
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 16);
|
251
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
252
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
253
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
254
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
255
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
256
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
257
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
258
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
259
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
260
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
261
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
262
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
263
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
264
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
265
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
266
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
267
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
268
|
-
});
|
269
|
-
|
270
|
-
it('When the user attempts the question partially correct exclusively according to the alternate tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
271
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
272
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
273
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
274
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(5, 16);
|
275
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
276
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
277
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
278
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
279
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
280
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
281
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
282
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
283
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
284
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
285
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
286
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
287
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
288
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
289
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
290
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
291
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
292
|
-
});
|
293
|
-
|
294
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case correct tab\'s response and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
295
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
296
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
297
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
298
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 16);
|
299
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
300
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
301
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
302
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
303
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
304
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
305
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
306
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
307
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
308
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
309
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
310
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
311
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
312
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
313
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
314
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
315
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
316
|
-
});
|
317
|
-
|
318
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case alternate tab\'s response and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
319
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
320
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
321
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
322
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(5, 16);
|
323
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
324
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
325
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
326
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
327
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
328
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
329
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
330
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
331
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
332
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
333
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
334
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
335
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
336
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
337
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
338
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
339
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
340
|
-
});
|
341
|
-
|
342
|
-
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then user should be awarded with points of the tab with more points i.e. in this case correct tab and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
343
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
344
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
345
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(4, 16);
|
346
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
347
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
348
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
349
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
350
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
351
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
352
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
353
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
354
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
355
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
356
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
357
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
358
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
359
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
360
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
361
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
362
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
363
|
-
});
|
364
|
-
|
365
|
-
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct tab than the alternate tab but the score of the individual response selected from the alternate tab overpowers the combined score of the correct tab answers then on selecting \'Show correct answer\' checkbox, then points awarded should be of the alternate tab, green check-mark icons should be displayed for the alternate tab response, red cross-mark icon should be displayed for the correct tab responses, correct/incorrect answer label and its border should not be displayed and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
366
|
-
cy.log('Pre-step: Switching to \'Edit\' tab and updating the correct answers such that that are no common answers across both the tabs and allotting points to alternate tab such that the difference between the points is substantial and the points per response are in decimal')
|
367
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
368
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([2.2, 2.2, 6.6]);
|
369
|
-
fillInTheGapsOverImageTextPage.steps.clearResponseFieldSetCorrectAnswerSection(2);
|
370
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, 'Fruit');
|
371
|
-
fillInTheGapsOverImageTextPage.steps.switchToCorrectTab();
|
372
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([1.4, 1.4, 10.4]);
|
373
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
374
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
375
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
376
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, 'Fruit');
|
377
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(6.6, 13.2);
|
378
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
379
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
380
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
381
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
382
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
383
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
384
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1]], ['1', '2']);
|
385
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
386
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
387
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed for the alternate tab response, red cross-mark icon should be displayed for the correct tab responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
388
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
389
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
390
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
391
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
392
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
393
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
394
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
395
|
-
});
|
396
|
-
|
397
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all incorrect response fields, correct/incorrect answer label and its border should not be displayed and the correct answer container should be displayed with the correct responses from the correct tab', () => {
|
398
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
399
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
400
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
401
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[2]);
|
402
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 13.2);
|
403
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
404
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
405
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
406
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
407
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
408
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
409
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
410
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
411
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
412
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
413
|
-
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
414
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
415
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
416
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
417
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
418
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
419
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
420
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
421
|
-
});
|
422
|
-
});
|
423
|
-
|
424
|
-
describe('Question preview: Auto scored - Partial different weights with alternate answer (Match from all responses - false): When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
425
|
-
abortEarlySetup();
|
426
|
-
before(() => {
|
427
|
-
cy.log('Navigate to fill in the gaps over image - text question type');
|
428
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
429
|
-
cy.barsPreLoaderWait();
|
430
|
-
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
431
|
-
fillInTheGapsOverImageTextPage.steps.clickOnImagePopupOkButton();
|
432
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
433
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
434
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
435
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, correctTabAnswerArray[0]);
|
436
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, correctTabAnswerArray[1]);
|
437
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, correctTabAnswerArray[2]);
|
438
|
-
fillInTheGapsOverImageTextPage.steps.selectPartialDifferentWeightsCheckbox();
|
439
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([5, 6, 4]);
|
440
|
-
fillInTheGapsOverImageTextPage.steps.addAlternateTab(1);
|
441
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, alternateTabAnswerArray[0]);
|
442
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, alternateTabAnswerArray[1]);
|
443
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, alternateTabAnswerArray[2]);
|
444
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([8, 4, 4]);
|
445
|
-
fillInTheGapsOverImageTextPage.steps.expandAdditonalSettings();
|
446
|
-
fillInTheGapsOverImageTextPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
447
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
448
|
-
});
|
449
|
-
|
450
|
-
it('The points displayed should be equal to alternate answer points', () => {
|
451
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 16);
|
452
|
-
});
|
453
|
-
|
454
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the alternate tab', () => {
|
455
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
456
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['1', '2', '3']);
|
457
|
-
fillInTheGapsOverImageTextPage.steps.uncheckShowCorrectAnswerCheckbox();
|
458
|
-
});
|
459
|
-
|
460
|
-
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
461
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
462
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
463
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
464
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
465
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(15, 16);
|
466
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
467
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
468
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
469
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
470
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
471
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
472
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
473
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
474
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border and correct answer container should not be displayed')
|
475
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
476
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
477
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
478
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
479
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
480
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
481
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
482
|
-
});
|
483
|
-
|
484
|
-
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
485
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
486
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
487
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
488
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, alternateTabAnswerArray[2]);
|
489
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(16, 16);
|
490
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
491
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
492
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
493
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
494
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
495
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
496
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
497
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
498
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields,correct/incorrect answer label and its border and correct answer container should not be displayed')
|
499
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
500
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
501
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
502
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
503
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
504
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
505
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
506
|
-
});
|
507
|
-
|
508
|
-
it('When the user attempts the question partially correct exclusively according to the correct tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
509
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
510
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
511
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
512
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(5, 16);
|
513
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
514
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
515
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
516
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
517
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
518
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
519
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
520
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
521
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
522
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border and correct answer container should not be displayed')
|
523
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
524
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
525
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
526
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
527
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
528
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
529
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
530
|
-
});
|
531
|
-
|
532
|
-
it('When the user attempts the question partially correct exclusively according to the alternate tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
533
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
534
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
535
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
536
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 16);
|
537
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
538
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
539
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
540
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2)
|
541
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
542
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
543
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
544
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
545
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
546
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border and correct answer container should not be displayed')
|
547
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
548
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
549
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
550
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2)
|
551
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
552
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
553
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
554
|
-
});
|
555
|
-
|
556
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case alternate tab\'s response and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response field with alternate tab answer, red cross-mark icon should be displayed beside response field with correct tab answer, correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
557
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
558
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
559
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
560
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 16);
|
561
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
562
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
563
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
564
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
565
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
566
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
567
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
568
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
569
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and the correct answer container should not be displayed')
|
570
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
571
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
572
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
573
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
574
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
575
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
576
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
577
|
-
});
|
578
|
-
|
579
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case correct tab\'s response and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
580
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
581
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
582
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
583
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(5, 16);
|
584
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
585
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
586
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
587
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
588
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
589
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
590
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
591
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
592
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and the correct answer container should not be displayed')
|
593
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
594
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
595
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
596
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
597
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
598
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
599
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
600
|
-
});
|
601
|
-
|
602
|
-
//https://redmine.zeuslearning.com/issues/546170
|
603
|
-
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then user should be awarded with points of the tab with more points i.e. in this case alternate tab and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
604
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
605
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
606
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(4, 16);
|
607
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
608
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
609
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
610
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
611
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
612
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
613
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1]], ['1', '2']);
|
614
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
615
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
616
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border and correct answer container should not be displayed')
|
617
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
618
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
619
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
620
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
621
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
622
|
-
});
|
623
|
-
|
624
|
-
it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct tab but the score of the individual response selected from the correct tab overpowers the combined score of the alternate tab answers then on selecting \'Show correct answer\' checkbox, then points awarded should be of the correct tab, green check-mark icons should be displayed for the correct tab response, red cross-mark icon should be displayed for the alternate tab responses, and correct/incorrect answer label and its border should not be displayed and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
625
|
-
cy.log('Pre-step: Switching to \'Edit\' tab and updating the correct answers such that that are no common answers across both the tabs and allotting points to alternate tab such that the difference between the points is substantial and the points per response are in decimal')
|
626
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
627
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([1.4, 1.4, 10.4]);
|
628
|
-
fillInTheGapsOverImageTextPage.steps.switchToCorrectTab();
|
629
|
-
fillInTheGapsOverImageTextPage.steps.clearResponseFieldSetCorrectAnswerSection(2);
|
630
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, 'Fruit');
|
631
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([2.2, 2.2, 6.6]);
|
632
|
-
fillInTheGapsOverImageTextPage.steps.uncheckRoundDownScoreCheckbox();
|
633
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
634
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
635
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
636
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, 'Fruit');
|
637
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(6.6, 13.2);
|
638
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
639
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
640
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
641
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
642
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
643
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
644
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
645
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
646
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
647
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed for the correct tab response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border and correct answer container should not be displayed')
|
648
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
649
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
650
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
651
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
652
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
653
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
654
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
655
|
-
});
|
656
|
-
|
657
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all incorrect response fields, correct/incorrect answer label and its border should not be displayed and the correct answer container should be displayed with the correct responses from the alternate tab', () => {
|
658
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
659
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
660
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
661
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[2]);
|
662
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 13.2);
|
663
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
664
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
665
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
666
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
667
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
668
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
669
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
670
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['1', '2', '3']);
|
671
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
672
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
673
|
-
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
674
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
675
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
676
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
677
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
678
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
679
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
680
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
681
|
-
});
|
682
|
-
});
|
683
|
-
|
684
|
-
describe('Question preview: Auto scored - Partial different weights with alternate answer (Match from all responses - false): When \'Correct answer\' points is equal to \'Alternate answer\' points', () => {
|
685
|
-
abortEarlySetup();
|
686
|
-
before(() => {
|
687
|
-
cy.log('Navigate to fill in the gaps over image - text question type');
|
688
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
689
|
-
cy.barsPreLoaderWait();
|
690
|
-
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
691
|
-
fillInTheGapsOverImageTextPage.steps.clickOnImagePopupOkButton();
|
692
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
693
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
694
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
695
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, correctTabAnswerArray[0]);
|
696
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, correctTabAnswerArray[1]);
|
697
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, correctTabAnswerArray[2]);
|
698
|
-
fillInTheGapsOverImageTextPage.steps.selectPartialDifferentWeightsCheckbox();
|
699
|
-
fillInTheGapsOverImageTextPage.steps.uncheckRoundDownScoreCheckbox();
|
700
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([9, 3, 3]);
|
701
|
-
fillInTheGapsOverImageTextPage.steps.addAlternateTab(1);
|
702
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, alternateTabAnswerArray[0]);
|
703
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, alternateTabAnswerArray[1]);
|
704
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, alternateTabAnswerArray[2]);
|
705
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([8, 4, 3]);
|
706
|
-
fillInTheGapsOverImageTextPage.steps.expandAdditonalSettings();
|
707
|
-
fillInTheGapsOverImageTextPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
708
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
709
|
-
});
|
710
|
-
|
711
|
-
it('The points displayed should be equal to correct answer points', () => {
|
712
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 15);
|
713
|
-
});
|
714
|
-
|
715
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
716
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
717
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
718
|
-
fillInTheGapsOverImageTextPage.steps.uncheckShowCorrectAnswerCheckbox();
|
719
|
-
});
|
720
|
-
|
721
|
-
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
722
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
723
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
724
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
725
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
726
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(15, 15);
|
727
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
728
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
729
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
730
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
731
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
732
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
733
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
734
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
735
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
736
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
737
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
738
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
739
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
740
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
741
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
742
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
743
|
-
});
|
744
|
-
|
745
|
-
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed', () => {
|
746
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
747
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
748
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
749
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, alternateTabAnswerArray[2]);
|
750
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(15, 15);
|
751
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
752
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
753
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
754
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
755
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
756
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
757
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
758
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
759
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
760
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
761
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
762
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
763
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
764
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
765
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
766
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
767
|
-
});
|
768
|
-
|
769
|
-
it('When the user attempts the question partially correct exclusively according to the correct tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
770
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
771
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
772
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
773
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(9, 15);
|
774
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
775
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
776
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
777
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
778
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
779
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
780
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
781
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
782
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
783
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
784
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
785
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
786
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
787
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
788
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
789
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
790
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
791
|
-
});
|
792
|
-
|
793
|
-
it('When the user attempts the question partially correct exclusively according to the alternate tab, then points of the correctly attempted responses should be awarded and on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
794
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
795
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
796
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[1]);
|
797
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 15);
|
798
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
799
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
800
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
801
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
802
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
803
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
804
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
805
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
806
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
807
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
808
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
809
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
810
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
811
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
812
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
813
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
814
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
815
|
-
});
|
816
|
-
|
817
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case correct tab\'s response and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
818
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
819
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
820
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
821
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(9, 15);
|
822
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
823
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
824
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
825
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
826
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
827
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
828
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
829
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
830
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
831
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and the correct answer container should not be displayed')
|
832
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
833
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
834
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
835
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
836
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
837
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
838
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
839
|
-
});
|
840
|
-
|
841
|
-
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then user should be awarded with points of the response having more points i.e. in this case alternate tab\'s response and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response field with alternate tab answer, red cross-mark icon should be displayed beside response field with correct tab answer, correct/incorrect answer label and border should not be displayed below the question preview and correct answer container should be displayed with alternate tab answers for the responses marked incorrect', () => {
|
842
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
843
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
844
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
845
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(8, 15);
|
846
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
847
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
848
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
849
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
850
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
851
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
852
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
853
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
854
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
855
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response field with correct tab answer, red cross-mark icon should be displayed beside response field with alternate tab answer, correct/incorrect answer label and border should not be displayed below the question preview and the correct answer container should not be displayed')
|
856
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
857
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
858
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
859
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
860
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists;
|
861
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
862
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
863
|
-
});
|
864
|
-
|
865
|
-
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then user should be awarded with points specified for correct tab and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses and correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
866
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
867
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
868
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(3, 15);
|
869
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
870
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
871
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
872
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
873
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
874
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
875
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
876
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
877
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
878
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
879
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
880
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
881
|
-
fillInTheGapsOverImageTextPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
882
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
883
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
884
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
885
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
886
|
-
});
|
887
|
-
|
888
|
-
it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct tab but the score of the individual response selected from the correct tab overpowers the combined score of the alternate tab answers then on selecting \'Show correct answer\' checkbox, then points awarded should be of the correct tab, green check-mark icons should be displayed for the correct tab response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border should not be displayed and correct answer container should be displayed with correct tab answers for the responses marked incorrect', () => {
|
889
|
-
cy.log('Pre-step: Switching to \'Edit\' tab and updating the correct answers such that that are no common answers across both the tabs and allotting points to correct tab such that the difference between the points is substantial and the points per response are in decimal')
|
890
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
891
|
-
fillInTheGapsOverImageTextPage.steps.switchToCorrectTab();
|
892
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([12.6, 1.2, 1.2]);
|
893
|
-
fillInTheGapsOverImageTextPage.steps.clearResponseFieldSetCorrectAnswerSection(2);
|
894
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(2, 'Fruit');
|
895
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
896
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
897
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
898
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, alternateTabAnswerArray[2]);
|
899
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(12.6, 15);
|
900
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
901
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
902
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
903
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
904
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
905
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
906
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], 'Fruit'], ['2', '3']);
|
907
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
908
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
909
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
910
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
911
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
912
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
913
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
914
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
915
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
916
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
917
|
-
});
|
918
|
-
|
919
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all incorrect response fields, correct/incorrect answer label and its border should not be displayed and the correct answer container should be displayed with the correct responses from the correct tab', () => {
|
920
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
921
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
922
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
923
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, incorrectAnswerArray[2]);
|
924
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 15);
|
925
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
926
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
927
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
928
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
929
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
930
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
931
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
932
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
933
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
934
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
935
|
-
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
936
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
937
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
938
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
939
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
940
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
941
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
942
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
943
|
-
});
|
944
|
-
|
945
|
-
fillInTheGapsOverImageTextPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 15);
|
946
|
-
|
947
|
-
it('When user has defined penalty points', () => {
|
948
|
-
cy.log('Pre-step: Switch to edit tab, clear the minimum score if attempted points and set penalty points');
|
949
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
950
|
-
fillInTheGapsOverImageTextPage.steps.allotPenaltyPoints(3);
|
951
|
-
fillInTheGapsOverImageTextPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
952
|
-
|
953
|
-
cy.log('After switching to preview tab, when user adds an incorrect answer input, then 0 points should be awarded(no negative points)');
|
954
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
955
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
956
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 15);
|
957
|
-
|
958
|
-
cy.log('When user adds a partially correct answer input, the points should be updated accordingly with deducted penalty points');
|
959
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
960
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
961
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(3, 15);
|
962
|
-
});
|
963
|
-
|
964
|
-
it('When the user has alloted penalty points and attempts the question according to the alternate tab then user should be awarded with full points of the alternate tab and penalty points should not be deducted', () => {
|
965
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
966
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
967
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
968
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, 'Fruit');
|
969
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(15, 15);
|
970
|
-
});
|
971
|
-
|
972
|
-
it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
|
973
|
-
cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points');
|
974
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
975
|
-
fillInTheGapsOverImageTextPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
976
|
-
|
977
|
-
cy.log('Switch to preview tab and give incorrect answer input to check that minimum points are displayed');
|
978
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
979
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
980
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(1, 15);
|
981
|
-
|
982
|
-
cy.log('When user adds a partially correct answer such that the points of the attempt(with penalty points deducted) is more than the minimum score awarded(if attempted) points');
|
983
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
984
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(2, correctTabAnswerArray[2]);
|
985
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(3, 15);
|
986
|
-
|
987
|
-
cy.log('When user switches to edit tab and increases the minimum score awarded (if attempted) points to check the case for an attempt in which points of the attempt is less than minimum score awarded (if attempted) points, then the minimum score awarded (if attempted) points should be displayed to the user');
|
988
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
989
|
-
fillInTheGapsOverImageTextPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
990
|
-
fillInTheGapsOverImageTextPage.steps.allotMinimumScoreAwardedIfAttempted(9)
|
991
|
-
cy.log('Switching to preview tab');
|
992
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
993
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
994
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
995
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(9, 15);
|
996
|
-
});
|
997
|
-
});
|
998
|
-
|
999
|
-
describe('Question preview: Auto scored - Partial different weights with alternate answer (Match from all responses - true)', () => {
|
1000
|
-
abortEarlySetup();
|
1001
|
-
before(() => {
|
1002
|
-
cy.log('Navigate to fill in the gaps over image - text question type');
|
1003
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
1004
|
-
cy.barsPreLoaderWait();
|
1005
|
-
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
1006
|
-
fillInTheGapsOverImageTextPage.steps.clickOnImagePopupOkButton();
|
1007
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
1008
|
-
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
1009
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, correctTabAnswerArray[0]);
|
1010
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, correctTabAnswerArray[1]);
|
1011
|
-
fillInTheGapsOverImageTextPage.steps.selectPartialDifferentWeightsCheckbox();
|
1012
|
-
fillInTheGapsOverImageTextPage.steps.addPartialDifferentWeightsPoints([10, 4]);
|
1013
|
-
fillInTheGapsOverImageTextPage.steps.addAlternateTab(1);
|
1014
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, alternateTabAnswerArray[0]);
|
1015
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, alternateTabAnswerArray[1]);
|
1016
|
-
fillInTheGapsOverImageTextPage.steps.checkMatchFromAllResponsesCheckbox();
|
1017
|
-
fillInTheGapsOverImageTextPage.steps.expandAdditonalSettings();
|
1018
|
-
fillInTheGapsOverImageTextPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
1019
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
1020
|
-
});
|
1021
|
-
|
1022
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
1023
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1024
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
1025
|
-
fillInTheGapsOverImageTextPage.steps.uncheckShowCorrectAnswerCheckbox();
|
1026
|
-
});
|
1027
|
-
|
1028
|
-
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed', () => {
|
1029
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
1030
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
1031
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(14, 14);
|
1032
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1033
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1034
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1035
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1036
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1037
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1038
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1039
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response fields correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed')
|
1040
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1041
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1042
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1043
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1044
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1045
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1046
|
-
});
|
1047
|
-
|
1048
|
-
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed', () => {
|
1049
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
1050
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
1051
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
1052
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(14, 14);
|
1053
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1054
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1055
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1056
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1057
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1058
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1059
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1060
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response fields, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
1061
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1062
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1063
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1064
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1065
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1066
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1067
|
-
});
|
1068
|
-
|
1069
|
-
it('When the user attempts the question with partially correct responses exclusively from the correct tab, the user should be awarded points as per the correctly attempted response and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response field, red cross-mark icon should be displayed besides the incorrect response field, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
1070
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
1071
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
1072
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
1073
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(10, 14);
|
1074
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1075
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1076
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1077
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1078
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1079
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1]], ['2']);
|
1080
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1081
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1082
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response field, red cross-mark icon should be displayed besides the incorrect response field, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
1083
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1084
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1085
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1086
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1087
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1088
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1089
|
-
});
|
1090
|
-
|
1091
|
-
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, the user should be awarded points as per the correctly attempted response, and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response field, red cross-mark icon should be displayed besides the incorrect response field, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
1092
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
1093
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, alternateTabAnswerArray[0]);
|
1094
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
1095
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(10, 14);
|
1096
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1097
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1098
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1099
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1100
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1101
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1]], ['2']);
|
1102
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1103
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1104
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response field, red cross-mark icon should be displayed besides the incorrect response field, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
1105
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1106
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1107
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1108
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1109
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1110
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1111
|
-
});
|
1112
|
-
|
1113
|
-
it('When the user attempts the question with a combination of correct responses from correct tab and alternate tab, then the user should be awarded with full points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed', () => {
|
1114
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
1115
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
1116
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[1]);
|
1117
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(14, 14);
|
1118
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1119
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1120
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1121
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1122
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1123
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1124
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1125
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
1126
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1127
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1128
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1129
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1130
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1131
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1132
|
-
});
|
1133
|
-
|
1134
|
-
it('When the user attempts the question incorrectly, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, red cross-mark icon should be displayed beside response fields, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
1135
|
-
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
1136
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[1]);
|
1137
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, alternateTabAnswerArray[0]);
|
1138
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 14);
|
1139
|
-
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
1140
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1141
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1142
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1143
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1144
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
1145
|
-
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1146
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1147
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response fields, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
1148
|
-
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
1149
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1150
|
-
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1151
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectBorderNotExists();
|
1152
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1153
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
1154
|
-
});
|
1155
|
-
|
1156
|
-
fillInTheGapsOverImageTextPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 14);
|
1157
|
-
});
|
1158
|
-
|
1159
160
|
describe('Partial different weights: Round down score', () => {
|
1160
161
|
abortEarlySetup();
|
1161
162
|
before(() => {
|