itemengine-cypress-automation 1.0.51 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) 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/fillInTheGapsOverImageDropdownAdditionalSettingsAnswerNumeration.js +206 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -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/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
  45. package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
  46. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
  47. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
  48. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
  49. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
  50. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
  51. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
  52. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
  53. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
  54. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
  55. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
  56. package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
  57. package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
  58. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
  59. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
  60. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
  61. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
  62. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
  63. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
  64. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
  65. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
  66. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
  67. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
  68. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
  69. package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
  70. package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
  71. package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
  72. package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
  73. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
  74. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
  75. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
  76. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
  77. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
  78. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
  79. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
  80. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
  81. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
  82. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
  83. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
  84. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
  85. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
  86. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
  87. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
  88. package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
  89. package/package.json +1 -1
  90. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
  91. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
  92. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
  93. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
  94. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
  95. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
  96. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
  97. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  98. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  99. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
  100. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  101. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  102. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  103. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
  104. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  105. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  106. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  107. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
  108. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  109. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
  110. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  111. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
  112. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
  113. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
  114. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
  115. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
  116. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  117. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  118. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
  119. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  120. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  121. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  122. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
  123. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  124. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  125. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  126. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
  127. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  128. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
  129. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  130. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
  131. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  132. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  133. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  134. /package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridOptionsAdditionalSettings.js → multipleSelectionAdditionalSettingsGridOptions.js} +0 -0
@@ -0,0 +1,313 @@
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 - Partial equal weights 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 Partial equal weights scoring type and switching to Preview tab');
19
+ multipleSelectionGridPage.steps.addQuestionInstructions();
20
+ multipleSelectionGridPage.steps.addOption()
21
+ multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
22
+ multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
23
+ multipleSelectionGridPage.steps.selectPartialEqualWeightsCheckbox();
24
+ multipleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
25
+ multipleSelectionGridPage.steps.allotPoints(20);
26
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
27
+ multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
28
+ multipleSelectionGridPage.steps.allotPoints(24);
29
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
30
+ multipleSelectionGridPage.steps.expandAdditonalSettings();
31
+ multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
32
+ multipleSelectionGridPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
36
+ cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
37
+ multipleSelectionGridPage.previewScoreText()
38
+ .verifyInnerText('0/24');
39
+
40
+ 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')
41
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
42
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
43
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
44
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
45
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
46
+ multipleSelectionGridPage.incorrectIcon()
47
+ .should('not.exist');
48
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
49
+ .should('not.exist');
50
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
51
+
52
+ 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 correct tab options and correct/incorrect answer label and its border should not be displayed')
53
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
54
+ multipleSelectionGridPage.previewScoreText()
55
+ .verifyInnerText('20/24');
56
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
57
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
58
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
59
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
60
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
61
+ .should('not.exist');
62
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
63
+
64
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
65
+
66
+ cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides correct tab options and correct/incorrect answer label and its border should not be displayed')
67
+ multipleSelectionGridPage.steps.checkAnswer()
68
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
69
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
70
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
71
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
72
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
73
+ .should('not.exist');
74
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
75
+
76
+ 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 correct/incorrect answer label and its border should not be displayed')
77
+ multipleSelectionGridPage.steps.resetQuestionPreview()
78
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
79
+ multipleSelectionGridPage.previewScoreText()
80
+ .verifyInnerText('24/24');
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.correctIncorectAnswerLabel()
87
+ .should('not.exist');
88
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
89
+
90
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
91
+
92
+ cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
93
+ multipleSelectionGridPage.steps.checkAnswer()
94
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
95
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
96
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
97
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
98
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
99
+ .should('not.exist');
100
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
101
+
102
+ 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 user should be awarded with points for the correctly attempted options and green check-mark icons should be displayed beside the options set in the correct tab and correct/incorrect answer label and its border should not be displayed')
103
+ multipleSelectionGridPage.steps.resetQuestionPreview()
104
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
105
+ multipleSelectionGridPage.previewScoreText()
106
+ .verifyInnerText('10/24');
107
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
108
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
109
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
110
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
111
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
112
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
113
+ .should('not.exist');
114
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
115
+
116
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
117
+
118
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected correct tab answer and correct/incorrect answer label and its border should not be displayed')
119
+ multipleSelectionGridPage.steps.checkAnswer();
120
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
121
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
122
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
123
+ .should('not.exist');
124
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
125
+
126
+ 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 user should be awarded with the points from selected correct answer options and green check-mark icons should be displayed beside the options set in the alternate tab and correct/incorrect answer label and its border should not be displayed')
127
+ multipleSelectionGridPage.steps.resetQuestionPreview()
128
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
129
+ multipleSelectionGridPage.previewScoreText()
130
+ .verifyInnerText('12/24');
131
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
132
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
133
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
134
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
135
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
136
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
137
+ .should('not.exist');
138
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
139
+
140
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
141
+
142
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the options set in the alternate tab and correct/incorrect answer label and its border should not be displayed')
143
+ multipleSelectionGridPage.steps.checkAnswer()
144
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
145
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
146
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
147
+ .should('not.exist');
148
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
149
+
150
+ cy.log('When user selects equal number of options from the correct tab and alternate tab then points of the correctly attempted options from the alternate tab 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 correct/incorrect answer label and its border should not be displayed')
151
+ multipleSelectionGridPage.steps.resetQuestionPreview()
152
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
153
+ multipleSelectionGridPage.previewScoreText()
154
+ .verifyInnerText('12/24');
155
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
156
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
157
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
158
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
159
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
160
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
161
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
162
+ .should('not.exist');
163
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
164
+
165
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
166
+
167
+ cy.log('When the user clicks on \'Check answer\' button, 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 correct/incorrect answer label and its border should not be displayed')
168
+ multipleSelectionGridPage.steps.checkAnswer()
169
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
170
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
171
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
172
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
173
+ .should('not.exist');
174
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
175
+
176
+ 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) then the user should be awarded with points of the alternate tab(as it has more points) and user selects show correct answer checkbox then green checkmark icon should be displayed for the alternate tab options and correct/incorrect answer label and its border should not be displayed')
177
+ multipleSelectionGridPage.steps.resetQuestionPreview()
178
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
179
+ multipleSelectionGridPage.previewScoreText()
180
+ .verifyInnerText('6/24');
181
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
182
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
183
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
184
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
185
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
186
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
187
+ .should('not.exist');
188
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
189
+
190
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
191
+
192
+ cy.log('When the user clicks on \'Check answer\' button green checkmark icon should be displayed for the alternate tab options and correct/incorrect answer label and its border should not be displayed')
193
+ multipleSelectionGridPage.steps.checkAnswer()
194
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
195
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
196
+ .should('not.exist');
197
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
198
+
199
+ 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 with points of the correct tab and correct/incorrect answer label and its border should not be displayed')
200
+ multipleSelectionGridPage.steps.resetQuestionPreview()
201
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
202
+ multipleSelectionGridPage.previewScoreText()
203
+ .verifyInnerText('5/24');
204
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
205
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
206
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
207
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
208
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
209
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
210
+ .should('not.exist');
211
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
212
+
213
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
214
+
215
+ cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the correct tab options and correct/incorrect answer label and its border should not be displayed')
216
+ multipleSelectionGridPage.steps.checkAnswer()
217
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
218
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
219
+ .should('not.exist');
220
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
221
+
222
+ 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 correct/incorrect answer label and its border should not be displayed')
223
+ multipleSelectionGridPage.steps.resetQuestionPreview()
224
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
225
+ multipleSelectionGridPage.previewScoreText()
226
+ .verifyInnerText('0/24');
227
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
228
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
229
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
230
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
231
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
232
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
233
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
234
+ .should('not.exist');
235
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
236
+
237
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
238
+
239
+ cy.log('When the user clicks on \'Check answer\' button 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 correct/incorrect answer label and its border should not be displayed')
240
+ multipleSelectionGridPage.steps.checkAnswer()
241
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
242
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
243
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
244
+ .should('not.exist');
245
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
246
+
247
+ 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 correct/incorrect answer label and its border should not be displayed')
248
+ multipleSelectionGridPage.steps.resetQuestionPreview()
249
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
250
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
251
+ multipleSelectionGridPage.previewScoreText()
252
+ .verifyInnerText('0/24');
253
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
254
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
255
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
256
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
257
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
258
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
259
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
260
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
261
+ .should('not.exist');
262
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
263
+
264
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
265
+
266
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
267
+ multipleSelectionGridPage.steps.checkAnswer()
268
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
269
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
270
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
271
+ .should('not.exist');
272
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
273
+
274
+ cy.log('(Overachiever case) Prestep: Switching to Edit tab and alloting points to correct and alternate tab such that the difference between the points is substantial and the points per response are in decimal')
275
+ multipleSelectionGridPage.steps.switchToEditTab();
276
+ multipleSelectionGridPage.steps.deleteAlternateTab();
277
+ multipleSelectionGridPage.steps.addAlternateTab(1);
278
+ multipleSelectionGridPage.steps.allotPoints('50');
279
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [2], [0]]);
280
+ multipleSelectionGridPage.steps.navigateToCorrectTab();
281
+ multipleSelectionGridPage.steps.allotPoints('10');
282
+ multipleSelectionGridPage.steps.switchToPreviewTab();
283
+
284
+ cy.log('Overachiever case: When the user selects more number of correct options from the correct tab than the alternate tab but the score of the individual response selected from the alternate tab overpowers the combined score of the correct tab answers then green checkmark icons should be displayed for the alternate tab options, red crossmark icon should be displayed for the correct tab options and points awarded should be of the alternate tab and correct/incorrect answer label and its border should not be displayed')
285
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1], [1, 2]]);
286
+ multipleSelectionGridPage.previewScoreText()
287
+ .verifyInnerText('12.5/50')
288
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
289
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
290
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
291
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [2]);
292
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [0]);
293
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
294
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [0, 1]);
295
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1, 2]);
296
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
297
+ .should('not.exist');
298
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
299
+
300
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
301
+
302
+ cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green checkmark icons should be displayed for the alternate tab options, red crossmark icon should be displayed for the correct tab options and correct/incorrect answer label and its border should not be displayed')
303
+ multipleSelectionGridPage.steps.checkAnswer()
304
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
305
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
306
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [0, 1]);
307
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1, 2]);
308
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
309
+ .should('not.exist');
310
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
311
+ });
312
+ });
313
+ });
@@ -0,0 +1,285 @@
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 - Partial equal weights 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 Partial equal weights scoring type and switching to Preview tab');
19
+ multipleSelectionGridPage.steps.addQuestionInstructions();
20
+ multipleSelectionGridPage.steps.addOption()
21
+ multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
22
+ multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
23
+ multipleSelectionGridPage.steps.selectPartialEqualWeightsCheckbox();
24
+ multipleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
25
+ multipleSelectionGridPage.steps.allotPoints(20);
26
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
27
+ multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
28
+ multipleSelectionGridPage.steps.allotPoints(20);
29
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
30
+ multipleSelectionGridPage.steps.expandAdditonalSettings();
31
+ multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
32
+ multipleSelectionGridPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ it('Alternate answer case: When Alternate Answer points and Correct Answer points both are equal', () => {
36
+ cy.log('Checking the total points displayed besides Show correct answer checkbox')
37
+ multipleSelectionGridPage.previewScoreText()
38
+ .verifyInnerText('0/20')
39
+
40
+ 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 and correct/incorrect answer label and its border should not be displayed')
41
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
42
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
43
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
44
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
45
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
46
+ multipleSelectionGridPage.incorrectIcon()
47
+ .should('not.exist');
48
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
49
+ .should('not.exist');
50
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
51
+
52
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
53
+
54
+ 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 correct/incorrect answer label and its border should not be displayed')
55
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
56
+ multipleSelectionGridPage.previewScoreText()
57
+ .verifyInnerText('20/20');
58
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
59
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
60
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
61
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
62
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
63
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
64
+ .should('not.exist');
65
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
66
+
67
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
68
+
69
+ cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides correct tab options and correct/incorrect answer label and its border should not be displayed')
70
+ multipleSelectionGridPage.steps.checkAnswer()
71
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
72
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
73
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
74
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
75
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
76
+ .should('not.exist');
77
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
78
+
79
+ 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 correct/incorrect answer label and its border should not be displayed')
80
+ multipleSelectionGridPage.steps.resetQuestionPreview()
81
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
82
+ multipleSelectionGridPage.previewScoreText()
83
+ .verifyInnerText('20/20');
84
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
85
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
86
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
87
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
88
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
89
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
90
+ .should('not.exist');
91
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
92
+
93
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
94
+
95
+ cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
96
+ multipleSelectionGridPage.steps.checkAnswer()
97
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
98
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
99
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
100
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
101
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
102
+ .should('not.exist');
103
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
104
+
105
+ 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 correct/incorrect answer label and its border should not be displayed')
106
+ multipleSelectionGridPage.steps.resetQuestionPreview()
107
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
108
+ multipleSelectionGridPage.previewScoreText()
109
+ .verifyInnerText('10/20');
110
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
111
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
112
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
113
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
114
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
115
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
116
+ .should('not.exist');
117
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
118
+
119
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
120
+
121
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected correct tab answer and correct/incorrect answer label and its border should not be displayed')
122
+ multipleSelectionGridPage.steps.checkAnswer()
123
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
124
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
125
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
126
+ .should('not.exist');
127
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
128
+
129
+ 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 its border should not be displayed')
130
+ multipleSelectionGridPage.steps.resetQuestionPreview()
131
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
132
+ multipleSelectionGridPage.previewScoreText()
133
+ .verifyInnerText('10/20');
134
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
135
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
136
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
137
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
138
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
139
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
140
+ .should('not.exist');
141
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
142
+
143
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
144
+
145
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the options set in the alternate tab and correct/incorrect answer label and its border should not be displayed')
146
+ multipleSelectionGridPage.steps.checkAnswer();
147
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
148
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
149
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
150
+ .should('not.exist');
151
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
152
+
153
+ cy.log('When user selects equal number of options from the correct tab and alternate tab then points for the correctly attempted question stem 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 correct/incorrect answer label and its border should not be displayed')
154
+ multipleSelectionGridPage.steps.resetQuestionPreview()
155
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
156
+ multipleSelectionGridPage.previewScoreText()
157
+ .verifyInnerText('10/20');
158
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
159
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
160
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
161
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
162
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
163
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
164
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
165
+ .should('not.exist');
166
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
167
+
168
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
169
+
170
+ cy.log('When the user clicks on \'Check answer\' button, 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 correct/incorrect answer label and its border should not be displayed')
171
+ multipleSelectionGridPage.steps.checkAnswer()
172
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
173
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
174
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
175
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
176
+ .should('not.exist');
177
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
178
+
179
+ 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 points for the correctly attempted question stem and correct/incorrect answer label and its border should not be displayed')
180
+ multipleSelectionGridPage.steps.resetQuestionPreview()
181
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
182
+ multipleSelectionGridPage.previewScoreText()
183
+ .verifyInnerText('5/20');
184
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
185
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
186
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
187
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
188
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
189
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
190
+ .should('not.exist');
191
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
192
+
193
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
194
+
195
+ 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 correct/incorrect answer label and its border should not be displayed')
196
+ multipleSelectionGridPage.steps.checkAnswer()
197
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
198
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
199
+ .should('not.exist');
200
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
201
+
202
+ 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 points for the correctly attempted question stem and correct/incorrect answer label and its border should not be displayed')
203
+ multipleSelectionGridPage.steps.resetQuestionPreview()
204
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
205
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
206
+ multipleSelectionGridPage.previewScoreText()
207
+ .verifyInnerText('5/20');
208
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
209
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
210
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
211
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
212
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
213
+ .should('not.exist');
214
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
215
+
216
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
217
+
218
+ 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 correct/incorrect answer label and its border should not be displayed')
219
+ multipleSelectionGridPage.steps.checkAnswer()
220
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
221
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
222
+ .should('not.exist');
223
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
224
+
225
+ 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 correct/incorrect answer label and its border should not be displayed')
226
+ multipleSelectionGridPage.steps.resetQuestionPreview()
227
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
228
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
229
+ multipleSelectionGridPage.previewScoreText()
230
+ .verifyInnerText('0/20');
231
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
232
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
233
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
234
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
235
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
236
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
237
+ .should('not.exist');
238
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
239
+
240
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
241
+
242
+ cy.log('When the user clicks on \'Check answer\' button 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 correct/incorrect answer label and its border should not be displayed')
243
+ multipleSelectionGridPage.steps.checkAnswer()
244
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
245
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
246
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
247
+ .should('not.exist');
248
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
249
+
250
+ 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 correct/incorrect answer label and its border should not be displayed')
251
+ multipleSelectionGridPage.steps.resetQuestionPreview()
252
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
253
+ multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
254
+ multipleSelectionGridPage.previewScoreText()
255
+ .verifyInnerText('0/20');
256
+ multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
257
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
258
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
259
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
260
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
261
+ multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
262
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
263
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
264
+ .should('not.exist');
265
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
266
+
267
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
268
+
269
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
270
+ multipleSelectionGridPage.steps.checkAnswer();
271
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
272
+ multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
273
+ multipleSelectionGridPage.correctIncorectAnswerLabel()
274
+ .should('not.exist');
275
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
276
+ });
277
+
278
+ multipleSelectionGridPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer('20');
279
+
280
+ //Need to add an extra case after https://redmine.zeuslearning.com/issues/535521 is resolved
281
+ multipleSelectionGridPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer('12', '20');
282
+
283
+ multipleSelectionGridPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer('12', '20');
284
+ });
285
+ });