itemengine-cypress-automation 1.0.51 → 1.0.62

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
  2. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
  3. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
  4. package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
  5. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
  6. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
  7. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
  8. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsStudentResponseAndLayout.js +206 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
  18. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
  19. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
  20. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
  21. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
  22. package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
  23. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
  24. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
  25. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
  26. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
  27. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
  28. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
  29. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
  30. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
  31. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
  32. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
  33. package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
  34. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
  35. package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
  36. package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
  37. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
  38. package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
  39. package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
  40. package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
  41. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
  42. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
  43. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
  44. package/cypress/e2e/ILC/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
@@ -0,0 +1,385 @@
1
+ import { highlightPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water.', 'As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology.', 'Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
5
+
6
+ describe('Create item page - Highlight: Preview tab scoring section - Partial different weights scoring with alternate answer', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question preview: AutoScored - Partial different weights with alternate answer: When correct answer points are equal to the alternate answer points', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ cy.log('Navigating to Highlight question type');
15
+ highlightPage.steps.navigateToCreateQuestion('highlight');
16
+ cy.barsPreLoaderWait();
17
+ highlightPage.steps.clearQuestionInputField();
18
+ paragraphTextArray.forEach((paragraphText) => {
19
+ highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
20
+ });
21
+ highlightPage.steps.addInputToQuestionInputField('{backspace}');
22
+ highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
23
+ highlightPage.steps.selectPartialDifferentWeightsCheckbox();
24
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
25
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
26
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
27
+ highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['9', '3', '3']);
28
+ highlightPage.steps.clickOnAddAlternateAnswerButton();
29
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
30
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[3]);
31
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[4]);
32
+ highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['3', '8', '4']);
33
+ highlightPage.steps.uncheckRoundDownScoreCheckbox();
34
+ highlightPage.steps.expandAdditonalSettings();
35
+ highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
36
+ highlightPage.steps.switchToPreviewTab();
37
+ });
38
+
39
+ it('The points displayed should be equal to correct answer points', () => {
40
+ highlightPage.steps.verifyPreviewTabScoreText(0, 15);
41
+ });
42
+
43
+ it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-marks should be displayed beside the correct answer options from the correct tab', () => {
44
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
45
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
46
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
47
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
48
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
49
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
50
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
51
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
52
+ cy.log('Post step: Unchecking the show correct answer checkbox')
53
+ highlightPage.steps.uncheckShowCorrectAnswerCheckbox();
54
+ });
55
+
56
+ it('When the user attempts the question according to the correct tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the correct tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
57
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
58
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
59
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
60
+ highlightPage.steps.verifyPreviewTabScoreText(15, 15);
61
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
62
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
63
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
64
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
65
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
66
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
67
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
68
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
69
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
70
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
71
+
72
+ cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the correct tab and correct/incorrect answer label and border should not be displayed below the question preview')
73
+ highlightPage.steps.checkAnswer();
74
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
75
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
76
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
77
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
78
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
79
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
80
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
81
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
82
+ });
83
+
84
+ it('When the user attempts the question according to the alternate tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the alternate tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
85
+ highlightPage.steps.resetQuestionPreview();
86
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
87
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
88
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
89
+ highlightPage.steps.verifyPreviewTabScoreText(15, 15);
90
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
91
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
92
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
93
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
94
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
95
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
96
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
97
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
98
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
99
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
100
+
101
+ cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the alternate tab and correct/incorrect answer label and border should not be displayed below the question preview')
102
+ highlightPage.steps.checkAnswer();
103
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
104
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
105
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
106
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
107
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
108
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
109
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
110
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
111
+ });
112
+
113
+ it('When the user attempts the question partially correct exclusively according to the correct tab then points of the correctly attempted options should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
114
+ highlightPage.steps.resetQuestionPreview();
115
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
116
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
117
+ highlightPage.steps.verifyPreviewTabScoreText(9, 15);
118
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
119
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
120
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
121
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
122
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
123
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
124
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
125
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
126
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
127
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
128
+
129
+ cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icon should be displayed beside the correct attempted option from the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
130
+ highlightPage.steps.checkAnswer()
131
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
132
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
133
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
134
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
135
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
136
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
137
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
138
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
139
+ });
140
+
141
+ it('When the user attempts the question partially correct exclusively according to the alternate tab then points of the correctly attempted options should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the alternate tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
142
+ highlightPage.steps.resetQuestionPreview();
143
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
144
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
145
+ highlightPage.steps.verifyPreviewTabScoreText(8, 15);
146
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
147
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
148
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
149
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
150
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
151
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
152
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
153
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
154
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
155
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
156
+
157
+ cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the correctly attempted option from the alternate tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
158
+ highlightPage.steps.checkAnswer();
159
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
160
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
161
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
162
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
163
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
164
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
165
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
166
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
167
+ });
168
+
169
+ it('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then user should be awarded with points of the option having more points i.e. in this case correct tab\'s option and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct options from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
170
+ highlightPage.steps.resetQuestionPreview();
171
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
172
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
173
+ highlightPage.steps.verifyPreviewTabScoreText(9, 15);
174
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
175
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
176
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
177
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
178
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
179
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
180
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
181
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
182
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
183
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
184
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
185
+
186
+ cy.log('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correctly attempted option from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
187
+ highlightPage.steps.checkAnswer()
188
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
189
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
190
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
191
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
192
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
193
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
194
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
195
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
196
+ });
197
+
198
+ it('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then user should be awarded with points of the option having more points i.e. in this case alternate tab\'s option and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct options from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
199
+ highlightPage.steps.resetQuestionPreview();
200
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
201
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
202
+ highlightPage.steps.verifyPreviewTabScoreText(4, 15);
203
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
204
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
205
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
206
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
207
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
208
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
209
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
210
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
211
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
212
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
213
+
214
+ cy.log('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correct options from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
215
+ highlightPage.steps.checkAnswer()
216
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
217
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
218
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
219
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
220
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
221
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
222
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
223
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
224
+ });
225
+
226
+ it('Race condition: When the user attempts the question with the common option and having equal score in both correct tab and alternate tab then user should be awarded with the common option\'s points and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and correct tab options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
227
+ highlightPage.steps.resetQuestionPreview();
228
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
229
+ highlightPage.steps.verifyPreviewTabScoreText(3, 15);
230
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
231
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
232
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
233
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
234
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
235
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
236
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
237
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
238
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
239
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
240
+
241
+ cy.log('Race condition:When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and alternate tab options and correct/incorrect answer label and border should not be displayed below the question preview')
242
+ highlightPage.steps.checkAnswer();
243
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
244
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
245
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
246
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
247
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
248
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
249
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
250
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
251
+ });
252
+
253
+ it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be beside incorrectly answered options, green check-marks should be displayed beside correct answer options from the correct tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
254
+ highlightPage.steps.resetQuestionPreview();
255
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
256
+ highlightPage.steps.verifyPreviewTabScoreText(0, 15);
257
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
258
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
259
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
260
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
261
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
262
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
263
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
264
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
265
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
266
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
267
+
268
+ cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be beside incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
269
+ highlightPage.steps.checkAnswer();
270
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
271
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
272
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
273
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
274
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
275
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
276
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
277
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
278
+ });
279
+
280
+ it('When user has provided minimum score awarded (if attempted) points, then in Preview tab on entering incorrect answer, minimum score should be provided for the question', () => {
281
+ cy.log('Switch to edit tab and set minimum score if attempted points')
282
+ highlightPage.steps.switchToEditTab();
283
+ highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
284
+ highlightPage.steps.switchToPreviewTab()
285
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
286
+ highlightPage.steps.verifyPreviewTabScoreText(1, 15);
287
+ });
288
+
289
+ it('When user removes minimum score awarded (if attempted) points, then in Preview tab on selecting any options other than correct answers, points should not be provided', () => {
290
+ cy.log('Switch to edit tab and remove minimum score if attempted points')
291
+ highlightPage.steps.switchToEditTab();
292
+ highlightPage.steps.clearMinimumScoreIfAttemptedPointsField();
293
+ highlightPage.steps.switchToPreviewTab()
294
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
295
+ highlightPage.steps.verifyPreviewTabScoreText(0, 15);
296
+ });
297
+
298
+ it('When user has defined penalty points', () => {
299
+ cy.log('Pre-step: Switch to edit tab and set penalty points');
300
+ highlightPage.steps.switchToEditTab();
301
+ highlightPage.steps.allotPenaltyPoints(3);
302
+
303
+ cy.log('After switching to preview tab, when user adds an incorrect answer input, then 0 points should be awarded(no negative points)');
304
+ highlightPage.steps.switchToPreviewTab();
305
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
306
+ highlightPage.steps.verifyPreviewTabScoreText(0, 15);
307
+
308
+ cy.log('When user adds a partially correct answer input, the points should be updated accordingly with deducted penalty points');
309
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
310
+ highlightPage.steps.verifyPreviewTabScoreText(6, 15);
311
+ });
312
+
313
+ it('When the user has alloted penalty points and attempts the question according to the alternate tab then user should be awarded with full points of the alternate tab and penalty points should not be deducted', () => {
314
+ highlightPage.steps.resetQuestionPreview();
315
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
316
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
317
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
318
+ highlightPage.steps.verifyPreviewTabScoreText(15, 15);
319
+ });
320
+
321
+ it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
322
+ cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points');
323
+ highlightPage.steps.switchToEditTab();
324
+ highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
325
+
326
+ cy.log('Switch to preview tab and give incorrect answer input to check that minimum points are displayed');
327
+ highlightPage.steps.switchToPreviewTab();
328
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
329
+ highlightPage.steps.verifyPreviewTabScoreText(1, 15);
330
+
331
+ cy.log('When user adds a partially correct answer such that the points of the attempt(with penalty points deducted) is more than the minimum score awarded(if attempted) points');
332
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
333
+ highlightPage.steps.verifyPreviewTabScoreText(6, 15);
334
+
335
+ cy.log('When user switches to edit tab and increases the minimum score awarded (if attempted) points to check the case for an attempt in which points of the attempt is less than minimum score awarded (if attempted) points, then the minimum score awarded (if attempted) points should be displayed to the user');
336
+ highlightPage.steps.switchToEditTab();
337
+ highlightPage.steps.clearMinimumScoreIfAttemptedPointsField()
338
+ highlightPage.steps.allotMinimumScoreAwardedIfAttempted(9)
339
+ cy.log('Switching to preview tab');
340
+ highlightPage.steps.switchToPreviewTab();
341
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
342
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
343
+ highlightPage.steps.verifyPreviewTabScoreText(9, 15);
344
+ });
345
+
346
+ it('Overachiever case: When the user attempts the question with 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 on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed for the correct tab option, red cross-mark 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', () => {
347
+ cy.log('(Overachiever case) Pre-step: Switching to Edit tab, clearing penalty points and minimum score awarded if attempted fields and allotting points to correct and alternate tab such that the points per response are in decimal')
348
+ highlightPage.steps.switchToEditTab();
349
+ highlightPage.steps.clearMinimumScoreIfAttemptedPointsField();
350
+ highlightPage.steps.clearPenaltyPoints();
351
+ highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
352
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[5]);
353
+ highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['11.5', '12.5', '13.5']);
354
+ highlightPage.steps.navigateToCorrectTab();
355
+ highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['30.5', '4.5', '2.5']);
356
+ highlightPage.steps.switchToPreviewTab();
357
+
358
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
359
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
360
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
361
+ highlightPage.steps.verifyPreviewTabScoreText(30.5, 37.5);
362
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
363
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
364
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
365
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
366
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
367
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
368
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
369
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
370
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
371
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
372
+
373
+ cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green check-mark icons should be displayed for the correct tab option, red cross-mark icon should be displayed for the alternate tab option and correct/incorrect answer label and its border should not be displayed')
374
+ highlightPage.steps.checkAnswer();
375
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
376
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
377
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
378
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
379
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
380
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
381
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
382
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
383
+ });
384
+ });
385
+ });