itemengine-cypress-automation 1.0.82 → 1.0.84

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +3 -3
  2. package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +30 -0
  3. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingForAllViews.smoke.js +3 -3
  5. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingGroupedScoring.js +158 -0
  6. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/manuallyAndNonScored.js +2 -2
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsBasic.js +3 -163
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsBasic.js +2 -2
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +43 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +510 -0
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +678 -0
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +7 -7
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +82 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/manuallyAndNonScoredEditTab.js +3 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +198 -0
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -1
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +2 -2
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +11 -11
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +263 -0
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/switchingCasesBetweenOptionsLayout.js +1 -1
  32. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  33. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
  34. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  35. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/allOrNothingPenaltyScoring.js +1 -1
  36. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/manuallyAndNonScored.js +2 -2
  37. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  38. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialDifferentWeightsBasic.js +3 -3
  39. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  40. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  41. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialEqualWeightsBasic.js +2 -2
  42. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  43. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  44. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +80 -0
  46. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/allOrNothingForAllViews.smoke.js +4 -4
  47. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  48. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/editTabScoringSection.js +10 -10
  49. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/previewContentsForAllViews.smoke.js +1 -1
  50. package/cypress/e2e/ILC/{FillInTheGapsOverImageText → FillInTheGapsOverImageTextNew}/specifyCorrectAnswerSection.js +2 -2
  51. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +2 -0
  52. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -0
  53. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +177 -171
  54. package/cypress/pages/components/backgroundImageUploadComponent.js +19 -3
  55. package/cypress/pages/components/draggableOptionContainer.js +13 -0
  56. package/cypress/pages/components/essayResponseCommonComponents.js +175 -25
  57. package/cypress/pages/components/figOverImageCanvasComponent.js +257 -0
  58. package/cypress/pages/components/imageActionsComponent.js +30 -0
  59. package/cypress/pages/components/index.js +5 -5
  60. package/cypress/pages/components/measuringToolComponent.js +0 -54
  61. package/cypress/pages/components/opacityComponent.js +64 -0
  62. package/cypress/pages/dragAndDropIntoCategoriesPage.js +16 -1
  63. package/cypress/pages/essayResponsePage.js +5 -7
  64. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +152 -11
  65. package/cypress/pages/fillInTheGapsOverImageTextPage.js +7 -6
  66. package/cypress/pages/protractorPage.js +3 -1
  67. package/cypress/pages/rulerPage.js +5 -24
  68. package/cypress/pages/selectQuestionResourceToolPage.js +1 -1
  69. package/package.json +1 -1
  70. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -0
  71. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -0
  72. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -0
  73. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/allOrNothingPenaltyScoring.js +0 -0
  74. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/manuallyAndNonScoredScoring.js +0 -0
  75. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +0 -0
  76. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perCorrectOptionBasic.js +0 -0
  77. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +0 -0
  78. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +0 -0
  79. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +0 -0
  80. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +0 -0
  81. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perDropzoneBasic.js +0 -0
  82. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +0 -0
  83. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +0 -0
  84. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/Scoring/perDropzoneMinimumAndPenaltyScoring.js +0 -0
  85. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/allOrNothingBasicForAllViews.smoke.js +0 -0
  86. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/checkAnswerFunctionalityForAllViews.smoke.js +0 -0
  87. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/clickAndDrop.js +0 -0
  88. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/draggableOptions.js +0 -0
  89. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/editTabBasicSection.js +0 -0
  90. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/editTabScoring.js +0 -0
  91. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/headerSection.js +0 -0
  92. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/manuallyAndNonScoredScoringEditTab.js +0 -0
  93. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -0
  94. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/previewContentsForAllViews.smoke.js +0 -0
  95. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/specifyCorrectAnswerSection.js +0 -0
  96. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/studentViewSettings.js +0 -0
  97. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/studentViewSettingsForGroupedLayout.js +0 -0
  98. /package/cypress/e2e/ILC/{DragAndDropIntoCategories → DragAndDropIntoCategoriesNew}/switchingCasesBetweenOptionsLayout.js +0 -0
@@ -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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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');
@@ -0,0 +1,82 @@
1
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
2
+ import { dialogBoxBase, fillInTheGapsOverImageDragAndDropPage } from "../../../pages";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const options = ['Flower', 'Leaves'];
5
+
6
+ describe('Create item page - Fill in the gaps over image - drag and drop: Header section and Saving question', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Header section contents', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
15
+ });
16
+
17
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Fill in the gaps over image with drag and drop');
18
+ });
19
+
20
+ describe('Tabs section', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
24
+ });
25
+
26
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyTabsSection();
27
+ });
28
+
29
+ describe('Cancel button', () => {
30
+ abortEarlySetup();
31
+ before(() => {
32
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
33
+ });
34
+
35
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyCancelButton('fill in the gaps over image - drag and drop')
36
+ });
37
+
38
+ describe('Save Question button', () => {
39
+ abortEarlySetup();
40
+ before(() => {
41
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
42
+ cy.barsPreLoaderWait();
43
+ });
44
+
45
+ describe('Validation error messages', () => {
46
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
+
48
+ it('Validation error messages should be displayed below required input fields', () => {
49
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsErrorMessage();
50
+ utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 1), 'Error: Image is required.');
51
+ utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 2), 'Error: Please insert a dropzone.');
52
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPointsFieldErrorMessage();
53
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(0);
54
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
55
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorMessage();
56
+ });
57
+
58
+ it('Validation error messages should disappear when required input fields are filled', () => {
59
+ fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in the correct dropzone');
60
+ fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(options);
61
+ fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
62
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
63
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
64
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
65
+ fillInTheGapsOverImageDragAndDropPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
66
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Leaves': 1 });
67
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
68
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
69
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
70
+ });
71
+
72
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyCreateItemWrapperContentsA11y();
73
+ });
74
+
75
+ describe('Saving a question', () => {
76
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
77
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
78
+ });
79
+ fillInTheGapsOverImageDragAndDropPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
80
+ });
81
+ });
82
+ });
@@ -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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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');
@@ -0,0 +1,198 @@
1
+ import { fillInTheGapsOverImageDragAndDropPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const penaltyScoringTypeArray = ['No penalty points', 'Penalty points for the entire question', 'Penalty points for each incorrect dropzone'];
6
+
7
+ describe('Create item page - Fill in the gaps over image with drag and drop: Minimum scoring, Penalty scoring, Rounding - Edit tab', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Scoring section: Minimum scoring - Edit tab', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
16
+ cy.barsPreLoaderWait();
17
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
18
+ });
19
+
20
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyMinimumScoringDropdown();
21
+
22
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyMinimumPointsLabelAndInputField();
23
+
24
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyMinimumPointsFieldErrorState();
25
+ });
26
+
27
+ describe('Scoring section: Penalty scoring - Edit tab', () => {
28
+ abortEarlySetup();
29
+ before(() => {
30
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
31
+ cy.barsPreLoaderWait();
32
+ fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
33
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
34
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
35
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
36
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
37
+ fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
38
+ });
39
+
40
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyPenaltyScoringDropdown(penaltyScoringTypeArray);
41
+
42
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyPenaltyPointsLabelAndInputField();
43
+
44
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyPenaltyPointsErrorState();
45
+
46
+ it('When the user selects \'Penalty points for each incorrect dropzone\' from the penalty scoring dropdown, \'Automatically set penalty for each incorrect dropzone to total points / no. of incorrect dropzones\' label and checkbox should be displayed, by default the checkbox should be unchecked. Two radio buttons with labels - \'Specify total penalty points\' and \'Specify points for each incorrect option\' should be displayed. By default, \'Specify total penalty points\' radio button should be checked', () => {
47
+ fillInTheGapsOverImageDragAndDropPage.steps.expandPenaltyScoringDropdown();
48
+ fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect dropzone');
49
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect dropzone to total points / no. of incorrect dropzones');
50
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.specifyTotalPenaltyPointsRadioButtonLabel(), 'Specify total penalty points');
51
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect dropzone');
52
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyAutomaticallySetPenaltyPointsCheckboxUncheckedState();
53
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyTotalPenaltyPointsRadioButtonCheckedState();
54
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonUncheckedState();
55
+ });
56
+
57
+ it('When \'Specify total penalty points\' is selected, a penalty points detail section with \'Total penalty points\' label and empty input field, \'Penalty points for each incorrect dropzone: -\' label should be displayed', () => {
58
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Total penalty points');
59
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPointsValue('');
60
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect dropzone: -');
61
+ });
62
+
63
+ it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
64
+ fillInTheGapsOverImageDragAndDropPage.steps.allotTotalPenaltyPoints(5);
65
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(2.5);
66
+ });
67
+
68
+ it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
69
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
70
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.67);
71
+ });
72
+
73
+ it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
74
+ fillInTheGapsOverImageDragAndDropPage.steps.removeDropzone(0);
75
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(2.5);
76
+ });
77
+
78
+ it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
79
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.automaticallySetPenaltyPointsCheckboxLabel(), {
80
+ 'color': css.color.labelText,
81
+ 'font-size': css.fontSize.default,
82
+ 'font-weight': css.fontWeight.regular
83
+ });
84
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.automaticallySetPenaltyPointsCheckbox().parent().find('svg'), {
85
+ 'fill': css.color.uncheckedCheckbox
86
+ });
87
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.specifyTotalPenaltyPointsRadioButton().parent().find('svg'), {
88
+ 'fill': css.color.activeButtons
89
+ });
90
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.specifyPointsForEachIncorrectOptionRadioButton().parent().find('svg path'), {
91
+ 'fill': css.color.uncheckedCheckbox
92
+ });
93
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.specifyTotalPenaltyPointsRadioButtonLabel(), {
94
+ 'color': css.color.labelText,
95
+ 'font-size': css.fontSize.default,
96
+ 'font-weight': css.fontWeight.regular
97
+ });
98
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), {
99
+ 'color': css.color.labelText,
100
+ 'font-size': css.fontSize.default,
101
+ 'font-weight': css.fontWeight.regular
102
+ });
103
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionInputFieldLabel(), {
104
+ 'color': css.color.labelText,
105
+ 'font-size': css.fontSize.default,
106
+ 'font-weight': css.fontWeight.regular
107
+ });
108
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.totalPenaltyPointsInputField(), {
109
+ 'color': css.color.text,
110
+ 'font-size': css.fontSize.default,
111
+ 'font-weight': css.fontWeight.regular
112
+ });
113
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), {
114
+ 'color': css.color.labelText,
115
+ 'font-size': css.fontSize.default,
116
+ 'font-weight': css.fontWeight.regular
117
+ });
118
+ });
119
+
120
+ it('Accessibility of the penalty points section - Total penalty points', { tags: 'a11y' }, () => {
121
+ cy.checkAccessibility(fillInTheGapsOverImageDragAndDropPage.automaticallySetPenaltyPointsCheckboxLabel().parents('.penalty-score-for-each-incorrect-wrapper'));
122
+ });
123
+
124
+ it('When the user selects \'Specify points for each incorrect answer\', a penalty points detail section with \'Penalty points for each incorrect dropzone:\' label and empty input field, \'Total penalty points: -\' label should be displayed', () => {
125
+ cy.log('Pre-step: Clearing the total penalty points input field')
126
+ fillInTheGapsOverImageDragAndDropPage.steps.clearTotalPenaltyPointsInputField();
127
+ fillInTheGapsOverImageDragAndDropPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify points for each incorrect option');
128
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect dropzone');
129
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzoneValue('');
130
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: -');
131
+ });
132
+
133
+ it('When the user allots Penalty points for each incorrect dropzone, then \'Total penalty points\' should get updated as per the count of incorrect options available', () => {
134
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPenaltyPointsForEachIncorrectDropzone(1);
135
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPoints(2);
136
+ });
137
+
138
+ it('When the user adds a new option, then \'Total penalty points\' should get updated accordingly', () => {
139
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea();
140
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPoints(3);
141
+ });
142
+
143
+ it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
144
+ fillInTheGapsOverImageDragAndDropPage.steps.removeDropzone(0);
145
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPoints(2);
146
+ });
147
+
148
+ it('CSS of the penalty points section - Penalty points for each incorrect dropzone', { tags: 'css' }, () => {
149
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionInputFieldLabel(), {
150
+ 'color': css.color.labelText,
151
+ 'font-size': css.fontSize.default,
152
+ 'font-weight': css.fontWeight.regular
153
+ });
154
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.penaltyPointsForEachIncorrectOptionInputField(), {
155
+ 'color': css.color.text,
156
+ 'font-size': css.fontSize.default,
157
+ 'font-weight': css.fontWeight.regular
158
+ });
159
+ utilities.verifyCSS(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), {
160
+ 'color': css.color.labelText,
161
+ 'font-size': css.fontSize.default,
162
+ 'font-weight': css.fontWeight.regular
163
+ });
164
+ });
165
+
166
+ it('Accessibility of the penalty points section - Penalty points for each incorrect dropzone', { tags: 'a11y' }, () => {
167
+ cy.checkAccessibility(fillInTheGapsOverImageDragAndDropPage.automaticallySetPenaltyPointsCheckboxLabel().parents('.penalty-score-for-each-incorrect-wrapper'));
168
+ });
169
+
170
+ it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each incorrect option\'', () => {
171
+ fillInTheGapsOverImageDragAndDropPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify total penalty points');
172
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPointsValue(2);
173
+ utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect dropzone: 1');
174
+ });
175
+
176
+ it('When the user checks the \'Automatically set penalty for each incorrect dropzone to total points / no. of incorrect dropzones\' checkbox, both radio buttons should get disabled, \'Specify points for each incorrect option\' should get checked, in the penalty points details section, \'Penalty points for each incorrect dropzone: #\' and \'Total penalty points: #\' should be displayed as per the alloted points and available incorrect options', () => {
177
+ fillInTheGapsOverImageDragAndDropPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
178
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
179
+ fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
180
+ utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect dropzone: 5');
181
+ utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
182
+ });
183
+ });
184
+
185
+ describe('Scoring section: Rounding - Edit tab', () => {
186
+ abortEarlySetup();
187
+ before(() => {
188
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
189
+ cy.barsPreLoaderWait();
190
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
191
+ fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
192
+ });
193
+
194
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyRoundingDropdown();
195
+
196
+ fillInTheGapsOverImageDragAndDropPage.tests.verifyRoundNegativeScoreToZeroLabelAndCheckbox();
197
+ });
198
+ });
@@ -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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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 - drag and drop');
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');