itemengine-cypress-automation 1.0.284-RepoUpdate13thJan-c7ac0b4.0 → 1.0.284-applitools-38637bb.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +36 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +14 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +10 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +17 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +6 -7
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +9 -10
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +10 -11
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
  26. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  27. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +35 -21
  28. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  29. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
  30. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
  31. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  32. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  33. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
  34. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  35. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
  36. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  37. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  41. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  42. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  43. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +15 -6
  44. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +12 -3
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
  54. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
  55. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
  56. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +14 -5
  57. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  58. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
  59. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +16 -6
  60. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
  61. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
  62. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
  63. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +13 -4
  64. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
  65. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
  66. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
  67. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +14 -5
  68. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +15 -5
  69. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
  70. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
  71. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +12 -3
  72. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
  73. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  74. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  75. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  76. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  77. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  78. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  79. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  80. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  81. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  82. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  83. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  84. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  85. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
  86. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +13 -4
  87. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -3
  88. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  89. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
  90. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  91. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
  92. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  93. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  94. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
  95. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
  96. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
  97. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  98. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  99. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  100. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +14 -5
  101. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
  102. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
  103. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
  104. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  105. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
  106. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +14 -5
  107. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  108. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
  109. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +14 -5
  110. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  111. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +13 -4
  112. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +14 -5
  113. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  114. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  115. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  116. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  117. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  118. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  119. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  120. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  121. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
  122. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +14 -6
  123. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  124. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
  125. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
  126. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  127. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
  128. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  129. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
  130. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
  131. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
  132. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -193
  133. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
  134. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
  135. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  136. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
  137. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
  138. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
  139. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  140. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
  141. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +13 -4
  142. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
  143. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  144. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +12 -3
  145. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +12 -3
  146. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  147. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +14 -5
  148. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
  149. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  150. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
  151. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
  152. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +18 -9
  153. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  154. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
  155. package/cypress/e2e/applitools.config.js +14 -0
  156. package/cypress/pages/audioPlayerPage.js +4 -4
  157. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +0 -17
  158. package/cypress/pages/components/equationEditorFlyout.js +1 -1
  159. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  160. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
  161. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -5
  162. package/cypress/pages/components/gridQuestionCommonComponent.js +1 -41
  163. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  164. package/cypress/pages/createItemPage.js +1 -38
  165. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  166. package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -45
  167. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -35
  168. package/cypress/pages/listOrderingPage.js +1 -1
  169. package/cypress/pages/matchingPage.js +7 -34
  170. package/cypress/pages/multipleSelectionPage.js +2 -17
  171. package/cypress/pages/numberLineLabelPage.js +3 -3
  172. package/cypress/pages/readingRulerPage.js +3 -5
  173. package/cypress/pages/singleSelectionPage.js +2 -5
  174. package/cypress/pages/textEntryMathPage.js +5 -19
  175. package/cypress/pages/textSelectionPage.js +1 -1
  176. package/cypress/support/commands.js +11 -0
  177. package/cypress/support/e2e.js +1 -0
  178. package/package.json +4 -1
  179. package/cypress/e2e/ILC/EditItem/editItem.ts +0 -133
  180. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +0 -214
  181. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +0 -228
  182. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +0 -242
  183. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +0 -245
  184. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +0 -237
  185. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +0 -239
  186. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +0 -212
  187. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +0 -366
  188. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +0 -306
  189. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -243
  190. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -242
  191. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -289
  192. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -284
  193. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -238
  194. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -279
  195. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +0 -641
  196. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -278
  197. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -228
  198. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -234
  199. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -237
  200. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -134
  201. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -138
  202. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -263
  203. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -166
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.284-RepoUpdate13thJan-c7ac0b4.0",
3
+ "version": "1.0.284-applitools-38637bb.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,5 +35,8 @@
35
35
  "node-fetch": "^3.3.2",
36
36
  "react-uuid": "^2.0.0",
37
37
  "typescript": "^5.6.3"
38
+ },
39
+ "devDependencies": {
40
+ "@applitools/eyes-cypress": "^3.49.1"
38
41
  }
39
42
  }
@@ -1,133 +0,0 @@
1
- import { multipleSelectionPage, readingRulerPage, singleSelectionPage } from '../../../pages'
2
- const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
3
-
4
- describe('Edit Question and edit item', () => {
5
- before(() => {
6
- cy.loginAs('admin');
7
- });
8
-
9
- describe('Edit question', () => {
10
- before(() => {
11
- multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
12
- cy.barsPreLoaderWait();
13
- multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
14
- multipleSelectionPage.steps.addInputToOptionsInputField(options);
15
- multipleSelectionPage.steps.allotPoints(20);
16
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
17
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
18
- multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
19
- });
20
-
21
- it('When user edits the question instructions, then the changes should be saved correctly', () => {
22
- multipleSelectionPage.steps.editItem(1);
23
- multipleSelectionPage.steps.clearQuestionInstructionsInputField();
24
- multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
25
- multipleSelectionPage.steps.clickOnSaveQuestionButton();
26
- multipleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
27
- });
28
-
29
- it('When user edits the options, then the changes should be saved correctly', () => {
30
- multipleSelectionPage.steps.editItem(1);
31
- multipleSelectionPage.steps.editOptionInputField(0, 'Edit option input field');
32
- multipleSelectionPage.steps.clickOnSaveQuestionButton();
33
- multipleSelectionPage.steps.verifyOptionInputFieldText(0, 'Edit option input field');
34
- options.slice(1).forEach((option, index) => {
35
- multipleSelectionPage.steps.verifyOptionInputFieldText(index + 1, option);
36
- });
37
- });
38
-
39
- it('When user edits the points, then the changes should be saved correctly', () => {
40
- multipleSelectionPage.steps.editItem(1);
41
- multipleSelectionPage.steps.allotPoints(10);
42
- multipleSelectionPage.steps.clickOnSaveQuestionButton();
43
- multipleSelectionPage.steps.verifyPointsValue('10');
44
- });
45
-
46
- it('When user edits the correct answers, then the changes should be saved correctly', () => {
47
- multipleSelectionPage.steps.editItem(1);
48
- multipleSelectionPage.steps.uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
49
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
50
- multipleSelectionPage.steps.clickOnSaveQuestionButton();
51
- multipleSelectionPage.steps.switchToPreviewTab();
52
- multipleSelectionPage.steps.switchToGradingView();
53
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
54
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
55
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
56
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
57
- });
58
-
59
- it('User should be able to add a new question upon saving an item', () => {
60
- multipleSelectionPage.steps.switchToEditTab();
61
- multipleSelectionPage.steps.clickOnAddQuestion();
62
- multipleSelectionPage.steps.selectQuestionType('single selection');
63
- multipleSelectionPage.steps.verifyCreateQuestionPageQuestionTypeHeader('Single selection');
64
- });
65
-
66
- it('When user adds all the necessary details and clicks on save question, then the question should be saved successfully', () => {
67
- singleSelectionPage.steps.addTextInQuestionInstructionsInputField('This is a newly added question');
68
- singleSelectionPage.steps.allotPoints(20);
69
- singleSelectionPage.steps.addInputToOptionsInputField(options);
70
- singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
71
- singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
72
- });
73
-
74
- it('The saved questions should be displayed in the list of questions', () => {
75
- singleSelectionPage.steps.verifyQuestionTitle(0, 'Multiple selection');
76
- singleSelectionPage.steps.verifyQuestionTitle(1, 'Single selection');
77
- });
78
- });
79
-
80
- describe('Edit resource', () => {
81
- before(() => {
82
- readingRulerPage.steps.navigateToCreateResource('reading ruler');
83
- readingRulerPage.steps.clickOnSaveQuestionButton();
84
- });
85
-
86
- it('When user edits the resource, then the changes should be saved correctly', () => {
87
- readingRulerPage.steps.editItem(0);
88
- readingRulerPage.steps.checkVisibleOnLandingCheckbox();
89
- readingRulerPage.steps.selectColorBlock(1);
90
- readingRulerPage.steps.addInputToDefaultNumberOfLinesInputField(2);
91
- readingRulerPage.steps.addInputToOpacityInputField(50);
92
- readingRulerPage.steps.clickOnSaveQuestionButton();
93
- });
94
-
95
- it('When user edits the resource, then the changes should be saved correctly', () => {
96
- readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
97
- readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
98
- readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(1);
99
- readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab(0.5);
100
- readingRulerPage.steps.verifySizeOfReadingRulerInPreviewTab('Line focus', 2);
101
- });
102
- });
103
-
104
- describe('Single selection and Reading ruler - Edit item', () => {
105
- before(() => {
106
- singleSelectionPage.steps.navigateToCreateQuestion('single selection');
107
- singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
108
- singleSelectionPage.steps.addInputToOptionsInputField(options);
109
- singleSelectionPage.steps.allotPoints(20);
110
- singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
111
- singleSelectionPage.steps.clickOnSaveQuestionButton();
112
- readingRulerPage.steps.clickOnAddResource();
113
- readingRulerPage.steps.selectResourceType('reading ruler');
114
- readingRulerPage.steps.clickOnSaveQuestionButton();
115
- });
116
-
117
- it('The user should be able to edit the item', () => {
118
- singleSelectionPage.steps.editItem(0);
119
- singleSelectionPage.steps.clearQuestionInstructionsInputField();
120
- singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
121
- singleSelectionPage.steps.clickOnSaveQuestionButton();
122
- singleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
123
- });
124
-
125
- it('User should be able to edit the resource', () => {
126
- singleSelectionPage.steps.editItem(2);
127
- readingRulerPage.steps.checkVisibleOnLandingCheckbox();
128
- readingRulerPage.steps.clickOnSaveQuestionButton();
129
- readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
130
- readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
131
- });
132
- });
133
- });
@@ -1,214 +0,0 @@
1
- import { dialogBoxBase, fillInTheGapsDragAndDropPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
2
- import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
- import utilities from "../../../../support/helpers/utilities";
4
- var itemReferenceID = "";
5
-
6
- describe('Create item page - Fill in the gaps with drag and drop: Partial equal weights for blank responses', () => {
7
- before(() => {
8
- cy.loginAs('admin');
9
- });
10
-
11
- describe(`Auto scored - All or nothing`, () => {
12
- abortEarlySetup();
13
- before(() => {
14
- fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
15
- cy.barsPreLoaderWait();
16
- fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop');
17
- fillInTheGapsDragAndDropPage.steps.allotPoints(24);
18
- fillInTheGapsDragAndDropPage.steps.addResponseArea();
19
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
20
- });
21
-
22
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
23
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
24
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
25
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
26
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
27
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
28
- fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
29
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
30
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
31
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
32
- });
33
-
34
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
35
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
36
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
37
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
38
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
39
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
40
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
41
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
42
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
43
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
44
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
45
- });
46
-
47
- it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
48
- fillInTheGapsDragAndDropPage.steps.switchToEditTab();
49
- fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
50
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
51
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
52
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
53
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
54
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
55
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
56
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
57
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
58
- fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
59
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
60
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
61
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
62
- });
63
-
64
- it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
65
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
66
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
67
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
68
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
69
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
70
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
71
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
72
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
73
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
74
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
75
- });
76
-
77
- it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
78
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
79
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
80
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
81
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
82
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
83
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
84
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
85
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
86
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
87
- });
88
-
89
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
90
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
91
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
92
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
93
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
94
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
95
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
96
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
97
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
98
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
99
- });
100
-
101
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
102
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
103
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
104
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
105
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
106
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
107
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
108
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
109
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
110
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
111
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
112
- });
113
- });
114
-
115
- describe(`Auto scored - Partial equal weights`, () => {
116
- abortEarlySetup();
117
- before(() => {
118
- fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
119
- cy.barsPreLoaderWait();
120
- fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop');
121
- fillInTheGapsDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
122
- fillInTheGapsDragAndDropPage.steps.allotPoints(24);
123
- fillInTheGapsDragAndDropPage.steps.addResponseArea();
124
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
125
- });
126
-
127
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
128
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
129
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
130
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
131
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
132
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
133
- fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
134
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
135
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
136
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
137
- });
138
-
139
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
140
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
141
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
142
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
143
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
144
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
145
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
146
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
147
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
148
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
149
- });
150
-
151
- it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
152
- fillInTheGapsDragAndDropPage.steps.switchToEditTab();
153
- fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
154
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
155
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
156
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
157
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
158
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
159
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
160
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
161
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
162
- fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
163
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
164
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
165
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
166
- });
167
-
168
- it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
169
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
170
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
171
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
172
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
173
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(8, 24);
174
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
175
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
176
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
177
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
178
- });
179
-
180
- it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
181
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
182
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
183
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
184
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(16, 24);
185
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
186
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
187
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
188
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
189
- });
190
-
191
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
192
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
193
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
194
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
195
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
196
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
197
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
198
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
199
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
200
- });
201
-
202
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
203
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
204
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
205
- fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
206
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
207
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
208
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
209
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
210
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
211
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
212
- });
213
- });
214
- });
@@ -1,228 +0,0 @@
1
- import { dialogBoxBase, fillInTheGapsOverImageDragAndDropPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
2
- import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
- import utilities from "../../../../support/helpers/utilities";
4
- var itemReferenceID = "";
5
-
6
- describe('Create item page - Fill in the gaps over image with drag and drop: All or nothing and Partial equal weights for blank responses', () => {
7
- before(() => {
8
- cy.loginAs('admin');
9
- });
10
-
11
- describe(`Auto scored - All or nothing for blank response`, () => {
12
- abortEarlySetup();
13
- before(() => {
14
- fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
15
- cy.barsPreLoaderWait();
16
- fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
17
- fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
18
- fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
19
- fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
20
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
21
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
22
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
23
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
24
- });
25
-
26
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
27
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
28
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
29
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
30
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
31
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
32
- fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
33
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
34
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
36
- });
37
-
38
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
39
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
40
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
41
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
42
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
43
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
44
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
45
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
46
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
47
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
48
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
49
- });
50
-
51
- it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
52
- fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
53
- fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
54
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
55
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
56
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
57
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
58
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
59
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
60
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
61
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
62
- fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
63
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
64
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
65
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
66
- });
67
-
68
- it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
69
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
70
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
71
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
72
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
73
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
74
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
75
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
76
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
77
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
78
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
79
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
80
- });
81
-
82
- it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
83
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
84
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
85
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
86
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
87
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
88
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
89
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
90
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
91
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
92
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
93
- });
94
-
95
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
96
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
97
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
98
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
99
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
100
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
101
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
102
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
103
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
104
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
105
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
106
- });
107
-
108
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
109
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
110
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
111
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
112
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
113
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
114
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
115
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
116
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
117
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
118
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
119
- });
120
- });
121
-
122
- describe(`Auto scored - Partial equal weights for blank response`, () => {
123
- abortEarlySetup();
124
- before(() => {
125
- fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
126
- cy.barsPreLoaderWait();
127
- fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
128
- fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
129
- fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
130
- fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
131
- fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
132
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
133
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
134
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
135
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
136
- });
137
-
138
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
139
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
140
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
141
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
142
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
143
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
144
- fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
145
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
146
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
147
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
148
- });
149
-
150
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
151
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
152
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
153
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
154
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
155
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
156
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
157
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
158
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
159
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
160
- });
161
-
162
- it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
163
- fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
164
- fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
165
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
166
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
167
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
168
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
169
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
170
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
171
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
172
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
173
- fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
174
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
175
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
176
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
177
- });
178
-
179
- it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
180
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
181
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
182
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
183
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
184
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(8, 24);
185
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
186
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
187
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
188
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
189
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
190
- });
191
-
192
- it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
193
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
194
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
195
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
196
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(16, 24);
197
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
198
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
199
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
200
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
201
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
202
- });
203
-
204
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
205
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
206
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
207
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
208
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
209
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
210
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
211
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
212
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
213
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
214
- });
215
-
216
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
217
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
218
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
219
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
220
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
221
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
222
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
223
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
224
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
225
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
226
- });
227
- });
228
- });