itemengine-cypress-automation 1.0.193 → 1.0.194

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +6 -6
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +4 -4
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +4 -4
  4. package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +27 -12
  5. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +7 -7
  6. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +1 -1
  7. package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +2 -2
  8. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +9 -8
  9. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +7 -7
  11. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -2
  13. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +11 -9
  14. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -1
  15. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +1 -0
  16. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -1
  17. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +2 -2
  18. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +4 -6
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +11 -11
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
  24. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  25. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +6 -4
  26. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +6 -3
  27. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
  28. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
  29. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  30. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  31. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -1
  32. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
  33. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
  34. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +2 -1
  35. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -3
  36. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -3
  37. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +4 -3
  38. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +6 -5
  39. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +6 -5
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  41. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -1
  42. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -2
  43. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
  44. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  45. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
  46. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -4
  47. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  48. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  49. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  50. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  51. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  52. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  53. package/cypress/e2e/ILC/Matching/additionalSettings.js +4 -4
  54. package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
  55. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  56. package/cypress/e2e/ILC/Matching/studentViewSettings.js +3 -3
  57. package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +4 -4
  58. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +0 -4
  59. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +78 -86
  60. package/cypress/e2e/ILC/MultipleSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -6
  61. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +12 -12
  62. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -5
  63. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  64. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +9 -21
  65. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +6 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +2 -2
  67. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +5 -5
  68. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +2 -2
  69. package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +12 -21
  70. package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -13
  71. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +5 -5
  72. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +7 -7
  73. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
  74. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +5 -4
  75. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +5 -5
  76. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +5 -5
  77. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +1 -1
  78. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +30 -30
  79. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +2 -2
  80. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  81. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
  82. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -1
  83. package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +1 -1
  84. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -1
  85. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  86. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  87. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  88. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -1
  89. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  90. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  91. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  92. package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -2
  93. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +9 -9
  94. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -5
  95. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -1
  96. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +19 -19
  97. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsCompactRecorderStyle.js +1 -1
  98. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsStandardRecorderStyle.js +8 -8
  99. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +3 -3
  100. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -3
  101. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +2 -2
  102. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -1
  103. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -1
  104. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -1
  105. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorEditTabBasicSection.js +6 -6
  106. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -1
  107. package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/additionalSettings.js +5 -7
  108. package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/studentViewSettings.js +6 -33
  109. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorEditTabBasicSection.js +3 -3
  110. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorPreviewTabContents.smoke.js +2 -2
  111. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorEditTabBasicSection.js +3 -3
  112. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorPreviewTabContents.smoke.js +1 -1
  113. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorEditTabBasicSection.js +4 -4
  114. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorPreviewTabContents.smoke.js +2 -2
  115. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorEditTabBasicSection.js +3 -3
  116. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorPreviewTabContents.smoke.js +2 -2
  117. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorEditTabBasicSection.js +3 -3
  118. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorPreviewTabContents.smoke.js +1 -1
  119. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorEditTabBasicSection.js +3 -3
  120. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js +2 -2
  121. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/additionalSettings.js +4 -4
  122. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/headerSection.js +0 -2
  123. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/insertResourceLink.js +1 -1
  124. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  125. package/cypress/fixtures/theme/ilc.json +8 -2
  126. package/cypress/fixtures/uploads/sample1.txt +4 -0
  127. package/cypress/fixtures/uploads/sample2.txt +13 -0
  128. package/cypress/fixtures/uploads/sample300kb.txt +1 -0
  129. package/cypress/pages/audioPlayerPage.js +3 -2
  130. package/cypress/pages/chartsLinePage.js +2 -1
  131. package/cypress/pages/components/ariaLabelSectionComponent.js +1 -0
  132. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
  133. package/cypress/pages/components/colorPopupComponent.js +1 -1
  134. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  135. package/cypress/pages/components/editCategoryFlyout.js +26 -17
  136. package/cypress/pages/components/enableOuterBorderComponent.js +5 -5
  137. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
  138. package/cypress/pages/components/imageCanvasComponent.js +14 -8
  139. package/cypress/pages/components/layoutSectionComponent.js +1 -1
  140. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  141. package/cypress/pages/components/numberLineCommonComponent.js +2 -2
  142. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  143. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +1 -0
  144. package/cypress/pages/desmosGraphingPage.js +1 -1
  145. package/cypress/pages/desmosToolPage.js +16 -4
  146. package/cypress/pages/drawingResponsePage.js +3 -3
  147. package/cypress/pages/essayResponsePage.js +1 -0
  148. package/cypress/pages/feedbackScalePage.js +13 -3
  149. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -11
  150. package/cypress/pages/geoGebraActivityPage.js +12 -3
  151. package/cypress/pages/geoGebraToolsPage.js +1 -1
  152. package/cypress/pages/graphingPage.js +7 -8
  153. package/cypress/pages/matchingPage.js +8 -12
  154. package/cypress/pages/multipleSelectionPage.js +35 -1
  155. package/cypress/pages/numberLineLabelPage.js +1 -1
  156. package/cypress/pages/numberLinePage.js +36 -8
  157. package/cypress/pages/rulerPage.js +0 -6
  158. package/cypress/pages/selectQuestionResourceToolPage.js +0 -4
  159. package/cypress/pages/singleSelectionPage.js +1 -2
  160. package/cypress/pages/uploadResponsePage.js +2 -2
  161. package/cypress/pages/videoResponsePage.js +11 -11
  162. package/package.json +1 -1
  163. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +0 -366
  164. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +0 -41
  165. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingForAllViews.smoke.js +0 -0
  166. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingGroupedScoring.js +0 -0
  167. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
  168. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +0 -0
  169. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  170. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/manuallyAndNonScored.js +0 -0
  171. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -0
  172. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsBasic.js +0 -0
  173. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
  174. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  175. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsBasic.js +0 -0
  176. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
  177. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
  178. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  179. /package/cypress/e2e/ILC/UploadResponse/{uploadResponseEditTabBasicSections.js → editTabBasicSection.js} +0 -0
  180. /package/cypress/e2e/ILC/UploadResponse/{uploadResponseHeaderSection.js → headerSection.js} +0 -0
  181. /package/cypress/e2e/ILC/UploadResponse/{uplodResponsePreviewUploadedFileProperties.js → uploadedFileProperties.js} +0 -0
@@ -1,5 +1,7 @@
1
1
  import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
3
5
  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'];
4
6
 
5
7
  describe('Create item page - Multiple selection: All or nothing with alternative answer', () => {
@@ -53,8 +55,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
53
55
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
54
56
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
55
57
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
56
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
57
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
58
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
58
59
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
59
60
  cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
60
61
  multipleSelectionPage.steps.checkAnswer();
@@ -63,11 +64,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
63
64
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
64
65
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
65
66
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
66
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
67
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
67
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
68
68
  });
69
69
 
70
- multipleSelectionPage.tests.verifyPointsCorrectAnswerLabelAndBorderCSSAndA11y('multiple selection');
70
+ it('CSS of Correct answer state', { tags: 'css' }, () => {
71
+ utilities.verifyCSS(multipleSelectionPage.previewScoreText(), {
72
+ 'color': css.color.whiteText,
73
+ 'background-color': css.color.correctAnswer
74
+ });
75
+ multipleSelectionPage.correctIcon()
76
+ .verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
77
+ utilities.verifyCSS(multipleSelectionPage.correctIncorrectAnswerText(), {
78
+ 'color': css.color.text,
79
+ 'font-size': css.fontSize.default,
80
+ 'font-weight': css.fontWeight.regular
81
+ });
82
+ multipleSelectionPage.correctIcon()
83
+ .verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
84
+ });
85
+
86
+ it('Accessibility of correct answer state', { tags: 'a11y' }, () => {
87
+ cy.checkAccessibility(multipleSelectionPage.previewTabQuestionWrapper());
88
+ });
71
89
 
72
90
  //Failing due to: https://redmine.zeuslearning.com/issues/553572
73
91
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
@@ -82,8 +100,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
82
100
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
83
101
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
84
102
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
85
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
86
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
103
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
87
104
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
88
105
  cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
89
106
  multipleSelectionPage.steps.checkAnswer();
@@ -92,8 +109,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
92
109
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
93
110
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
94
111
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
95
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
96
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
112
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
97
113
  });
98
114
 
99
115
  it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -108,8 +124,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
108
124
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
109
125
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
110
126
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
111
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
112
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
127
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
113
128
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
129
  cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
115
130
  multipleSelectionPage.steps.checkAnswer();
@@ -117,8 +132,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
117
132
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
118
133
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
119
134
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
120
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
121
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
135
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
122
136
  });
123
137
 
124
138
  it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -133,8 +147,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
133
147
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
134
148
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
135
149
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
136
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
137
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
150
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
138
151
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
139
152
  cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
140
153
  multipleSelectionPage.steps.checkAnswer();
@@ -142,8 +155,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
142
155
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
143
156
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
144
157
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
145
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
146
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
158
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
147
159
  });
148
160
 
149
161
  it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion answer responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -156,8 +168,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
156
168
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
157
169
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
158
170
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
159
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
160
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
171
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
161
172
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
162
173
  cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
163
174
  multipleSelectionPage.steps.checkAnswer();
@@ -166,8 +177,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
166
177
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
167
178
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
168
179
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
169
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
170
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
180
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
171
181
  });
172
182
 
173
183
  it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses and unattempted correct options from the correct accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -180,16 +190,14 @@ describe('Create item page - Multiple selection: All or nothing with alternative
180
190
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
181
191
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
182
192
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
183
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
184
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
193
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
185
194
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
186
195
  cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
187
196
  multipleSelectionPage.steps.checkAnswer();
188
197
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
189
198
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
190
199
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
191
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
192
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
200
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
193
201
  });
194
202
 
195
203
  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, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
@@ -203,8 +211,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
203
211
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
204
212
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
205
213
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
206
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
207
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
214
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
208
215
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
209
216
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
210
217
  multipleSelectionPage.steps.checkAnswer();
@@ -212,11 +219,24 @@ describe('Create item page - Multiple selection: All or nothing with alternative
212
219
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
213
220
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
214
221
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
215
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
216
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
222
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
217
223
  });
218
224
 
219
- multipleSelectionPage.tests.verifyIncorrectAnswerLabelAndBorderCSSAndA11y('multiple selection');
225
+ it('CSS of incorrect answer state', { tags: 'css' }, () => {
226
+ multipleSelectionPage.incorrectIcon()
227
+ .verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
228
+ utilities.verifyCSS(multipleSelectionPage.correctIncorrectAnswerText(), {
229
+ 'color': css.color.text,
230
+ 'font-size': css.fontSize.default,
231
+ 'font-weight': css.fontWeight.regular
232
+ });
233
+ multipleSelectionPage.incorrectIcon()
234
+ .verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
235
+ });
236
+
237
+ it('Accessibility of incorrect answer state', { tags: 'a11y' }, () => {
238
+ cy.checkAccessibility(multipleSelectionPage.previewTabQuestionWrapper());
239
+ });
220
240
 
221
241
  it('When the user sets \'Award minimum score only if attempted\' in minimum scoring dropdown and allots minimum points such that minimum points are less than alternative answer points, then attempts the question with responses from the alternative accordion, the user should be awarded with alternative answer points', () => {
222
242
  multipleSelectionPage.steps.switchToEditTab();
@@ -287,8 +307,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
287
307
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
288
308
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
289
309
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
290
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
291
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
310
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
292
311
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
293
312
  cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
294
313
  multipleSelectionPage.steps.checkAnswer();
@@ -297,8 +316,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
297
316
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
298
317
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
299
318
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
300
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
301
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
319
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
302
320
  });
303
321
 
304
322
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
@@ -313,8 +331,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
313
331
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
314
332
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
315
333
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
316
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
317
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
334
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
318
335
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
319
336
  cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
320
337
  multipleSelectionPage.steps.checkAnswer();
@@ -323,8 +340,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
323
340
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
324
341
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
325
342
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
326
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
327
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
343
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
328
344
  });
329
345
 
330
346
  //Failing due to: https://redmine.zeuslearning.com/issues/553593
@@ -340,8 +356,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
340
356
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
341
357
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
342
358
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
343
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
344
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
359
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
345
360
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
346
361
  cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
347
362
  multipleSelectionPage.steps.checkAnswer();
@@ -349,8 +364,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
349
364
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
350
365
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
351
366
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
352
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
353
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
367
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
354
368
  });
355
369
 
356
370
  it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -365,8 +379,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
365
379
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
366
380
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
367
381
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
368
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
369
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
382
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
370
383
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
371
384
  cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
372
385
  multipleSelectionPage.steps.checkAnswer();
@@ -374,8 +387,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
374
387
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
375
388
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
376
389
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
377
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
378
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
390
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
379
391
  });
380
392
 
381
393
  it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion answer responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -388,8 +400,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
388
400
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
389
401
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
390
402
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
391
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
392
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
403
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
393
404
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
394
405
  cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
395
406
  multipleSelectionPage.steps.checkAnswer();
@@ -397,8 +408,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
397
408
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
398
409
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
399
410
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
400
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
401
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
411
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
402
412
  });
403
413
 
404
414
  it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response and unattempted correct options from the alternative accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -411,16 +421,14 @@ describe('Create item page - Multiple selection: All or nothing with alternative
411
421
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
412
422
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
413
423
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
414
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
415
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
424
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
416
425
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
417
426
  cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common response, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
418
427
  multipleSelectionPage.steps.checkAnswer();
419
428
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
420
429
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
421
430
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
422
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
423
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
431
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
424
432
  });
425
433
 
426
434
  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, correct icons should only be displayed besides unattempted correct options from the alternative accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
@@ -434,8 +442,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
434
442
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
435
443
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
436
444
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
437
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
438
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
445
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
439
446
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
440
447
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
441
448
  multipleSelectionPage.steps.checkAnswer();
@@ -443,8 +450,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
443
450
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
444
451
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
445
452
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
446
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
447
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
453
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
448
454
  });
449
455
  });
450
456
 
@@ -493,8 +499,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
493
499
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
494
500
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
495
501
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
496
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
497
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
502
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
498
503
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
499
504
  cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
500
505
  multipleSelectionPage.steps.checkAnswer();
@@ -503,8 +508,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
503
508
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
504
509
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
505
510
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
506
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
507
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
511
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
508
512
  });
509
513
 
510
514
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
@@ -519,8 +523,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
519
523
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
520
524
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
521
525
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
522
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
523
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
526
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
524
527
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
525
528
  cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
526
529
  multipleSelectionPage.steps.checkAnswer();
@@ -529,8 +532,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
529
532
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
530
533
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
531
534
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
532
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
533
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
535
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
534
536
  });
535
537
 
536
538
  it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -545,8 +547,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
545
547
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
546
548
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
547
549
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
548
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
549
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
550
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
550
551
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
551
552
  cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
552
553
  multipleSelectionPage.steps.checkAnswer();
@@ -554,8 +555,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
554
555
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
555
556
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
556
557
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
557
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
558
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
558
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
559
559
  });
560
560
 
561
561
  it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -570,8 +570,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
570
570
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
571
571
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
572
572
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
573
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
574
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
573
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
575
574
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
576
575
  cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
577
576
  multipleSelectionPage.steps.checkAnswer();
@@ -579,8 +578,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
579
578
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
580
579
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
581
580
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
582
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
583
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
581
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
584
582
  });
585
583
 
586
584
  it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion answer responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -593,8 +591,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
593
591
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
594
592
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
595
593
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
596
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
597
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
594
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
598
595
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
599
596
  cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
600
597
  multipleSelectionPage.steps.checkAnswer();
@@ -602,8 +599,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
602
599
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
603
600
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
604
601
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
605
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
606
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
602
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
607
603
  });
608
604
 
609
605
  it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response and unattempted correct options from the correct accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
@@ -616,16 +612,14 @@ describe('Create item page - Multiple selection: All or nothing with alternative
616
612
  multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
617
613
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
618
614
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
619
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
620
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
615
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
621
616
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
622
617
  cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
623
618
  multipleSelectionPage.steps.checkAnswer();
624
619
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
625
620
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
626
621
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
627
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
628
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
622
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
629
623
  });
630
624
 
631
625
  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, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
@@ -639,8 +633,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
639
633
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
640
634
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
641
635
  multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
642
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
643
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
636
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
644
637
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
645
638
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
646
639
  multipleSelectionPage.steps.checkAnswer();
@@ -648,8 +641,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
648
641
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
649
642
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
650
643
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
651
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
652
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
644
+ multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
653
645
  });
654
646
  });
655
647
  });
@@ -79,7 +79,7 @@ describe('Create item page - Multiple selection - Check answer functionality', (
79
79
  checkAnswer(view);
80
80
  multipleSelectionPage.steps.verifyCorrectIncorrectIconsNotExist();
81
81
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
82
- if (view === 'Item preview') {
82
+ if (view === 'Item preview' || view === 'Student view') {
83
83
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
84
84
  } else {
85
85
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
@@ -94,28 +94,23 @@ describe('Create item page - Multiple selection - Check answer functionality', (
94
94
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
95
95
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
96
96
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
97
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
98
97
  });
99
98
 
100
99
  it('When the user attempts the question partially correct and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
101
- multipleSelectionPage.steps.resetQuestionPreview();
102
100
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
103
101
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
104
102
  checkAnswer(view);
105
103
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
106
104
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
107
105
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
108
- multipleSelectionPage.steps.verifyIncorrectAttemptBorder();
109
106
  });
110
107
 
111
108
  it('When user attempts the question correctly, and clicks on \'Check answer\' button, then correct icons should be displayed beside all the correct responses, correct answer border and a \'Correct answer\' label should be displayed below the question preview', () => {
112
- multipleSelectionPage.steps.resetQuestionPreview();
113
109
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
114
110
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
115
111
  checkAnswer(view);
116
112
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
117
113
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
118
- multipleSelectionPage.steps.verifyCorrectAttemptBorder();
119
114
  });
120
115
  });
121
116
  });
@@ -371,31 +371,31 @@ describe('Create item page - Multiple selection grid: Partial different weights
371
371
  multipleSelectionGridPage.steps.switchToEditTab();
372
372
  multipleSelectionGridPage.steps.deleteAlternativeAnswerAccordion(0);
373
373
  multipleSelectionGridPage.steps.addAlternativeAnswerAccordion(1);
374
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 2 }, { row: 4, column: 2 }]);
374
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 4, column: 0 }]);
375
375
  multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 11.4, 1: 1.1, 2: 4.4, 3: 1.1 });
376
376
  multipleSelectionGridPage.steps.expandCorrectAnswerAccordion();
377
- multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.1, 2: 10.4, 3: 2.1 });
377
+ multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 10.4, 1: 2.1, 2: 1.2, 3: 2.1 });
378
378
  multipleSelectionGridPage.steps.switchToPreviewTab();
379
- multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 1 }, { row: 4, column: 2 }]);
379
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 2 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 2 }, { row: 4, column: 0 }]);
380
380
  multipleSelectionGridPage.steps.verifyPreviewScore(10.4, 18);
381
381
  multipleSelectionGridPage.steps.switchToGradingView();
382
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
383
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 2 });
382
384
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
383
385
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 2 });
384
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
385
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
386
- multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
387
- multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 2 });
386
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 2 });
387
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
388
388
  multipleSelectionGridPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
389
- multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 2 }]);
389
+ multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 4, column: 0 }]);
390
390
  multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
391
391
  cy.log('When the user has attempted the question with more number of correct responses from the correct accordion than the alternative accordion and clicks on \'Check answer\' button, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
392
392
  multipleSelectionGridPage.steps.checkAnswer();
393
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
394
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 2 });
393
395
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
394
396
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 2 });
395
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
396
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
397
- multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
398
- multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 2 });
397
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 2 });
398
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
399
399
  multipleSelectionGridPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
400
400
  multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
401
401
  });
@@ -365,16 +365,18 @@ describe('Create item page - Multiple selection grid: Partial different weights
365
365
  multipleSelectionGridPage.steps.switchToEditTab();
366
366
  multipleSelectionGridPage.steps.deleteAlternativeAnswerAccordion(0);
367
367
  multipleSelectionGridPage.steps.addAlternativeAnswerAccordion(1);
368
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 2 }, { row: 4, column: 2 }]);
369
- multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.1, 2: 10.4, 3: 2.1 });
368
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 2 }, { row: 4, column: 0 }]);
369
+ multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 10.4, 1: 2.1, 2: 1.2, 3: 2.1 });
370
370
  multipleSelectionGridPage.steps.expandCorrectAnswerAccordion();
371
371
  multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 11.4, 1: 1.1, 2: 4.4, 3: 1.1 });
372
372
  multipleSelectionGridPage.steps.switchToPreviewTab();
373
- multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 2, column: 1 }, { row: 3, column: 2 }, { row: 4, column: 1 }, { row: 4, column: 2 }]);
373
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 1 }, { row: 4, column: 2 }]);
374
374
  multipleSelectionGridPage.steps.verifyPreviewScore(10.4, 18);
375
375
  multipleSelectionGridPage.steps.switchToGradingView();
376
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
376
377
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
377
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 2 });
378
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
379
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
378
380
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
379
381
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 2 });
380
382
  multipleSelectionGridPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -382,8 +384,10 @@ describe('Create item page - Multiple selection grid: Partial different weights
382
384
  multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
383
385
  cy.log('When the user has attempted the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
384
386
  multipleSelectionGridPage.steps.checkAnswer();
387
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
385
388
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
386
- multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 2 });
389
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
390
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
387
391
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
388
392
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 2 });
389
393
  multipleSelectionGridPage.steps.verifyCorrectIncorrectStatusMessageNotExists();