itemengine-cypress-automation 1.0.82 → 1.0.83
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsBasic.js +0 -160
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/manuallyAndNonScoredEditTab.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/switchingCasesBetweenOptionsLayout.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialDifferentWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/editTabScoringSection.js +10 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/specifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +7 -6
- package/package.json +1 -1
@@ -16,7 +16,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
16
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
17
17
|
abortEarlySetup();
|
18
18
|
before(() => {
|
19
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
19
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -54,7 +54,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
54
54
|
before(() => {
|
55
55
|
switch (view) {
|
56
56
|
case 'Question preview':
|
57
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
57
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
58
58
|
cy.barsPreLoaderWait();
|
59
59
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
60
60
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -235,7 +235,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
235
235
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
236
236
|
abortEarlySetup();
|
237
237
|
before(() => {
|
238
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
238
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
239
239
|
cy.barsPreLoaderWait();
|
240
240
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
241
241
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -12,7 +12,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
|
|
12
12
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
|
|
11
11
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -12,7 +12,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
|
|
12
12
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -12,7 +12,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Manual
|
|
12
12
|
describe('Question Preview: Manually Scored', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -45,7 +45,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Manual
|
|
45
45
|
describe('Question Preview: Non Scored', () => {
|
46
46
|
abortEarlySetup();
|
47
47
|
before(() => {
|
48
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
48
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
49
49
|
cy.barsPreLoaderWait();
|
50
50
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
51
51
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -12,7 +12,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
12
12
|
describe('Question preview: Auto scored - Partial different weights - When \'Alternative answer\' points are more than \'Correct answer\' points', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -271,164 +271,4 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Partia
|
|
271
271
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-4, 10.5);
|
272
272
|
});
|
273
273
|
});
|
274
|
-
|
275
|
-
describe.only('Question preview: Auto scored - Partial different weights: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
|
276
|
-
abortEarlySetup();
|
277
|
-
before(() => {
|
278
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
279
|
-
cy.barsPreLoaderWait();
|
280
|
-
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
281
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
282
|
-
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
|
283
|
-
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
284
|
-
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
285
|
-
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
286
|
-
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Flower']);
|
287
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Flower': 1, 'Leaves': 2 });
|
288
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
289
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 5 });
|
290
|
-
fillInTheGapsOverImageDragAndDropPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
291
|
-
});
|
292
|
-
|
293
|
-
//Penalty points for the entire question
|
294
|
-
it('When the user sets penalty scoring to \'Penalty points for the entire question\', allots penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
295
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandPenaltyScoringDropdown();
|
296
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for the entire question');
|
297
|
-
fillInTheGapsOverImageDragAndDropPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
|
298
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotPenaltyPoints(4);
|
299
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
300
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
301
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-4, 20);
|
302
|
-
});
|
303
|
-
|
304
|
-
it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
|
305
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
306
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1 });
|
307
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(5, 20);
|
308
|
-
});
|
309
|
-
|
310
|
-
it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points should get deducted from the awarded points only once, the deducted penalty points should not increase as per number of attempted incorrect responses', () => {
|
311
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
312
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1, 'Flower': 2 });
|
313
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(5, 20);
|
314
|
-
});
|
315
|
-
|
316
|
-
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
317
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
318
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
319
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
320
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotMinimumPoints(3);
|
321
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
322
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
323
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(3, 20);
|
324
|
-
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
325
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
326
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
327
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
328
|
-
});
|
329
|
-
|
330
|
-
//Penalty points for each incorrect dropzone - Specify total penalty points
|
331
|
-
it('When the user sets penalty scoring to \'Penalty points for each incorrect dropzone\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
332
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandPenaltyScoringDropdown();
|
333
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect dropzone');
|
334
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotTotalPenaltyPoints(4);
|
335
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
336
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
337
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-1.33, 20);
|
338
|
-
});
|
339
|
-
|
340
|
-
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
341
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
342
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1 });
|
343
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(7.67, 20);
|
344
|
-
});
|
345
|
-
|
346
|
-
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect dropzone should get deducted from the awarded points', () => {
|
347
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
348
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1, 'Flower': 2 });
|
349
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(7.67, 20);
|
350
|
-
});
|
351
|
-
|
352
|
-
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
353
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
354
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
355
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
356
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotMinimumPoints(3);
|
357
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
358
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
359
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(3, 20);
|
360
|
-
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
361
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
362
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
363
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
364
|
-
});
|
365
|
-
|
366
|
-
//Penalty points for each incorrect dropzone - Specify points for each incorrect dropzone
|
367
|
-
it('When the user has set penalty scoring to \'Penalty points for each incorrect dropzone\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
368
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectPenaltyPointsForEachIncorrectDropzone();
|
369
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotPenaltyPointsForEachIncorrectDropzone(4);
|
370
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
371
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
372
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-4, 20);
|
373
|
-
});
|
374
|
-
|
375
|
-
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
376
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
377
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1 });
|
378
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(5, 20);
|
379
|
-
});
|
380
|
-
|
381
|
-
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
382
|
-
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
383
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 1, 'Flower': 2 });
|
384
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(1, 20);
|
385
|
-
});
|
386
|
-
|
387
|
-
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
388
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
389
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
390
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
391
|
-
fillInTheGapsOverImageDragAndDropPage.steps.allotMinimumPoints(3);
|
392
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
393
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
394
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(3, 20);
|
395
|
-
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
396
|
-
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
397
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
398
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
399
|
-
});
|
400
|
-
|
401
|
-
//Penalty points for each incorrect option - Automatically set penalty for each incorrect dropzone to total points / no. of incorrect dropzone
|
402
|
-
// it('When the user has set penalty scoring to \'Penalty points for each incorrect dropzone\', and checks \'Automatically set penalty for each incorrect dropzone to total points / no. of incorrect dropzone\' checkbox and attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
403
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
404
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
405
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
406
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-3.33, 20);
|
407
|
-
// });
|
408
|
-
|
409
|
-
// it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
410
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
411
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
412
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
413
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(6.67, 20);
|
414
|
-
// });
|
415
|
-
|
416
|
-
// it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
417
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
418
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
419
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
420
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
421
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(3.34, 20);
|
422
|
-
// });
|
423
|
-
|
424
|
-
// it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
425
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
426
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.expandMinimumScoringDropdown();
|
427
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
428
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.allotMinimumPoints(3);
|
429
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
430
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
431
|
-
// fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(3, 20);
|
432
|
-
// });
|
433
|
-
});
|
434
274
|
});
|
@@ -12,7 +12,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
12
12
|
describe('Question preview: Auto scored - Partial different weight - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -12,7 +12,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
12
12
|
describe('Question preview: Auto scored - Partial different weights - When \'Correct answer\' points are greater than \'Alternative answer\' points', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -10,7 +10,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Partia
|
|
10
10
|
describe('Auto scored - Partial equal weights', () => {
|
11
11
|
abortEarlySetup();
|
12
12
|
before(() => {
|
13
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
13
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Partia
|
|
120
120
|
describe('Question preview: Auto scored - Partial equal weights: Minimum scoring', () => {
|
121
121
|
abortEarlySetup();
|
122
122
|
before(() => {
|
123
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
123
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
124
124
|
cy.barsPreLoaderWait();
|
125
125
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
126
126
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
11
11
|
describe('Question preview: Auto scored - Partial equal weights - When \'Alternative\' points are more than \'Correct\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
11
11
|
describe('Question preview: Auto scored - Partial equal weights with alternative answer - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
11
11
|
describe('Question preview: Auto scored - Partial equal weights with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -30,7 +30,7 @@ describe('Create item page - Drag and drop into categories - Check answer functi
|
|
30
30
|
before(() => {
|
31
31
|
switch (view) {
|
32
32
|
case 'Question preview':
|
33
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
33
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
34
34
|
cy.barsPreLoaderWait();
|
35
35
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
36
36
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -12,7 +12,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
12
12
|
describe('Draggable options and Draggable options layout dropdown', () => {
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
15
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
});
|
18
18
|
|
@@ -22,7 +22,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
22
22
|
describe('Standard options layout - Edit tab section contents', () => {
|
23
23
|
abortEarlySetup();
|
24
24
|
before(() => {
|
25
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
25
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
26
26
|
cy.barsPreLoaderWait();
|
27
27
|
});
|
28
28
|
|
@@ -60,7 +60,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
60
60
|
describe('Standard options layout - Specify correct answer section contents', () => {
|
61
61
|
abortEarlySetup();
|
62
62
|
before(() => {
|
63
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
63
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
64
64
|
cy.barsPreLoaderWait();
|
65
65
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
66
66
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -85,7 +85,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
85
85
|
describe('Standard options layout - Preview tab contents', () => {
|
86
86
|
abortEarlySetup();
|
87
87
|
before(() => {
|
88
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
88
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
89
89
|
cy.barsPreLoaderWait();
|
90
90
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
91
91
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -100,7 +100,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
100
100
|
describe('Grouped options layout - Edit tab section contents', () => {
|
101
101
|
abortEarlySetup();
|
102
102
|
before(() => {
|
103
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
103
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
104
104
|
cy.barsPreLoaderWait();
|
105
105
|
});
|
106
106
|
|
@@ -150,7 +150,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
150
150
|
describe('Grouped options layout - Specify correct answer section contents', () => {
|
151
151
|
abortEarlySetup();
|
152
152
|
before(() => {
|
153
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
153
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
154
154
|
cy.barsPreLoaderWait();
|
155
155
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
156
156
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -183,7 +183,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
183
183
|
describe('Grouped options layout - Preview tab contents', () => {
|
184
184
|
abortEarlySetup();
|
185
185
|
before(() => {
|
186
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
186
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
187
187
|
cy.barsPreLoaderWait();
|
188
188
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
189
189
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
@@ -11,7 +11,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
11
11
|
describe('Scoring section contents', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
});
|
17
17
|
|
@@ -23,7 +23,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
23
23
|
describe('Auto scored: All or nothing scoring - Scoring section', () => {
|
24
24
|
abortEarlySetup();
|
25
25
|
before(() => {
|
26
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
26
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
27
27
|
cy.barsPreLoaderWait();
|
28
28
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
|
29
29
|
});
|
@@ -36,7 +36,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
36
36
|
describe('Auto scored: All or nothing scoring - Specify correct answer section', () => {
|
37
37
|
abortEarlySetup();
|
38
38
|
before(() => {
|
39
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
39
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
40
40
|
cy.barsPreLoaderWait();
|
41
41
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
42
42
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -57,7 +57,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
57
57
|
describe('Auto scored: Partial - equal weights scoring - Scoring section', () => {
|
58
58
|
abortEarlySetup();
|
59
59
|
before(() => {
|
60
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
60
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
61
61
|
cy.barsPreLoaderWait();
|
62
62
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
63
63
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -86,7 +86,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
86
86
|
describe('Auto scored: Partial - equal weights scoring - Specify correct answer section', () => {
|
87
87
|
abortEarlySetup();
|
88
88
|
before(() => {
|
89
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
89
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
90
90
|
cy.barsPreLoaderWait();
|
91
91
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
92
92
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -162,7 +162,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
162
162
|
describe('Auto scored: Partial - different weights scoring - Scoring section', () => {
|
163
163
|
abortEarlySetup();
|
164
164
|
before(() => {
|
165
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
165
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
166
166
|
cy.barsPreLoaderWait();
|
167
167
|
cy.barsPreLoaderWait();
|
168
168
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
@@ -193,7 +193,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
193
193
|
describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
|
194
194
|
abortEarlySetup();
|
195
195
|
before(() => {
|
196
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
196
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
197
197
|
cy.barsPreLoaderWait();
|
198
198
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
199
199
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -11,7 +11,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
11
11
|
abortEarlySetup();
|
12
12
|
before(() => {
|
13
13
|
cy.log('Add question instructions and options');
|
14
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
16
16
|
});
|
17
17
|
|
@@ -33,7 +33,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
33
33
|
describe('Non scored scoring - Scoring section', () => {
|
34
34
|
abortEarlySetup();
|
35
35
|
before(() => {
|
36
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
36
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
37
37
|
cy.barsPreLoaderWait();
|
38
38
|
});
|
39
39
|
|
@@ -48,7 +48,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
48
48
|
describe('Non scored scoring - Specify correct answer section', () => {
|
49
49
|
abortEarlySetup();
|
50
50
|
before(() => {
|
51
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
51
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
52
52
|
cy.barsPreLoaderWait();
|
53
53
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
54
54
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -18,7 +18,7 @@ describe('Preview tab contents for all views', () => {
|
|
18
18
|
switch (view) {
|
19
19
|
case 'Question preview':
|
20
20
|
cy.log('Navigating to Fill in the gaps over image - drag and drop question type');
|
21
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
21
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
22
22
|
cy.barsPreLoaderWait();
|
23
23
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
|
24
24
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -10,7 +10,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop: Spe
|
|
10
10
|
describe('Specify correct answer section - \'Correct\' accordion', () => {
|
11
11
|
abortEarlySetup();
|
12
12
|
before(() => {
|
13
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
13
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
16
16
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -46,7 +46,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop: Spe
|
|
46
46
|
describe('Specify correct answer section - \'Alternative\' accordion', () => {
|
47
47
|
abortEarlySetup();
|
48
48
|
before(() => {
|
49
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
49
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
50
50
|
cy.barsPreLoaderWait();
|
51
51
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
52
52
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -13,7 +13,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
13
13
|
describe('Randomize options : Edit tab', () => {
|
14
14
|
abortEarlySetup();
|
15
15
|
before(() => {
|
16
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
16
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
17
17
|
cy.barsPreLoaderWait();
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
19
19
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -53,7 +53,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
53
53
|
let optionsArray = [];
|
54
54
|
abortEarlySetup();
|
55
55
|
before(() => {
|
56
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
56
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
57
57
|
cy.barsPreLoaderWait();
|
58
58
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
59
59
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -104,7 +104,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
104
104
|
describe('Enable outer border : Edit tab', () => {
|
105
105
|
abortEarlySetup();
|
106
106
|
before(() => {
|
107
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
107
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
108
108
|
cy.barsPreLoaderWait();
|
109
109
|
});
|
110
110
|
|
@@ -114,7 +114,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
114
114
|
describe('Enable outer border : Preview tab', () => {
|
115
115
|
abortEarlySetup();
|
116
116
|
before(() => {
|
117
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
117
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
118
118
|
cy.barsPreLoaderWait();
|
119
119
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
120
120
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -156,7 +156,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
156
156
|
describe('Allow multiple instances of same draggable option : Edit tab', () => {
|
157
157
|
abortEarlySetup();
|
158
158
|
before(() => {
|
159
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
159
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
160
160
|
cy.barsPreLoaderWait();
|
161
161
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
162
162
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -210,7 +210,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
210
210
|
describe('Allow multiple instances of same draggable option : Preview tab', () => {
|
211
211
|
abortEarlySetup();
|
212
212
|
before(() => {
|
213
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
213
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
214
214
|
cy.barsPreLoaderWait();
|
215
215
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
216
216
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -254,7 +254,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
254
254
|
|
255
255
|
describe('Allow multiple instances of same draggable option - Scoring', () => {
|
256
256
|
before(() => {
|
257
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
257
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
258
258
|
cy.barsPreLoaderWait();
|
259
259
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
260
260
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -282,7 +282,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
282
282
|
describe('Allow students to check answer: Edit tab', () => {
|
283
283
|
abortEarlySetup();
|
284
284
|
before(() => {
|
285
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
285
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
286
286
|
cy.barsPreLoaderWait();
|
287
287
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
288
288
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -309,7 +309,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
309
309
|
describe('Allow students to check answer: Preview tab', () => {
|
310
310
|
abortEarlySetup();
|
311
311
|
before(() => {
|
312
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
312
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
313
313
|
cy.barsPreLoaderWait();
|
314
314
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
315
315
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -378,7 +378,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
378
378
|
const defaultListOptions = ['None', '1', '2']
|
379
379
|
abortEarlySetup();
|
380
380
|
before(() => {
|
381
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
381
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
382
382
|
cy.barsPreLoaderWait();
|
383
383
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
384
384
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -482,7 +482,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
482
482
|
describe('Maximum capacity per dropzone and Show students the dropzone limits: Preview tab', () => {
|
483
483
|
abortEarlySetup();
|
484
484
|
before(() => {
|
485
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
485
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
486
486
|
cy.barsPreLoaderWait();
|
487
487
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
488
488
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/switchingCasesBetweenOptionsLayout.js
CHANGED
@@ -13,7 +13,7 @@ describe('Create Item Page: Fill in the gaps over image with drag and drop: Swit
|
|
13
13
|
describe('Fill in the gaps over image with drag and drop: Switching cases between \'Standard\' and \'Grouped\' options layout: \'Response Options section\'', () => {
|
14
14
|
abortEarlySetup();
|
15
15
|
before(() => {
|
16
|
-
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
16
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
17
17
|
cy.barsPreLoaderWait();
|
18
18
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
19
19
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
|
|
11
11
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Alternative answer\' points are more than \'Correct answer\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
|
|
9
9
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
|
|
11
11
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page -Fill in the gaps over image with text: All or nothin
|
|
9
9
|
describe('Question preview: Auto scored - All or nothing: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -10,7 +10,7 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
10
10
|
describe('Question Preview: Manually Scored', () => {
|
11
11
|
abortEarlySetup();
|
12
12
|
before(() => {
|
13
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
13
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('fill in the gaps');
|
16
16
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -36,7 +36,7 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
36
36
|
describe('Question Preview: Non Scored', () => {
|
37
37
|
abortEarlySetup();
|
38
38
|
before(() => {
|
39
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
39
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
40
40
|
cy.barsPreLoaderWait();
|
41
41
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('fill in the gaps');
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
9
9
|
describe('Question preview: Auto scored - Partial different weights - When \'Alternative answer\' points are more than \'Correct answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
9
9
|
describe('Auto scored - Partial different weights', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -94,7 +94,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
94
94
|
describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
|
95
95
|
abortEarlySetup();
|
96
96
|
before(() => {
|
97
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
97
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
98
98
|
cy.barsPreLoaderWait();
|
99
99
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
100
100
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -157,7 +157,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
157
157
|
describe('Question preview: Auto scored - Partial different weights: Rounding', () => {
|
158
158
|
abortEarlySetup();
|
159
159
|
before(() => {
|
160
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
160
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
161
161
|
cy.barsPreLoaderWait();
|
162
162
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
163
163
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
9
9
|
describe('Question preview: Auto scored - Partial different weight - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
9
9
|
describe('Question preview: Auto scored - Partial different weights - When \'Correct answer\' points are greater than \'Alternative answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
9
9
|
describe('Auto scored - Partial equal weights', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -96,7 +96,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
96
96
|
describe('Question preview: Auto scored - Partial equal weights: Minimum scoring', () => {
|
97
97
|
abortEarlySetup();
|
98
98
|
before(() => {
|
99
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
99
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
100
100
|
cy.barsPreLoaderWait();
|
101
101
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
102
102
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
9
9
|
describe('Question preview: Auto scored - Partial equal weights - When \'Alternative\' points are more than \'Correct\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -172,11 +172,11 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
172
172
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
173
173
|
});
|
174
174
|
|
175
|
-
it
|
175
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer label and its border should not be displayed and correct answer container should be displayed with correct accordion answers for the responses marked incorrect', () => {
|
176
176
|
cy.log('Pre-step: Switching to Edit tab and allotting points to alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
|
177
177
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
178
|
-
|
179
|
-
fillInTheGapsOverImageTextPage.steps.allotPoints(23);
|
178
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 2, responseText: 'Branch' }]);
|
179
|
+
fillInTheGapsOverImageTextPage.steps.allotPoints(23);
|
180
180
|
fillInTheGapsOverImageTextPage.steps.expandCorrectAnswerAccordion();
|
181
181
|
fillInTheGapsOverImageTextPage.steps.allotPoints(5);
|
182
182
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
9
9
|
describe('Question preview: Auto scored - Partial equal weights with alternative answer - When \'Correct answer\' points are equal to \'Alternative answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
9
9
|
describe('Question preview: Auto scored - Partial equal weights with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -15,7 +15,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
15
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
16
16
|
abortEarlySetup();
|
17
17
|
before(() => {
|
18
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
18
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
21
21
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -49,7 +49,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
49
49
|
before(() => {
|
50
50
|
switch (view) {
|
51
51
|
case 'Question preview':
|
52
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
52
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
53
53
|
cy.barsPreLoaderWait();
|
54
54
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
55
55
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -108,7 +108,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
108
108
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
109
109
|
};
|
110
110
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
|
111
|
-
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
|
111
|
+
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers:');
|
112
112
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Petals', 'Stem']);
|
113
113
|
});
|
114
114
|
|
@@ -182,7 +182,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
182
182
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
183
183
|
abortEarlySetup();
|
184
184
|
before(() => {
|
185
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
185
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
186
186
|
cy.barsPreLoaderWait();
|
187
187
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
188
188
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
package/cypress/e2e/ILC/FillInTheGapsOverImageText/checkAnswerFunctionalityForAllViews.smoke.js
CHANGED
@@ -30,7 +30,7 @@ describe('Create item page - Fill in the gaps over image - text - Check answer f
|
|
30
30
|
before(() => {
|
31
31
|
switch (view) {
|
32
32
|
case 'Question preview':
|
33
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
33
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
34
34
|
cy.barsPreLoaderWait();
|
35
35
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
36
36
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
11
11
|
describe('Scoring section contents', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
14
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
});
|
17
17
|
|
@@ -23,7 +23,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
23
23
|
describe('Auto scored: All or nothing scoring - Scoring section', () => {
|
24
24
|
abortEarlySetup();
|
25
25
|
before(() => {
|
26
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
26
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
27
27
|
cy.barsPreLoaderWait();
|
28
28
|
});
|
29
29
|
|
@@ -35,7 +35,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
35
35
|
describe('Auto scored: All or nothing scoring - Specify correct answer section', () => {
|
36
36
|
abortEarlySetup();
|
37
37
|
before(() => {
|
38
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
38
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
39
39
|
cy.barsPreLoaderWait();
|
40
40
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
41
41
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -51,7 +51,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
51
51
|
describe('Auto scored: Partial - equal weights scoring - Scoring section', () => {
|
52
52
|
abortEarlySetup();
|
53
53
|
before(() => {
|
54
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
54
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
55
55
|
cy.barsPreLoaderWait();
|
56
56
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
57
57
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -74,7 +74,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
74
74
|
describe('Auto scored: Partial - equal weights scoring - Specify correct answer section', () => {
|
75
75
|
abortEarlySetup();
|
76
76
|
before(() => {
|
77
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
77
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
78
78
|
cy.barsPreLoaderWait();
|
79
79
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
80
80
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -145,7 +145,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
145
145
|
describe('Auto scored: Partial - different weights scoring - Scoring section', () => {
|
146
146
|
abortEarlySetup();
|
147
147
|
before(() => {
|
148
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
148
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
149
149
|
cy.barsPreLoaderWait();
|
150
150
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
151
151
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -168,7 +168,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
168
168
|
describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
|
169
169
|
abortEarlySetup();
|
170
170
|
before(() => {
|
171
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
171
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
172
172
|
cy.barsPreLoaderWait();
|
173
173
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
174
174
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -221,7 +221,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
221
221
|
describe('Manually scored scoring - Scoring section', () => {
|
222
222
|
abortEarlySetup();
|
223
223
|
before(() => {
|
224
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
224
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
225
225
|
cy.barsPreLoaderWait();
|
226
226
|
});
|
227
227
|
|
@@ -247,7 +247,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
247
247
|
describe('Non scored scoring - Scoring section', () => {
|
248
248
|
abortEarlySetup();
|
249
249
|
before(() => {
|
250
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
250
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
251
251
|
cy.barsPreLoaderWait();
|
252
252
|
});
|
253
253
|
|
@@ -262,7 +262,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
262
262
|
describe('Non scored scoring - Specify correct answer section', () => {
|
263
263
|
abortEarlySetup();
|
264
264
|
before(() => {
|
265
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
265
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
266
266
|
cy.barsPreLoaderWait();
|
267
267
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
268
268
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -15,7 +15,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
15
15
|
before(() => {
|
16
16
|
switch (view) {
|
17
17
|
case 'Question preview':
|
18
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
18
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
21
21
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -10,7 +10,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
12
|
cy.log('Navigating to fill in the gaps over image - text question type');
|
13
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
13
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
16
16
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -26,7 +26,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
26
26
|
abortEarlySetup();
|
27
27
|
before(() => {
|
28
28
|
cy.log('Navigating to fill in the gaps over image - text question type');
|
29
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
29
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
30
30
|
cy.barsPreLoaderWait();
|
31
31
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
32
32
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -24,12 +24,13 @@ const selectors = {
|
|
24
24
|
answerInputFieldSpecifyCorrectAnswerSection: () => cy.get('.label-image-text-inline-text-field input'),
|
25
25
|
answerInputFieldPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .response-input-field input'),
|
26
26
|
correctAnswerSectionWrapper: () => cy.get('.cloze-with-text-correct-answer-wrapper'),
|
27
|
-
correctAnswersLabel: () => cy.get('.correct-
|
27
|
+
correctAnswersLabel: () => cy.get('.label-image-with-text-correct-answer-label'),
|
28
28
|
responseStatusWrapper: () => cy.get('.cloze-with-text-answer-status-response-preview-wrapper'),
|
29
29
|
tickIconWrapper: () => cy.get('.tick-icon-wrapper [data-name*="Rectangle"]'),
|
30
30
|
responseAreaNumeration: () => cy.get('.response-input-adornment'),
|
31
|
-
|
32
|
-
|
31
|
+
correctAnswerResponseNumeration: () => cy.get('.answer-numeration-number-box'),
|
32
|
+
correctAnswerResponseWrapper: () => cy.get('[class*="ClozeWithTextResponsestyles__AnswerCell"]'),
|
33
|
+
correctAnswerResponse: () => cy.get('[class*="AnswerWrapperForLabel"]')
|
33
34
|
}
|
34
35
|
|
35
36
|
const steps = {
|
@@ -145,7 +146,7 @@ const steps = {
|
|
145
146
|
fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab()
|
146
147
|
.each(($element, index) => {
|
147
148
|
cy.wrap($element)
|
148
|
-
.parents('.response-
|
149
|
+
.parents('.cloze-with-text-response-field-wrapper')
|
149
150
|
.within(() => {
|
150
151
|
utilities.verifyTextContent(fillInTheGapsOverImageTextPage.responseAreaNumeration(), `${index + 1}`);
|
151
152
|
});
|
@@ -163,9 +164,9 @@ const steps = {
|
|
163
164
|
fillInTheGapsOverImageTextPage.correctAnswerResponseWrapper()
|
164
165
|
.eq(index)
|
165
166
|
.within(() => {
|
166
|
-
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.
|
167
|
+
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswerResponseNumeration(), `${index + 1}`);
|
167
168
|
fillInTheGapsOverImageTextPage.correctAnswerResponse()
|
168
|
-
.should('have.
|
169
|
+
.should('have.text', correctAnswer);
|
169
170
|
});
|
170
171
|
});
|
171
172
|
},
|