itemengine-cypress-automation 1.0.50 → 1.0.62

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
  2. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
  3. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
  4. package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
  5. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
  6. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
  7. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
  8. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsStudentResponseAndLayout.js +206 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
  18. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
  19. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
  20. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
  21. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
  22. package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
  23. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
  24. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
  25. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
  26. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
  27. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
  28. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
  29. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
  30. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
  31. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
  32. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
  33. package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
  34. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
  35. package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
  36. package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
  37. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
  38. package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
  39. package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
  40. package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
  41. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
  42. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
  43. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
  44. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  45. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  46. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  47. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoring.js → Scoring/groupedOptionsAllOrNothingScoring.js} +2 -2
  48. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsManualAndNonScoredScoring.js → Scoring/groupedOptionsManualAndNonScoredScoring.js} +2 -2
  49. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScorings.js → Scoring/groupedOptionsPartialDifferentWeightsScoring.js} +2 -2
  50. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  51. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js → Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  52. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  53. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  54. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js → Scoring/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  55. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  56. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoring.js → Scoring/groupedOptionsPartialEqualWeightsScorings.js} +2 -2
  57. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  58. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  59. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  60. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoring.js → Scoring/standardOptionsAllOrNothingScoring.js} +2 -2
  61. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsManualAndNonScoredScoring.js → Scoring/standardOptionsManualAndNonScoredScoring.js} +2 -2
  62. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  63. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  64. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  65. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDIfferentScoring.js → Scoring/standardOptionsPartialDifferentWeightsScoring.js} +2 -2
  66. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +29 -0
  67. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  68. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +29 -0
  69. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoring.js → Scoring/standardOptionsPartialEqualWeightsScoring.js} +2 -2
  70. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
  71. package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
  72. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
  73. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
  74. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
  75. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
  76. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
  77. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
  78. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
  79. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
  80. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
  81. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
  82. package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
  83. package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
  84. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
  85. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
  86. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
  87. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
  88. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
  89. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
  90. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
  91. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
  92. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
  93. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
  94. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
  95. package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
  96. package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
  97. package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
  98. package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
  99. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
  100. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
  101. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
  102. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
  103. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
  104. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
  105. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
  106. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
  107. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
  108. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
  109. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
  110. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
  111. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
  112. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
  113. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
  114. package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
  115. package/cypress/pages/listMatchingScoring.js +16 -105
  116. package/package.json +1 -1
  117. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
  118. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
  119. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
  120. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
  121. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
  122. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
  123. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
  124. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  125. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  126. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
  127. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  128. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  129. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  130. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
  131. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  132. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  133. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  134. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
  135. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  136. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
  137. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  138. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
  139. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
  140. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
  141. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
  142. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
  143. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  144. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  145. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
  146. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  147. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  148. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  149. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
  150. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  151. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  152. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  153. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
  154. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  155. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
  156. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  157. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
  158. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  159. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  160. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  161. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  162. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  163. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  164. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
  165. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
  166. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  167. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  168. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  169. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
  170. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  171. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  172. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  173. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
  174. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  175. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  176. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  177. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
  178. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
  179. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  180. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  181. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  182. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
  183. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  184. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  185. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  186. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
@@ -1,731 +0,0 @@
1
- import { multipleSelectionGridPage } from "../../../pages/multipleSelectionGridPage";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- const css = Cypress.env('css');
4
-
5
- const questionStems = ['Bat', 'Ostrich', 'Platypus', 'Eagle'];
6
- const options = ['Is mammal', 'Lays eggs', 'Can fly'];
7
-
8
- describe('Create Item page - Multiple Selection Grid: Preview tab Scoring Section', () => {
9
- before(() => {
10
- cy.loginAs('admin');
11
- });
12
-
13
- describe('Question Preview: AutoScored - All or Nothing with alternate answer', () => {
14
- abortEarlySetup();
15
- before(() => {
16
- cy.log('Navigating to multiple selection grid question type');
17
- multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
18
- cy.log('Adding question instructions, question stems, options, setting correct answer and adding points for Autoscored scoring type and switching to Preview tab');
19
- multipleSelectionGridPage.steps.addQuestionInstructions();
20
- cy.barsPreLoaderWait()
21
- multipleSelectionGridPage.steps.addOption();
22
- multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
23
- multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
24
- multipleSelectionGridPage.steps.allotPoints(20);
25
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
26
- multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
27
- multipleSelectionGridPage.steps.allotPoints(12);
28
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
29
- multipleSelectionGridPage.steps.expandAdditonalSettings();
30
- multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
- multipleSelectionGridPage.steps.switchToPreviewTab();
32
- });
33
-
34
- it('Case: Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
35
- cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
36
- multipleSelectionGridPage.previewScoreText()
37
- .verifyInnerText('0/20');
38
-
39
- cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only correct answer options')
40
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
41
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
42
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
43
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
44
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
45
- multipleSelectionGridPage.incorrectIcon()
46
- .should('not.exist');
47
- multipleSelectionGridPage.correctIncorectAnswerLabel()
48
- .should('not.exist');
49
- multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
50
-
51
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
52
-
53
- cy.log('When the user selects correct answer options, points specified for correct answers should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides options set in the correct tab and label \'Correct answer\' and border should be displayed below the table')
54
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
55
- multipleSelectionGridPage.previewScoreText()
56
- .verifyInnerText('20/20');
57
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
58
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
59
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
60
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
61
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
62
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
63
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
64
-
65
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
66
-
67
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides selected options set in the correct tab and label \'Correct answer\' and border should be displayed below the table')
68
- multipleSelectionGridPage.steps.checkAnswer()
69
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
70
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
71
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
72
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
73
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
74
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
75
-
76
- cy.log('When the user selects alternate correct answer options, points specified for alternate correct answer (less than overall points) should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
77
- multipleSelectionGridPage.steps.resetQuestionPreview()
78
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
79
- multipleSelectionGridPage.previewScoreText()
80
- .verifyInnerText('12/20');
81
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
82
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
83
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
84
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
85
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
86
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
87
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
88
-
89
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
90
-
91
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides selected alternate correct answer options and label \'Correct answer\' should be displayed below the table')
92
- multipleSelectionGridPage.steps.checkAnswer()
93
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
94
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
95
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
96
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
97
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
98
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
99
-
100
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
101
- multipleSelectionGridPage.steps.resetQuestionPreview()
102
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
103
- multipleSelectionGridPage.previewScoreText()
104
- .verifyInnerText('0/20');
105
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
106
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
107
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
108
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
109
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
110
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
111
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
112
-
113
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
114
-
115
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
116
- multipleSelectionGridPage.steps.checkAnswer();
117
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
118
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
119
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
120
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
121
-
122
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and red cross-mark icon should be displayed beside the selected alternate tab options and \'Incorrect Answer\' label should be displayed below the table')
123
- multipleSelectionGridPage.steps.resetQuestionPreview()
124
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
125
- multipleSelectionGridPage.previewScoreText()
126
- .verifyInnerText('0/20');
127
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
128
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
129
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
130
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
131
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
132
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
133
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
134
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
135
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
136
-
137
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
138
-
139
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and red cross-mark icon should be displayed beside the selected alternate tab options and \'Incorrect Answer\' label should be displayed below the table')
140
- multipleSelectionGridPage.steps.checkAnswer();
141
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
142
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
143
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
144
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
145
-
146
- cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the correct tab and red cross-mark icon should be displayed beside the options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
147
- multipleSelectionGridPage.steps.resetQuestionPreview()
148
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
149
- multipleSelectionGridPage.previewScoreText()
150
- .verifyInnerText('0/20');
151
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
152
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
153
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
154
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
155
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
156
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
157
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
158
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
159
-
160
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
161
-
162
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected options from the correct tab and red cross-mark icon should be displayed beside the selected options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
163
- multipleSelectionGridPage.steps.checkAnswer()
164
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
165
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
166
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
167
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
168
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
169
-
170
- cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green checkmark icon should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
171
- multipleSelectionGridPage.steps.resetQuestionPreview()
172
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
173
- multipleSelectionGridPage.previewScoreText()
174
- .verifyInnerText('0/20');
175
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
176
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
177
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
178
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
179
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
180
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
181
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
182
-
183
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
184
-
185
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options and label \'Incorrect Answer\' should be displayed below the table')
186
- multipleSelectionGridPage.steps.checkAnswer()
187
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
188
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
189
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
190
-
191
- cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green check-mark icons should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
192
- multipleSelectionGridPage.steps.resetQuestionPreview()
193
- multipleSelectionGridPage.previewScoreText()
194
- .verifyInnerText('0/20');
195
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
196
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
197
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
198
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
199
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
200
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
201
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
202
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
203
-
204
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
205
-
206
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options and label \'Incorrect Answer\' should be displayed below the table')
207
- multipleSelectionGridPage.steps.checkAnswer()
208
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
209
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
210
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
211
-
212
- cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in correct tab and red cross-mark icon should be displayed for selected alternate tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
213
- multipleSelectionGridPage.steps.resetQuestionPreview()
214
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
215
- multipleSelectionGridPage.previewScoreText()
216
- .verifyInnerText('0/20');
217
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
218
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
219
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
220
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
221
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
222
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
223
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
224
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
225
-
226
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
227
-
228
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options, red cross-mark icon should be displayed beside selected alternate tab options and label \'Incorrect Answer\' should be displayed below the table')
229
- multipleSelectionGridPage.steps.checkAnswer()
230
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
231
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
232
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
233
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
234
-
235
- //Failing due to https://redmine.zeuslearning.com/issues/535509
236
- cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
237
- multipleSelectionGridPage.steps.resetQuestionPreview()
238
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
239
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
240
- multipleSelectionGridPage.previewScoreText()
241
- .verifyInnerText('0/20');
242
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
243
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
244
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
245
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
246
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
247
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
248
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
249
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
250
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
251
-
252
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
253
-
254
- cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
255
- multipleSelectionGridPage.steps.checkAnswer();
256
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
257
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
258
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
259
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
260
- });
261
-
262
- it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
263
- multipleSelectionGridPage.steps.switchToEditTab();
264
- multipleSelectionGridPage.steps.allotPoints('25');
265
- multipleSelectionGridPage.steps.switchToPreviewTab();
266
-
267
- cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate Answer points')
268
- multipleSelectionGridPage.previewScoreText()
269
- .verifyInnerText('0/25');
270
-
271
- cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only alternate answer options')
272
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
273
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
274
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
275
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
276
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
277
- multipleSelectionGridPage.incorrectIcon()
278
- .should('not.exist');
279
- multipleSelectionGridPage.correctIncorectAnswerLabel()
280
- .should('not.exist');
281
- multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
282
-
283
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
284
-
285
- cy.log('When the user selects correct answer options, points specified for correct answers should be provided(less than overall points) and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides options from the correct tab and label \'Correct answer\' and border should be displayed below the table')
286
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
287
- multipleSelectionGridPage.previewScoreText()
288
- .verifyInnerText('20/25');
289
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
290
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
291
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
292
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
293
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
294
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
295
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
296
-
297
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
298
-
299
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides selected options from the correct tab and label \'Correct answer\' and border should be displayed below the table')
300
- multipleSelectionGridPage.steps.checkAnswer()
301
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
302
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
303
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
304
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
305
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
306
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
307
-
308
- cy.log('When the user selects alternate correct answer options, full points specified for alternate correct answer should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
309
- multipleSelectionGridPage.steps.resetQuestionPreview()
310
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
311
- multipleSelectionGridPage.previewScoreText()
312
- .verifyInnerText('25/25');
313
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
314
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
315
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
316
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
317
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
318
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
319
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
320
-
321
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
322
-
323
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides selected alternate correct answer options and label \'Correct answer\' should be displayed below the table')
324
- multipleSelectionGridPage.steps.checkAnswer()
325
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
326
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
327
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
328
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
329
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
330
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
331
-
332
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the alternate tab and red cross-mark icons should be displayed beside the selected options from the correct tab and \'Incorrect Answer\' label should be displayed below the table')
333
- multipleSelectionGridPage.steps.resetQuestionPreview()
334
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
335
- multipleSelectionGridPage.previewScoreText()
336
- .verifyInnerText('0/25');
337
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
338
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
339
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
340
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
341
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [1]);
342
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
343
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
344
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
345
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
346
-
347
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
348
-
349
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the alternate tab and red cross-mark icons should be displayed beside the selected options from the correct tab \'Incorrect Answer\' label should be displayed below the table')
350
- multipleSelectionGridPage.steps.checkAnswer()
351
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
352
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [1]);
353
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
354
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
355
-
356
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the alternate tab and \'Incorrect Answer\' label should be displayed below the table')
357
- multipleSelectionGridPage.steps.resetQuestionPreview()
358
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
359
- multipleSelectionGridPage.previewScoreText()
360
- .verifyInnerText('0/25');
361
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
362
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
363
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
364
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
365
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
366
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
367
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
368
-
369
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
370
-
371
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the alternate tab \'Incorrect Answer\' label should be displayed below the table')
372
- multipleSelectionGridPage.steps.checkAnswer()
373
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
374
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
375
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
376
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
377
-
378
- cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the alternate tab and red cross-mark icon should be displayed beside the options from the correct tab and label \'Incorrect Answer\' should be displayed below the table')
379
- multipleSelectionGridPage.steps.resetQuestionPreview()
380
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
381
- multipleSelectionGridPage.previewScoreText()
382
- .verifyInnerText('0/25');
383
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
384
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
385
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
386
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
387
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
388
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
389
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
390
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
391
-
392
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
393
-
394
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected options from the alternate tab and red cross-mark icon should be displayed beside the selected options from the correct tab and label \'Incorrect Answer\' should be displayed below the table')
395
- multipleSelectionGridPage.steps.checkAnswer()
396
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
397
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
398
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
399
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
400
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
401
-
402
- cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green checkmark icon should be displayed for the alternate tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
403
- multipleSelectionGridPage.steps.resetQuestionPreview()
404
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
405
- multipleSelectionGridPage.previewScoreText()
406
- .verifyInnerText('0/25');
407
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
408
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
409
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
410
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
411
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
412
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
413
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
414
-
415
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
416
-
417
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options and label \'Incorrect Answer\' should be displayed below the table')
418
- multipleSelectionGridPage.steps.checkAnswer()
419
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
420
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
421
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
422
-
423
- cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) then green check-mark icons should be displayed for the alternate tab options and red cross-mark icon should not be displayed user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
424
- multipleSelectionGridPage.steps.resetQuestionPreview()
425
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
426
- multipleSelectionGridPage.previewScoreText()
427
- .verifyInnerText('0/25');
428
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
429
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
430
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
431
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
432
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
433
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1]);
434
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
435
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
436
-
437
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
438
-
439
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the selected correct and alternate tab options and label \'Incorrect Answer\' should be displayed below the table')
440
- multipleSelectionGridPage.steps.checkAnswer()
441
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
442
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1]);
443
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
444
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
445
-
446
- cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in alternate tab and red cross-mark icon should be displayed for selected correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
447
- multipleSelectionGridPage.steps.resetQuestionPreview()
448
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
449
- multipleSelectionGridPage.previewScoreText()
450
- .verifyInnerText('0/25');
451
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
452
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
453
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
454
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
455
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
456
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
457
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
458
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
459
-
460
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
461
-
462
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the selected options set in alternate tab and red cross-mark icon should be displayed for selected correct tab options and label \'Incorrect Answer\' should be displayed below the table')
463
- multipleSelectionGridPage.steps.checkAnswer()
464
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
465
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
466
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
467
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
468
-
469
- cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
470
- multipleSelectionGridPage.steps.resetQuestionPreview()
471
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
472
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
473
- multipleSelectionGridPage.previewScoreText()
474
- .verifyInnerText('0/25');
475
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
476
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
477
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
478
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
479
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
480
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
481
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
482
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
483
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
484
-
485
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
486
-
487
- cy.log('When the user clicks on \'Check answer\' button, red cross-mark icons should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
488
- multipleSelectionGridPage.steps.checkAnswer();
489
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
490
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
491
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
492
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
493
-
494
- });
495
-
496
- it('Alternate answer case: When Alternate Answer points and Correct Answer points both are equal', () => {
497
- cy.log('Pre step: Switching to Edit tab and alloting alternate answer points equal to correct answer points')
498
- multipleSelectionGridPage.steps.switchToEditTab()
499
- multipleSelectionGridPage.steps.allotPoints('20');
500
- multipleSelectionGridPage.steps.switchToPreviewTab()
501
-
502
- cy.log('Checking the total points displayed besides Show correct answer checkbox')
503
- multipleSelectionGridPage.previewScoreText()
504
- .verifyInnerText('0/20')
505
-
506
- cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only correct answer options')
507
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
508
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
509
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
510
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
511
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
512
- multipleSelectionGridPage.incorrectIcon()
513
- .should('not.exist');
514
- multipleSelectionGridPage.correctIncorectAnswerLabel()
515
- .should('not.exist');
516
- multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
517
-
518
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
519
-
520
- cy.log('When the user selects correct answer options, points specified for correct answers should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides correct tab options and label \'Correct answer\' and border should be displayed below the table')
521
- multipleSelectionGridPage.steps.resetQuestionPreview()
522
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
523
- multipleSelectionGridPage.previewScoreText()
524
- .verifyInnerText('20/20');
525
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
526
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
527
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
528
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
529
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
530
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
531
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
532
-
533
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
534
-
535
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides selected correct tab options and label \'Correct answer\' should be displayed below the below the table')
536
- multipleSelectionGridPage.steps.checkAnswer()
537
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
538
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
539
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
540
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
541
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
542
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
543
-
544
- cy.log('When the user selects alternate correct answer options, full points points for alternate correct answer should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
545
- multipleSelectionGridPage.steps.resetQuestionPreview()
546
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
547
- multipleSelectionGridPage.previewScoreText()
548
- .verifyInnerText('20/20');
549
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
550
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
551
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
552
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
553
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
554
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
555
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
556
-
557
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
558
-
559
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides selected alternate correct answer options and label \'Correct answer\' should be displayed below the table')
560
- multipleSelectionGridPage.steps.checkAnswer()
561
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
562
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
563
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
564
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
565
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
566
- multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
567
-
568
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
569
- multipleSelectionGridPage.steps.resetQuestionPreview()
570
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
571
- multipleSelectionGridPage.previewScoreText()
572
- .verifyInnerText('0/20');
573
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
574
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
575
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
576
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
577
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
578
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
579
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
580
-
581
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
582
-
583
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and label \'Incorrect Answer\' should be displayed below the table')
584
- multipleSelectionGridPage.steps.checkAnswer()
585
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
586
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
587
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
588
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
589
-
590
- //Failing due to https://redmine.zeuslearning.com/issues/535509
591
- cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
592
- multipleSelectionGridPage.steps.resetQuestionPreview()
593
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
594
- multipleSelectionGridPage.previewScoreText()
595
- .verifyInnerText('0/20');
596
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
597
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
598
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
599
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
600
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
601
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
602
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
603
-
604
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
605
-
606
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and label \'Incorrect Answer\' should be displayed below the table')
607
- multipleSelectionGridPage.steps.checkAnswer();
608
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
609
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
610
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
611
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
612
-
613
- cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the correct tab and red cross-mark icon should be displayed beside the options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
614
- multipleSelectionGridPage.steps.resetQuestionPreview()
615
- multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
616
- multipleSelectionGridPage.previewScoreText()
617
- .verifyInnerText('0/20');
618
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
619
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
620
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
621
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
622
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
623
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
624
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
625
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
626
-
627
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
628
-
629
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected options from the correct tab and red cross-mark icon should be displayed beside the selected options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
630
- multipleSelectionGridPage.steps.checkAnswer()
631
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
632
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
633
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
634
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
635
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
636
-
637
- cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green checkmark icon should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
638
- multipleSelectionGridPage.steps.resetQuestionPreview()
639
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
640
- multipleSelectionGridPage.previewScoreText()
641
- .verifyInnerText('0/20');
642
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
643
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
644
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
645
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
646
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
647
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
648
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
649
-
650
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
651
-
652
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct tab answer options and label \'Incorrect Answer\' should be displayed below the table')
653
- multipleSelectionGridPage.steps.checkAnswer()
654
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
655
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
656
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
657
-
658
- cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green check-mark icons should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
659
- multipleSelectionGridPage.steps.resetQuestionPreview()
660
- multipleSelectionGridPage.previewScoreText()
661
- .verifyInnerText('0/20');
662
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
663
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
664
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
665
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
666
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
667
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
668
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
669
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
670
-
671
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
672
-
673
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct tab answer options and label \'Incorrect Answer\' should be displayed below the table')
674
- multipleSelectionGridPage.steps.checkAnswer()
675
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
676
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
677
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
678
-
679
- cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in correct tab and red cross-mark icon should be displayed for selected alternate tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
680
- multipleSelectionGridPage.steps.resetQuestionPreview()
681
- multipleSelectionGridPage.previewScoreText()
682
- .verifyInnerText('0/20');
683
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
684
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
685
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
686
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
687
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
688
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
689
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
690
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
691
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
692
-
693
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
694
-
695
- cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options, red cross-mark icon should be displayed beside selected alternate tab options and label \'Incorrect Answer\' should be displayed below the table')
696
- multipleSelectionGridPage.steps.checkAnswer()
697
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
698
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
699
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
700
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
701
-
702
- //Failing due to https://redmine.zeuslearning.com/issues/535509
703
- cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
704
- multipleSelectionGridPage.steps.resetQuestionPreview()
705
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
706
- multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
707
- multipleSelectionGridPage.previewScoreText()
708
- .verifyInnerText('0/20');
709
- multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
710
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
711
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
712
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
713
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
714
- multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
715
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
716
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
717
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
718
-
719
- multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
720
-
721
- cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
722
- multipleSelectionGridPage.steps.checkAnswer();
723
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
724
- multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
725
- multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
726
- multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
727
- });
728
-
729
- multipleSelectionGridPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer('20')
730
- });
731
- });