itemengine-cypress-automation 1.0.223-minorFix-f2741aa.0 → 1.0.224-31stJulyFixes-fae0339.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +1 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +12 -5
  3. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +370 -0
  4. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +285 -0
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +629 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +4 -2
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +5 -4
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +2 -1
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -1
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +11 -10
  13. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
  14. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
  15. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +2 -1
  16. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -1
  17. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
  18. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
  19. package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +2 -1
  20. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
  21. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +8 -5
  22. package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +12 -12
  23. package/cypress/e2e/ILC/ChartsLine/editTabScoringSection.js +1 -1
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +0 -1
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +3 -2
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +2 -2
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +2 -2
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +4 -2
  29. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +2 -1
  30. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -1
  31. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
  32. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -2
  33. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +2 -2
  34. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +6 -3
  35. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
  36. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  37. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +4 -0
  38. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +17 -11
  39. package/cypress/e2e/ILC/FeedbackScaleNew/additionalSettings.js +11 -11
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +8 -8
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +3 -4
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -1
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +4 -4
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -1
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +2 -4
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +1 -0
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +3 -3
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  62. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
  63. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  66. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +53 -44
  67. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +4 -6
  68. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
  69. package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +2 -1
  70. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  71. package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +9 -9
  72. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  73. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
  74. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  75. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  76. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
  77. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
  78. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  79. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  80. package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
  81. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +8 -56
  82. package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
  83. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +2 -1
  84. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  85. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -1
  86. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
  87. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +6 -6
  88. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +1 -0
  89. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +12 -12
  90. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +1 -1
  91. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +48 -48
  92. package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  93. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +22 -25
  94. package/cypress/e2e/ILC/NumberLine/additionalSettings.js +23 -3
  95. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +96 -7
  96. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +12 -2
  97. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +4 -6
  98. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -2
  99. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +3 -2
  100. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
  101. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +3 -5
  102. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +12 -3
  103. package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +1 -1
  104. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
  105. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -1
  106. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
  107. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +9 -9
  108. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +2 -0
  109. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -1
  110. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
  111. package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  112. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +20 -0
  113. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +214 -0
  114. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -1
  115. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +1 -6
  116. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -2
  117. package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/audioOverviewAndTranscript.js +3 -2
  118. package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/customizePlayerLayoutSettings.js +2 -2
  119. package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/standardAudioPlayerStyle.js +3 -3
  120. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +3 -1
  121. package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +6 -6
  122. package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +4 -4
  123. package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +5 -5
  124. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -1
  125. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -2
  126. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -1
  127. package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +9 -7
  128. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +62 -60
  129. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +29 -27
  130. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +45 -45
  131. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +28 -28
  132. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +48 -34
  133. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +41 -38
  134. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +26 -26
  135. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +41 -38
  136. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +7 -5
  137. package/cypress/pages/audioPlayerPage.js +2 -2
  138. package/cypress/pages/audioResponsePage.js +1 -0
  139. package/cypress/pages/chartsBarPage.js +177 -76
  140. package/cypress/pages/chartsDotPlotPage.js +28 -43
  141. package/cypress/pages/components/additionalSettingsPanel.js +5 -2
  142. package/cypress/pages/components/barAndLineChartComponent.js +1 -1
  143. package/cypress/pages/components/chartsCommonComponent.js +28 -0
  144. package/cypress/pages/components/colorPopupComponent.js +2 -0
  145. package/cypress/pages/components/createQuestionBasePage.js +1 -0
  146. package/cypress/pages/components/draggableOptionsSectionComponent.js +1 -0
  147. package/cypress/pages/components/editCategoryFlyout.js +6 -4
  148. package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
  149. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -0
  150. package/cypress/pages/components/gridQuestionCommonComponent.js +2 -4
  151. package/cypress/pages/components/imageCanvasComponent.js +7 -5
  152. package/cypress/pages/components/layoutSectionComponent.js +4 -3
  153. package/cypress/pages/components/numberLineCommonComponent.js +38 -21
  154. package/cypress/pages/components/opacityComponent.js +1 -0
  155. package/cypress/pages/components/optionsWrapperComponent.js +1 -0
  156. package/cypress/pages/components/questionInstructionsComponent.js +1 -1
  157. package/cypress/pages/components/responseAreaSettingsPopupComponent.js +8 -0
  158. package/cypress/pages/components/scoringSectionBaseEditTab.js +5 -2
  159. package/cypress/pages/components/toolSettingsComponent.js +1 -0
  160. package/cypress/pages/contentBlocksPage.js +1 -0
  161. package/cypress/pages/dragAndDropIntoCategoriesPage.js +9 -2
  162. package/cypress/pages/fillInTheGapsDropdownPage.js +16 -1
  163. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +16 -1
  164. package/cypress/pages/fillInTheGapsOverImageTextPage.js +20 -1
  165. package/cypress/pages/graphingPage.js +43 -10
  166. package/cypress/pages/gridFillPage.js +11 -3
  167. package/cypress/pages/matchingPage.js +2 -0
  168. package/cypress/pages/numberLineLabelPage.js +1 -1
  169. package/cypress/pages/numberLinePage.js +25 -24
  170. package/cypress/pages/readingRulerPage.js +6 -2
  171. package/cypress/pages/rulerPage.js +1 -0
  172. package/cypress/pages/shortTextResponsePage.js +3 -1
  173. package/cypress/pages/singleSelectionPage.js +25 -2
  174. package/cypress/pages/textSelectionPage.js +1 -1
  175. package/cypress/pages/videoResponsePage.js +7 -2
  176. package/package.json +1 -1
  177. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/allSupportedFileTypes.js +0 -0
  178. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/barAudioPlayerStyle.js +0 -0
  179. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/compactAudioPlayerStyle.js +0 -0
  180. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/headerSection.js +0 -0
  181. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/previewContents.smoke.js +0 -0
  182. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/studentViewSettings.js +0 -0
  183. /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/uploadAndAddAudioFile.js +0 -0
  184. /package/cypress/fixtures/uploads/{sample10Sec.mp3 → sampleAudio.mp3} +0 -0
@@ -72,39 +72,14 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
72
72
  matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
73
73
  matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
74
74
  matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Branch', dropzoneIndex: 0 }, { optionText: 'Roots', dropzoneIndex: 0 }, { optionText: 'Petals', dropzoneIndex: 0 }]);
75
- matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Branch', 'Roots']);
76
- matchingPage.steps.verifyWarningMessage('Maximum 2 options can be dropped in each dropzone.');
77
- });
78
-
79
- it('CSS of warning message', { tags: 'css' }, () => {
80
- utilities.verifyCSS(matchingPage.warningMessage(), {
81
- 'color': css.color.warningMessage,
82
- 'font-size': css.fontSize.normal,
83
- 'font-weight': css.fontWeight.regular
84
- });
85
- utilities.verifyCSS(matchingPage.warningMessageContainer().find('[class*="IconWrapper"]'), {
86
- 'background-color': css.color.warningContainerBorder,
87
- });
88
- utilities.verifyCSS(matchingPage.warningMessageContainer(), {
89
- 'border': `1px solid ${css.color.warningContainerBorder}`,
90
- 'background-color': css.color.warningContainerBackground
91
- });
92
- });
93
-
94
- it('Accessibility of warning message', { tags: 'a11y' }, () => {
95
- cy.checkAccessibility(matchingPage.warningMessage());
96
- });
97
-
98
- it('When user clicks on the options container, warning message should disappear', () => {
99
- matchingPage.steps.clickOnOptionContainerSpecifyCorrectAnswerSection();
100
- utilities.verifyElementVisibilityState(matchingPage.warningMessageContainer(), 'notExist');
75
+ matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Roots', 'Petals']);
101
76
  });
102
77
 
103
78
  it('When the user updates the value for the \'Maximum capacity per dropzone\' dropdown less than the options in the dropzone then the recently added option in the dropzone should move back to the option container', () => {
104
79
  matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
105
80
  matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('1');
106
- matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Branch']);
107
- matchingPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection([{ index: 0, optionText: 'Petals' }, { index: 1, optionText: 'Leaves' }, { index: 2, optionText: 'Roots' }, { index: 3, optionText: 'Seeds' }, { index: 4, optionText: 'Stem' }]);
81
+ matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Roots']);
82
+ matchingPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection([{ index: 0, optionText: 'Petals' }, { index: 1, optionText: 'Leaves' }, { index: 2, optionText: 'Seeds' }, { index: 4, optionText: 'Stem' }, { index: 5, optionText: 'Branch' }]);
108
83
  });
109
84
  });
110
85
 
@@ -140,32 +115,7 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
140
115
  matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
141
116
  matchingPage.steps.switchToPreviewTab();
142
117
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Leaves', dropzoneIndex: 0 }, { optionText: 'Petals', dropzoneIndex: 0 }, { optionText: 'Seeds', dropzoneIndex: 0 }]);
143
- matchingPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Leaves', 'Petals']);
144
- matchingPage.steps.verifyWarningMessage('Maximum 2 options can be dropped in each dropzone.');
145
- });
146
-
147
- it('CSS of warning message', { tags: 'css' }, () => {
148
- utilities.verifyCSS(matchingPage.warningMessage(), {
149
- 'color': css.color.warningMessage,
150
- 'font-size': css.fontSize.normal,
151
- 'font-weight': css.fontWeight.regular
152
- });
153
- utilities.verifyCSS(matchingPage.warningMessageContainer().find('[class*="IconWrapper"]'), {
154
- 'background-color': css.color.warningContainerBorder,
155
- });
156
- utilities.verifyCSS(matchingPage.warningMessageContainer(), {
157
- 'border': `1px solid ${css.color.warningContainerBorder}`,
158
- 'background-color': css.color.warningContainerBackground
159
- });
160
- });
161
-
162
- it('Accessibility of warning message', { tags: 'a11y' }, () => {
163
- cy.checkAccessibility(matchingPage.warningMessage());
164
- });
165
-
166
- it('When user clicks on the options container, warning message should disappear', () => {
167
- matchingPage.steps.clickOnOptionContainerPreviewTab();
168
- utilities.verifyElementVisibilityState(matchingPage.warningMessageContainer(), 'notExist');
118
+ matchingPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals', 'Seeds']);
169
119
  });
170
120
  });
171
121
 
@@ -175,13 +125,15 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
175
125
  matchingPage.steps.navigateToCreateQuestion('matching');
176
126
  cy.barsPreLoaderWait();
177
127
  matchingPage.steps.addTextInQuestionInstructionsInputField('matching');
128
+ matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
129
+ matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
178
130
  matchingPage.steps.addMultipleOptionFields(4);
179
131
  matchingPage.steps.enterTextInOptionInputField(options);
132
+ matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
133
+ matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
180
134
  matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Petals', dropzoneIndex: 0 }, { optionText: 'Leaves', dropzoneIndex: 0 }, { optionText: 'Roots', dropzoneIndex: 1 }, { optionText: 'Stem', dropzoneIndex: 2 }, { optionText: 'Seeds', dropzoneIndex: 2 }])
181
135
  matchingPage.steps.allotPoints(5);
182
136
  //matchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
183
- matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
184
- matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
185
137
  });
186
138
 
187
139
  it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
@@ -58,7 +58,7 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
58
58
 
59
59
  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', () => {
60
60
  matchingPage.steps.allotTotalPenaltyPoints(5);
61
- matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.67);
61
+ matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
62
62
  });
63
63
 
64
64
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
@@ -68,7 +68,7 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
68
68
 
69
69
  it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
70
70
  matchingPage.steps.addOption();
71
- matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.67);
71
+ matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
72
72
  });
73
73
 
74
74
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -173,8 +173,8 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
173
173
  matchingPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
174
174
  matchingPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
175
175
  matchingPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
176
- utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect dropzone: 3.33');
177
- utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 9.99');
176
+ utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect dropzone: 3.3333');
177
+ utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
178
178
  });
179
179
  });
180
180
 
@@ -85,7 +85,8 @@ describe('Create Item page - Matching : Specify correct answer, Alternative corr
85
85
  matchingPage.steps.verifyAlternativeAnswerAccordionLabel(0);
86
86
  });
87
87
 
88
- it('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state', () => {
88
+ //Need to remove skip once https://weldnorthed.atlassian.net/browse/IEI-3034 is resolved
89
+ it.skip('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state', () => {
89
90
  matchingPage.steps.deleteOption(3);
90
91
  matchingPage.steps.verifyCorrectAnswerAccordionIsExpanded();
91
92
  });
@@ -53,7 +53,7 @@ describe('Create Item page: Tool settings', () => {
53
53
  utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
54
54
  rulerPage.steps.verifyLengthOfRulerInPreview('12in');
55
55
  rulerPage.steps.verifyColorOfRulerInPreview(1);
56
- rulerPage.steps.verifyRulerOpacityInPreview('0.6');
56
+ rulerPage.steps.verifyRulerOpacityInPreview('0.4');
57
57
  rulerPage.steps.verifyRotationButtonWithDegreeVisible();
58
58
  });
59
59
 
@@ -96,7 +96,7 @@ describe('Create item page - Multiple selection: Scoring section', () => {
96
96
  it('When the user sets one more correct option in the specify correct answer section, then points per response should get updated accordingly', () => {
97
97
  multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
98
98
  for (let index = 0; index < 3; index++) {
99
- multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(index, '1.33');
99
+ multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(index, '1.3333');
100
100
  };
101
101
  multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(3, '-');
102
102
  });
@@ -61,7 +61,7 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
61
61
 
62
62
  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', () => {
63
63
  multipleSelectionPage.steps.allotTotalPenaltyPoints(5);
64
- utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.67');
64
+ utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.6667');
65
65
  });
66
66
 
67
67
  it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
@@ -73,7 +73,7 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
73
73
 
74
74
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
75
75
  multipleSelectionPage.steps.deleteOption(4);
76
- utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.67');
76
+ utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.6667');
77
77
  });
78
78
 
79
79
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -180,8 +180,8 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
180
180
  multipleSelectionPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
181
181
  multipleSelectionPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
182
182
  multipleSelectionPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
183
- utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 3.33');
184
- utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 9.99');
183
+ utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 3.3333');
184
+ utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
185
185
  });
186
186
  });
187
187
 
@@ -235,14 +235,14 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
235
235
  multipleSelectionPage.steps.allotTotalPenaltyPoints(4);
236
236
  multipleSelectionPage.steps.switchToPreviewTab();
237
237
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
238
- multipleSelectionPage.steps.verifyPreviewScore(-1.33, 10);
238
+ multipleSelectionPage.steps.verifyPreviewScore(-1.3333, 10);
239
239
  });
240
240
 
241
241
  it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
242
242
  multipleSelectionPage.steps.resetQuestionPreview();
243
243
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
244
244
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
245
- multipleSelectionPage.steps.verifyPreviewScore(8.67, 10);
245
+ multipleSelectionPage.steps.verifyPreviewScore(8.6667, 10);
246
246
  });
247
247
 
248
248
  it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
@@ -250,7 +250,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
250
250
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
251
251
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
252
252
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
253
- multipleSelectionPage.steps.verifyPreviewScore(7.34, 10);
253
+ multipleSelectionPage.steps.verifyPreviewScore(7.3333, 10);
254
254
  });
255
255
 
256
256
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -310,14 +310,14 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
310
310
  multipleSelectionPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
311
311
  multipleSelectionPage.steps.switchToPreviewTab();
312
312
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
313
- multipleSelectionPage.steps.verifyPreviewScore(-3.33, 10);
313
+ multipleSelectionPage.steps.verifyPreviewScore(-3.3333, 10);
314
314
  });
315
315
 
316
316
  it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
317
317
  multipleSelectionPage.steps.resetQuestionPreview();
318
318
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
319
319
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
320
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 10);
320
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 10);
321
321
  });
322
322
 
323
323
  it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
@@ -325,7 +325,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
325
325
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
326
326
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
327
327
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
328
- multipleSelectionPage.steps.verifyPreviewScore(3.34, 10);
328
+ multipleSelectionPage.steps.verifyPreviewScore(3.3333, 10);
329
329
  });
330
330
 
331
331
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -2,6 +2,7 @@ import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  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', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste', 'Pollution caused by household waste'];
4
4
 
5
+ //Multiple cases are failing due to - https://redmine.zeuslearning.com/issues/578348.
5
6
  describe('Create item page - Multiple selection: Partial different weights with alternative answer', () => {
6
7
  before(() => {
7
8
  cy.loginAs('admin');
@@ -110,7 +110,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
110
110
  multipleSelectionPage.steps.resetQuestionPreview();
111
111
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
112
112
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
113
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
113
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
114
114
  multipleSelectionPage.steps.switchToGradingView();
115
115
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
116
116
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -143,7 +143,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
143
143
  multipleSelectionPage.steps.resetQuestionPreview();
144
144
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
145
145
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
146
- multipleSelectionPage.steps.verifyPreviewScore(3.33, 20);
146
+ multipleSelectionPage.steps.verifyPreviewScore(3.3333, 20);
147
147
  multipleSelectionPage.steps.switchToGradingView();
148
148
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
149
149
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -175,7 +175,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
175
175
  multipleSelectionPage.steps.resetQuestionPreview();
176
176
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
177
177
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
178
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
178
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
179
179
  multipleSelectionPage.steps.switchToGradingView();
180
180
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
181
181
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -206,7 +206,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
206
206
  it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points of the accordion with more points i.e. in this case correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
207
207
  multipleSelectionPage.steps.resetQuestionPreview();
208
208
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
209
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
209
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
210
210
  multipleSelectionPage.steps.switchToGradingView();
211
211
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
212
212
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -430,7 +430,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
430
430
  multipleSelectionPage.steps.resetQuestionPreview();
431
431
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
432
432
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
433
- multipleSelectionPage.steps.verifyPreviewScore(3.33, 20);
433
+ multipleSelectionPage.steps.verifyPreviewScore(3.3333, 20);
434
434
  multipleSelectionPage.steps.switchToGradingView();
435
435
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
436
436
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -462,7 +462,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
462
462
  multipleSelectionPage.steps.resetQuestionPreview();
463
463
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
464
464
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
465
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
465
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
466
466
  multipleSelectionPage.steps.switchToGradingView();
467
467
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
468
468
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -494,7 +494,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
494
494
  multipleSelectionPage.steps.resetQuestionPreview();
495
495
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
496
496
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
497
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
497
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
498
498
  multipleSelectionPage.steps.switchToGradingView();
499
499
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
500
500
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -525,7 +525,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
525
525
  it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points of the accordion with more points i.e. in this case alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from alternative accordion should be displayed in correct answer section', () => {
526
526
  multipleSelectionPage.steps.resetQuestionPreview();
527
527
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
528
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
528
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
529
529
  multipleSelectionPage.steps.switchToGradingView();
530
530
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
531
531
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -723,7 +723,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
723
723
  multipleSelectionPage.steps.resetQuestionPreview();
724
724
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
725
725
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
726
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
726
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
727
727
  multipleSelectionPage.steps.switchToGradingView();
728
728
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
729
729
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -755,7 +755,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
755
755
  multipleSelectionPage.steps.resetQuestionPreview();
756
756
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
757
757
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
758
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
758
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
759
759
  multipleSelectionPage.steps.switchToGradingView();
760
760
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
761
761
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -787,7 +787,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
787
787
  multipleSelectionPage.steps.resetQuestionPreview();
788
788
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
789
789
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
790
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
790
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
791
791
  multipleSelectionPage.steps.switchToGradingView();
792
792
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
793
793
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -818,7 +818,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
818
818
  it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points as per the correct response and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
819
819
  multipleSelectionPage.steps.resetQuestionPreview();
820
820
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
821
- multipleSelectionPage.steps.verifyPreviewScore(6.67, 20);
821
+ multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
822
822
  multipleSelectionPage.steps.switchToGradingView();
823
823
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
824
824
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -108,7 +108,7 @@ describe('Create item page - Multiple selection: Preview contents', () => {
108
108
  });
109
109
  } else {
110
110
  it(`The correct options should have correct icons besides them`, () => {
111
- // Need to remove comment once https://redmine.zeuslearning.com/issues/573603 is resolved
111
+ // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
112
112
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
113
113
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
114
114
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
@@ -200,53 +200,53 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
200
200
  });
201
201
  });
202
202
 
203
- if (!grepTags || !grepTags.includes('smoke')) {
204
- describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
205
- abortEarlySetup();
206
- before(() => {
207
- multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
208
- cy.barsPreLoaderWait();
209
- multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not')
210
- multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
211
- multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
212
- multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
213
- multipleSelectionGridPage.steps.allotPoints(20);
214
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
215
- });
216
-
217
- it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
218
- multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
219
- multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
220
- multipleSelectionGridPage.steps.allotMinimumPoints(2);
221
- multipleSelectionGridPage.steps.switchToPreviewTab();
222
- multipleSelectionGridPage.steps.switchToGradingView();
223
- multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
224
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
225
- });
226
-
227
- it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
228
- multipleSelectionGridPage.steps.resetQuestionPreview();
229
- multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
230
- multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
231
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
232
- });
233
-
234
- it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
235
- multipleSelectionGridPage.steps.switchToEditTab();
236
- multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
237
- multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
238
- multipleSelectionGridPage.steps.allotMinimumPoints(2);
239
- multipleSelectionGridPage.steps.switchToPreviewTab();
240
- multipleSelectionGridPage.steps.switchToGradingView();
241
- multipleSelectionGridPage.steps.verifyPreviewScore(0, 20);
242
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
243
- });
244
-
245
- it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
246
- multipleSelectionGridPage.steps.resetQuestionPreview();
247
- multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
248
- multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
249
- });
203
+ if (!grepTags || !grepTags.includes('smoke')) {
204
+ describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
205
+ abortEarlySetup();
206
+ before(() => {
207
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
208
+ cy.barsPreLoaderWait();
209
+ multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not')
210
+ multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
211
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
212
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
213
+ multipleSelectionGridPage.steps.allotPoints(20);
214
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
250
215
  });
251
- };
216
+
217
+ it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
218
+ multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
219
+ multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
220
+ multipleSelectionGridPage.steps.allotMinimumPoints(2);
221
+ multipleSelectionGridPage.steps.switchToPreviewTab();
222
+ multipleSelectionGridPage.steps.switchToGradingView();
223
+ multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
224
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
225
+ });
226
+
227
+ it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
228
+ multipleSelectionGridPage.steps.resetQuestionPreview();
229
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
230
+ multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
231
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
232
+ });
233
+
234
+ it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
235
+ multipleSelectionGridPage.steps.switchToEditTab();
236
+ multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
237
+ multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
238
+ multipleSelectionGridPage.steps.allotMinimumPoints(2);
239
+ multipleSelectionGridPage.steps.switchToPreviewTab();
240
+ multipleSelectionGridPage.steps.switchToGradingView();
241
+ multipleSelectionGridPage.steps.verifyPreviewScore(0, 20);
242
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
243
+ });
244
+
245
+ it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
246
+ multipleSelectionGridPage.steps.resetQuestionPreview();
247
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
248
+ multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
249
+ });
250
+ });
251
+ };
252
252
  });
@@ -122,8 +122,8 @@ describe('Create item page - Multiple selection grid: Minimum scoring, Penalty s
122
122
  multipleSelectionGridPage.steps.clearTotalPenaltyPointsInputField();
123
123
  multipleSelectionGridPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify points for each incorrect option');
124
124
  utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect row');
125
- multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('1.25');
126
- utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: 5');
125
+ multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('');
126
+ utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: -');
127
127
  });
128
128
 
129
129
  it('When the user allots Penalty points for each incorrect row, then \'Total penalty points\' should get updated as per the count of rows', () => {
@@ -2,8 +2,7 @@ import { numberLinePage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
-
6
- const range = 20.75;
5
+ const range = 22.2;
7
6
 
8
7
  describe('Number line: Layout section', () => {
9
8
  before(() => {
@@ -17,11 +16,11 @@ describe('Number line: Layout section', () => {
17
16
  cy.barsPreLoaderWait();
18
17
  });
19
18
 
20
- numberLinePage.tests.verifyLayoutSectionContent("Horizontal");
19
+ numberLinePage.tests.verifyLayoutSectionContent("Sideways");
21
20
 
22
- it('\'Stack responses\' label and checkbox should be displayed and by default it should be unchecked', () => {
23
- utilities.verifyInnerText(numberLinePage.stackResponsesLabel(), 'Stack responses');
24
- numberLinePage.steps.verifyCheckboxUnchecked('Stack responses')
21
+ it('\'Stack segment/ray\' label and checkbox should be displayed and by default it should be unchecked', () => {
22
+ utilities.verifyInnerText(numberLinePage.stackResponsesLabel(), 'Stack segment/ray');
23
+ numberLinePage.steps.verifyCheckboxUnchecked('Stack segment/ray')
25
24
  });
26
25
 
27
26
  it('Response spacing label and input field should be displayed and by default, input field should have 30 and user should be able to update the value of input field', () => {
@@ -44,18 +43,18 @@ describe('Number line: Layout section', () => {
44
43
  it('When user updates value for Response spacing input field, it should get updated in Number line section and Specify correct answer section', () => {
45
44
  numberLinePage.steps.enterTextInResponseSpacingInputField(28);
46
45
  numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
47
- numberLinePage.steps.verifyResponseSpacingSpecifyCorrectAnswerSection("Horizontal", 28);
46
+ numberLinePage.steps.verifyResponseSpacingSpecifyCorrectAnswerSection("Sideways", 28);
48
47
  });
49
48
 
50
- numberLinePage.tests.verifyLayoutSectionEditTabFunctionality("Horizontal");
49
+ numberLinePage.tests.verifyLayoutSectionEditTabFunctionality("Sideways");
51
50
 
52
51
  //Note: Unable to check on cypress, added to manual sheet
53
- it('When user checks Stack responses checkbox, then points should be plotted above the number line in number line section and specify correct answer section', () => {
54
- numberLinePage.steps.checkCheckbox('Stack responses');
52
+ it('When user checks Stack segment/ray checkbox, then points should be plotted above the number line in number line section and specify correct answer section', () => {
53
+ numberLinePage.steps.checkCheckbox('Stack segment/ray');
55
54
  });
56
55
 
57
- it('When user unchecks Stack responses checkbox, then points should be plotted on the number line in number line section and specify correct answer section', () => {
58
- numberLinePage.steps.uncheckCheckbox('Stack responses');
56
+ it('When user unchecks Stack segment/ray checkbox, then points should be plotted on the number line in number line section and specify correct answer section', () => {
57
+ numberLinePage.steps.uncheckCheckbox('Stack segment/ray');
59
58
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
60
59
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2]);
61
60
  });
@@ -70,13 +69,11 @@ describe('Number line: Layout section', () => {
70
69
  });
71
70
 
72
71
  it('When user update the value in Limit number of responses input field then specified number of responses should be updated accordingly for number line in specify correct answer section and when user plots responses more than specified number then error \'Error: Only # answers are permitted.\'', () => {
73
- numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
74
- numberLinePage.steps.confirmReset();
75
72
  numberLinePage.steps.enterTextInLimitNumberOfResponsesInputField(6);
76
73
  numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(6);
77
- for (let index = 0; index < 7; index++) {
78
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
79
- };
74
+ cy.wait(500);
75
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 5);
76
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 6);
80
77
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
81
78
  numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [6]);
82
79
  utilities.verifyElementVisibilityState(numberLinePage.errorMessage(), 'visible');
@@ -105,10 +102,10 @@ describe('Number line: Layout section', () => {
105
102
  numberLinePage.steps.confirmReset();
106
103
  numberLinePage.steps.uncheckCheckbox('Limit number of responses');
107
104
  utilities.verifyElementVisibilityState(numberLinePage.limitNumbersOfResponsesInputField(), 'notExist');
108
- for (let index = 0; index < 6; index++) {
105
+ for (let index = 0; index < 8; index++) {
109
106
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
110
107
  };
111
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
108
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5, 6]);
112
109
  });
113
110
  });
114
111
 
@@ -124,21 +121,21 @@ describe('Number line: Layout section', () => {
124
121
  numberLinePage.steps.enterTextInResponseSpacingInputField(28);
125
122
  numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
126
123
  numberLinePage.steps.switchToPreviewTab();
127
- numberLinePage.steps.verifyResponseSpacingPreviewTab('Horizontal', 28);
124
+ numberLinePage.steps.verifyResponseSpacingPreviewTab('Sideways', 28);
128
125
  });
129
126
 
130
- numberLinePage.tests.verifyLayoutSectionPreviewTabFunctionality("Horizontal");
127
+ numberLinePage.tests.verifyLayoutSectionPreviewTabFunctionality("Sideways");
131
128
 
132
129
  //Note: Unable to check on cypress, added to manual sheet
133
- it('When user checks Stack responses checkbox, then points should be plotted above the number line in preview tab', () => {
130
+ it('When user checks Stack segment/ray checkbox, then points should be plotted above the number line in preview tab', () => {
134
131
  numberLinePage.steps.switchToEditTab();
135
- numberLinePage.steps.checkCheckbox('Stack responses');
132
+ numberLinePage.steps.checkCheckbox('Stack segment/ray');
136
133
  numberLinePage.steps.switchToPreviewTab();
137
134
  });
138
135
 
139
- it('When user unchecks Stack responses checkbox, then points should be plotted on the number line in preview tab', () => {
136
+ it('When user unchecks Stack segment/ray checkbox, then points should be plotted on the number line in preview tab', () => {
140
137
  numberLinePage.steps.switchToEditTab();
141
- numberLinePage.steps.uncheckCheckbox("Stack responses");
138
+ numberLinePage.steps.uncheckCheckbox("Stack segment/ray");
142
139
  numberLinePage.steps.switchToPreviewTab();
143
140
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
144
141
  numberLinePage.steps.plotPointOnNumberLinePreviewTab(range, [2]);