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,219 @@
1
+ import { singleSelectionGridPage } from "../../../pages/singleSelectionGridPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ const questionStems = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
5
+ const options = ['Fully agree as true', 'Fully agree as false', 'Somewhat agree'];
6
+
7
+ describe('Create Item page - Single Selection Grid: Preview tab Scoring Section', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Question Preview: AutoScored - Partial different weights with alternate answer', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ cy.log('Navigating to Single selection grid question type');
16
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
17
+ 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');
18
+ singleSelectionGridPage.steps.addQuestionInstructions();
19
+ singleSelectionGridPage.steps.addOption()
20
+ singleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
21
+ singleSelectionGridPage.steps.addInputToAllOptionsFields(options);
22
+ singleSelectionGridPage.steps.selectPartialDifferentWeightsCheckbox();
23
+ singleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
24
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 1, 0, 1]);
25
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([5, 7, 4, 8]);
26
+ singleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
27
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 2, 2, 1]);
28
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([6, 9, 4, 5]);
29
+ singleSelectionGridPage.steps.expandAdditonalSettings();
30
+ singleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ singleSelectionGridPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ it('Alternate answer case: When Alternate Answer points and Correct Answer points both are equal', () => {
35
+ cy.log('Checking total points displayed')
36
+ singleSelectionGridPage.previewScoreText()
37
+ .verifyInnerText('0/24');
38
+
39
+ cy.log('When the user selects \'Show correct answer\' checkbox without attempting the question, green check-mark icons should be displayed besides only correct answer options')
40
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
41
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
42
+ singleSelectionGridPage.incorrectIcon()
43
+ .should('not.exist');
44
+ singleSelectionGridPage.correctIncorectAnswerLabel()
45
+ .should('not.exist');
46
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
47
+
48
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
49
+
50
+ cy.log('When the user selects correct answer options, full score should be provided and green checkmark icon should be displayed beside the correct answer options and correct/incorrect answer label and its border should not be displayed')
51
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 0, 1]);
52
+ singleSelectionGridPage.previewScoreText()
53
+ .verifyInnerText('24/24');
54
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
55
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
56
+ singleSelectionGridPage.incorrectIcon()
57
+ .should('not.exist');
58
+ singleSelectionGridPage.correctIncorectAnswerLabel()
59
+ .should('not.exist');
60
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
61
+
62
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
63
+
64
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed only beside selected correct answer option and correct/incorrect answer label and its border should not be displayed')
65
+ singleSelectionGridPage.steps.checkAnswer()
66
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
67
+ singleSelectionGridPage.incorrectIcon()
68
+ .should('not.exist');
69
+ singleSelectionGridPage.correctIncorectAnswerLabel()
70
+ .should('not.exist');
71
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
72
+
73
+ cy.log('When the user selects alternate correct answer option, score specified for alternate correct answer (full score) should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides only alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
74
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 2, 1]);
75
+ singleSelectionGridPage.previewScoreText()
76
+ .verifyInnerText('24/24')
77
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
78
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
79
+ singleSelectionGridPage.incorrectIcon()
80
+ .should('not.exist');
81
+ singleSelectionGridPage.correctIncorectAnswerLabel()
82
+ .should('not.exist');
83
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
84
+
85
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
86
+
87
+ cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides only alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
88
+ singleSelectionGridPage.steps.checkAnswer()
89
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
90
+ singleSelectionGridPage.incorrectIcon()
91
+ .should('not.exist');
92
+ singleSelectionGridPage.correctIncorectAnswerLabel()
93
+ .should('not.exist');
94
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
95
+
96
+ 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 alloted with points of the correctly attempted options green check-mark icons should be displayed beside the options set in the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
97
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 1, 0, 2]);
98
+ singleSelectionGridPage.previewScoreText()
99
+ .verifyInnerText('11/24');
100
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
101
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
102
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
103
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
104
+ singleSelectionGridPage.correctIncorectAnswerLabel()
105
+ .should('not.exist');
106
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
107
+
108
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
109
+
110
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected correct answer options and red check-mark icons should be displayed besides selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
111
+ singleSelectionGridPage.steps.checkAnswer();
112
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
113
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
114
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 0);
115
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
116
+ singleSelectionGridPage.correctIncorectAnswerLabel()
117
+ .should('not.exist');
118
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
119
+
120
+ 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 red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
121
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 2, 2, 0]);
122
+ singleSelectionGridPage.previewScoreText()
123
+ .verifyInnerText('13/24');
124
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
125
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
126
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
127
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 0);
128
+ singleSelectionGridPage.correctIncorectAnswerLabel()
129
+ .should('not.exist');
130
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
131
+
132
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
133
+
134
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected correct answer options and red check-mark icons should be displayed besides selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
135
+ singleSelectionGridPage.steps.checkAnswer();
136
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
137
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
138
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 2);
139
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 0);
140
+ singleSelectionGridPage.correctIncorectAnswerLabel()
141
+ .should('not.exist');
142
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
143
+
144
+ 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 tab that awards maximum points i.e. alternate tab in this case 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')
145
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 0, 1]);
146
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
147
+ singleSelectionGridPage.previewScoreText()
148
+ .verifyInnerText('20/24');
149
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
150
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
151
+ singleSelectionGridPage.correctIncorectAnswerLabel()
152
+ .should('not.exist');
153
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
154
+
155
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
156
+
157
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
158
+ singleSelectionGridPage.steps.checkAnswer();
159
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
160
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
161
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
162
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
163
+ singleSelectionGridPage.correctIncorectAnswerLabel()
164
+ .should('not.exist');
165
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
166
+
167
+ 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 tab that awards maximum points i.e. correct tab in this case 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')
168
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 2, 1]);
169
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
170
+ singleSelectionGridPage.previewScoreText()
171
+ .verifyInnerText('20/24');
172
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
173
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
174
+ singleSelectionGridPage.correctIncorectAnswerLabel()
175
+ .should('not.exist');
176
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
177
+
178
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
179
+
180
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
181
+ singleSelectionGridPage.steps.checkAnswer();
182
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
183
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
184
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
185
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
186
+ singleSelectionGridPage.correctIncorectAnswerLabel()
187
+ .should('not.exist');
188
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
189
+
190
+ cy.log('When the user selects incorrect answer options and selects the show correct answer checkbox, red crosssmark should be displayed beside selected incorrect answer option and correct/incorrect answer label and its border should not be displayed')
191
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 0, 1, 2]);
192
+ singleSelectionGridPage.previewScoreText()
193
+ .verifyInnerText('0/24');
194
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
195
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([1, 0, 1, 2])
196
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1])
197
+ singleSelectionGridPage.correctIncorectAnswerLabel()
198
+ .should('not.exist');
199
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
200
+
201
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
202
+
203
+ cy.log('When the user clicks on \'Check answer\' button, red check-mark icons should be displayed besides selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
204
+ singleSelectionGridPage.steps.checkAnswer();
205
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([1, 0, 1, 2])
206
+ singleSelectionGridPage.correctIcon()
207
+ .should('not.exist');
208
+ singleSelectionGridPage.correctIncorectAnswerLabel()
209
+ .should('not.exist');
210
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
211
+ });
212
+
213
+ singleSelectionGridPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer('24');
214
+
215
+ singleSelectionGridPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer('17', '24');
216
+
217
+ singleSelectionGridPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer('17', '24');
218
+ });
219
+ });
@@ -0,0 +1,246 @@
1
+ import { singleSelectionGridPage } from "../../../pages/singleSelectionGridPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ const questionStems = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
5
+ const options = ['Fully agree as true', 'Fully agree as false', 'Somewhat agree'];
6
+
7
+ describe('Create Item page - Single Selection Grid: Preview tab Scoring Section', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Question Preview: AutoScored - Partial different weights with alternate answer', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ cy.log('Navigating to Single selection grid question type');
16
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
17
+ 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');
18
+ singleSelectionGridPage.steps.addQuestionInstructions();
19
+ singleSelectionGridPage.steps.addOption()
20
+ singleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
21
+ singleSelectionGridPage.steps.addInputToAllOptionsFields(options);
22
+ singleSelectionGridPage.steps.selectPartialDifferentWeightsCheckbox();
23
+ singleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
24
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 1, 0, 1]);
25
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([5, 7, 4, 8]);
26
+ singleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
27
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 2, 2, 1]);
28
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([3, 9, 2, 6]);
29
+ singleSelectionGridPage.steps.expandAdditonalSettings();
30
+ singleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ singleSelectionGridPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
35
+ cy.log('The total points displayed should be equal to correct answer points')
36
+ singleSelectionGridPage.previewScoreText()
37
+ .verifyInnerText('0/24');
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
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
41
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
42
+ singleSelectionGridPage.incorrectIcon()
43
+ .should('not.exist');
44
+ singleSelectionGridPage.correctIncorectAnswerLabel()
45
+ .should('not.exist');
46
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
47
+
48
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
49
+
50
+ 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 and correct/incorrect answer label and its border should not be displayed')
51
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 0, 1]);
52
+ singleSelectionGridPage.previewScoreText()
53
+ .verifyInnerText('24/24');
54
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
55
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
56
+ singleSelectionGridPage.incorrectIcon()
57
+ .should('not.exist');
58
+ singleSelectionGridPage.correctIncorectAnswerLabel()
59
+ .should('not.exist');
60
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
61
+
62
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
63
+
64
+ cy.log('When user clicks on Check answer button then green check-mark icon should be displayed besides the response fields, correct answer label and its border should not be displayed and the correct answer container should not be displayed')
65
+ singleSelectionGridPage.steps.checkAnswer();
66
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
67
+ singleSelectionGridPage.incorrectIcon()
68
+ .should('not.exist');
69
+ singleSelectionGridPage.correctIncorectAnswerLabel()
70
+ .should('not.exist');
71
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
72
+
73
+ 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 correct/incorrect answer label and its border should not be displayed')
74
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 2, 1]);
75
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
76
+ singleSelectionGridPage.previewScoreText()
77
+ .verifyInnerText('20/24');
78
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
79
+ singleSelectionGridPage.incorrectIcon()
80
+ .should('not.exist');
81
+ singleSelectionGridPage.correctIncorectAnswerLabel()
82
+ .should('not.exist');
83
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
84
+
85
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
86
+
87
+ 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')
88
+ singleSelectionGridPage.steps.checkAnswer();
89
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
90
+ singleSelectionGridPage.incorrectIcon()
91
+ .should('not.exist');
92
+ singleSelectionGridPage.correctIncorectAnswerLabel()
93
+ .should('not.exist');
94
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
95
+
96
+ 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 red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
97
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 1, 0, 2]);
98
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
99
+ singleSelectionGridPage.previewScoreText()
100
+ .verifyInnerText('11/24');
101
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
102
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
103
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
104
+ singleSelectionGridPage.correctIncorectAnswerLabel()
105
+ .should('not.exist');
106
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
107
+
108
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
109
+
110
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
111
+ singleSelectionGridPage.steps.checkAnswer();
112
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
113
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
114
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 0);
115
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
116
+ singleSelectionGridPage.correctIncorectAnswerLabel()
117
+ .should('not.exist');
118
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
119
+
120
+ 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 red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
121
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 2, 2, 2]);
122
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
123
+ singleSelectionGridPage.previewScoreText()
124
+ .verifyInnerText('11/24');
125
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
126
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 2);
127
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
128
+ singleSelectionGridPage.correctIncorectAnswerLabel()
129
+ .should('not.exist');
130
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
131
+
132
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
133
+
134
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
135
+ singleSelectionGridPage.steps.checkAnswer();
136
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 2);
137
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
138
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 2);
139
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
140
+ singleSelectionGridPage.correctIncorectAnswerLabel()
141
+ .should('not.exist');
142
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
143
+
144
+ 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 tab that awards maximum points i.e. alternate tab in this case 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')
145
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 0, 1]);
146
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
147
+ singleSelectionGridPage.previewScoreText()
148
+ .verifyInnerText('18/24');
149
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
150
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
151
+ singleSelectionGridPage.correctIncorectAnswerLabel()
152
+ .should('not.exist');
153
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
154
+
155
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
156
+
157
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
158
+ singleSelectionGridPage.steps.checkAnswer();
159
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
160
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
161
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
162
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
163
+ singleSelectionGridPage.correctIncorectAnswerLabel()
164
+ .should('not.exist');
165
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
166
+
167
+ 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 tab that awards maximum points i.e. correct tab in this case 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')
168
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 2, 1]);
169
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
170
+ singleSelectionGridPage.previewScoreText()
171
+ .verifyInnerText('20/24');
172
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
173
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
174
+ singleSelectionGridPage.correctIncorectAnswerLabel()
175
+ .should('not.exist');
176
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
177
+
178
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
179
+
180
+ cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
181
+ singleSelectionGridPage.steps.checkAnswer();
182
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
183
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
184
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
185
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
186
+ singleSelectionGridPage.correctIncorectAnswerLabel()
187
+ .should('not.exist');
188
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
189
+
190
+ 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')
191
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 0, 1, 2]);
192
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
193
+ singleSelectionGridPage.previewScoreText()
194
+ .verifyInnerText('0/24');
195
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
196
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
197
+ singleSelectionGridPage.correctIncorectAnswerLabel()
198
+ .should('not.exist');
199
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
200
+
201
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
202
+
203
+ 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')
204
+ singleSelectionGridPage.steps.checkAnswer()
205
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
206
+ singleSelectionGridPage.correctIcon()
207
+ .should('not.exist');
208
+ singleSelectionGridPage.correctIncorectAnswerLabel()
209
+ .should('not.exist');
210
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
211
+
212
+ 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')
213
+ singleSelectionGridPage.steps.switchToEditTab();
214
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([4.5, 1.5, 2.5, 3.5]);
215
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([2, 2, 2, 2]);
216
+ singleSelectionGridPage.steps.navigateToCorrectTab();
217
+ singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([5.5, 14.5, 17.5, 12.5]);
218
+ singleSelectionGridPage.steps.switchToPreviewTab();
219
+
220
+ cy.log('Overachiever case: When the user selects more number of correct options from the alternate tab than the correct tab but the score of the individual response selected from the correct tab overpowers the combined score of the alternate tab answers then green checkmark icons should be displayed for the correct tab option, red crossmark icon should be displayed for the alternate tab options and points awarded should be of the correct tab and correct/incorrect answer label and its border should not be displayed')
221
+ singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 2, 2, 1]);
222
+ singleSelectionGridPage.previewScoreText()
223
+ .verifyInnerText('12.5/50');
224
+ singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
225
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
226
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 2);
227
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 2);
228
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
229
+ singleSelectionGridPage.correctIncorectAnswerLabel()
230
+ .should('not.exist');
231
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
232
+
233
+ singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
234
+
235
+ cy.log('Overachiever case: When the user clicks on \'Check answer\' button, then green checkmark icons should be displayed for the correct tab option, red crossmark icon should be displayed for the alternate tab options and points awarded should be of the correct tab and correct/incorrect answer label and its border should not be displayed')
236
+ singleSelectionGridPage.steps.checkAnswer()
237
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 2);
238
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 2);
239
+ singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 2);
240
+ singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
241
+ singleSelectionGridPage.correctIncorectAnswerLabel()
242
+ .should('not.exist');
243
+ singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
244
+ });
245
+ });
246
+ });