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,250 @@
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 equal weights scoring with alternate answer', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question preview: AutoScored - Partial equal weights with alternate answer: When alternate answer points are more than correct 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.selectPartialEqualWeightsCheckbox();
24
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
25
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
26
+ highlightPage.steps.allotPoints(20);
27
+ highlightPage.steps.clickOnAddAlternateAnswerButton();
28
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
29
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
30
+ highlightPage.steps.allotPoints(24);
31
+ highlightPage.steps.uncheckRoundDownScoreCheckbox();
32
+ highlightPage.steps.expandAdditonalSettings();
33
+ highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
34
+ highlightPage.steps.switchToPreviewTab();
35
+ });
36
+
37
+ it('The points displayed should be equal to alternate answer points', () => {
38
+ highlightPage.steps.verifyPreviewTabScoreText(0, 24);
39
+ });
40
+
41
+ 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 alternate tab', () => {
42
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
43
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
44
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
45
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
46
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
47
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
48
+ cy.log('Post step: Unchecking the show correct answer checkbox')
49
+ highlightPage.steps.uncheckShowCorrectAnswerCheckbox();
50
+ });
51
+
52
+ it('When the user attempts the question according to the correct tab then user should be awarded with points of the correct tab(less than 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', () => {
53
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
54
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
55
+ highlightPage.steps.verifyPreviewTabScoreText(20, 24);
56
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
57
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
58
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
59
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
60
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
61
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
62
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
63
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
64
+
65
+ 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')
66
+ highlightPage.steps.checkAnswer();
67
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
68
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
69
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
70
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
71
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
72
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
73
+ });
74
+
75
+ 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', () => {
76
+ highlightPage.steps.resetQuestionPreview();
77
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
78
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
79
+ highlightPage.steps.verifyPreviewTabScoreText(24, 24);
80
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
81
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
82
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
83
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
84
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
85
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
86
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
87
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
88
+
89
+ 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')
90
+ highlightPage.steps.checkAnswer();
91
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
92
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
93
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
94
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
95
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
96
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
97
+ });
98
+
99
+ 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 alternate tab and correctly answered 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', () => {
100
+ highlightPage.steps.resetQuestionPreview();
101
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
102
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
103
+ highlightPage.steps.verifyPreviewTabScoreText(10, 24);
104
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
105
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
106
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
107
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
108
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
109
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
110
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
111
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
112
+
113
+ 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 icons should be displayed beside the correctly attempted 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.checkAnswer()
115
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
116
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
117
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
118
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
119
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
120
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
121
+ });
122
+
123
+ 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', () => {
124
+ highlightPage.steps.resetQuestionPreview();
125
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
126
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
127
+ highlightPage.steps.verifyPreviewTabScoreText(12, 24);
128
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
129
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
130
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
131
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
132
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
133
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
134
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
135
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
136
+
137
+ 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, 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')
138
+ highlightPage.steps.checkAnswer()
139
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
140
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
141
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
142
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
143
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
144
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
145
+ });
146
+
147
+ it('When the user attempts the question partially correct with equal number of options form the correct and alternate tab then user should be awarded with points of the tab with more points i.e. in this case alternate tab 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', () => {
148
+ highlightPage.steps.resetQuestionPreview();
149
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
150
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
151
+ highlightPage.steps.verifyPreviewTabScoreText(12, 24);
152
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
153
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
154
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
155
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
156
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
157
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
158
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
159
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
160
+
161
+ cy.log('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correctly attempted 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')
162
+ highlightPage.steps.checkAnswer()
163
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
164
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
165
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
166
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
167
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
168
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
169
+ });
170
+
171
+ it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with points of the tab with more points i.e. in this case alternate tab and on selecting the \'Show correct answer\' checkbox 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', () => {
172
+ highlightPage.steps.resetQuestionPreview();
173
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
174
+ highlightPage.steps.verifyPreviewTabScoreText(12, 24);
175
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
176
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
177
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
178
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
179
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
180
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
181
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
182
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
183
+
184
+ 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 correct/incorrect answer label and border should not be displayed below the question preview')
185
+ highlightPage.steps.checkAnswer();
186
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
187
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
188
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
189
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
190
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
191
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
192
+ });
193
+
194
+ 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 alternate tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
195
+ highlightPage.steps.resetQuestionPreview();
196
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
197
+ highlightPage.steps.verifyPreviewTabScoreText(0, 24);
198
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
199
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
200
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
201
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
202
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
203
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
204
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
205
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
206
+
207
+ 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')
208
+ highlightPage.steps.checkAnswer();
209
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
210
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
211
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
212
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
213
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
214
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
215
+ });
216
+
217
+ it('Overachiever case: When the user attempts the question with more number of correct options from the correct tab than the alternate tab but the score of the individual response selected from the alternate tab overpowers the combined score of the correct tab answers then green check-mark icons should be displayed for the alternate tab option, red cross-mark icon should be displayed for the correct tab options and points awarded should be of the alternate tab, and correct/incorrect answer label and its border should not be displayed', () => {
218
+ cy.log('(Overachiever case) Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such that the difference between the points is substantial and the points per response are in decimal')
219
+ highlightPage.steps.switchToEditTab();
220
+ highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
221
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[3]);
222
+ highlightPage.steps.allotPoints(51);
223
+ highlightPage.steps.navigateToCorrectTab();
224
+ highlightPage.steps.allotPoints(11);
225
+ highlightPage.steps.switchToPreviewTab();
226
+
227
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
228
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
229
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
230
+ highlightPage.steps.verifyPreviewTabScoreText(25.5, 51);
231
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
232
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
233
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
234
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
235
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
236
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
237
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
238
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
239
+
240
+ cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green check-mark icons should be displayed for the alternate tab option, red cross-mark icon should be displayed for the correct tab options and correct/incorrect answer label and its border should not be displayed')
241
+ highlightPage.steps.checkAnswer();
242
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
243
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
244
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
245
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
246
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
247
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
248
+ });
249
+ });
250
+ });
@@ -0,0 +1,266 @@
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 equal weights scoring with alternate answer', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question preview: AutoScored - Partial equal 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.selectPartialEqualWeightsCheckbox();
24
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
25
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
26
+ highlightPage.steps.allotPoints(20);
27
+ highlightPage.steps.clickOnAddAlternateAnswerButton();
28
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
29
+ highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
30
+ highlightPage.steps.allotPoints(20);
31
+ highlightPage.steps.uncheckRoundDownScoreCheckbox();
32
+ highlightPage.steps.expandAdditonalSettings();
33
+ highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
34
+ highlightPage.steps.switchToPreviewTab();
35
+ });
36
+
37
+ it('The points displayed should be equal to correct answer points', () => {
38
+ highlightPage.steps.verifyPreviewTabScoreText(0, 20);
39
+ });
40
+
41
+ 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', () => {
42
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
43
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
44
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
45
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
46
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
47
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
48
+ cy.log('Post step: Unchecking the show correct answer checkbox')
49
+ highlightPage.steps.uncheckShowCorrectAnswerCheckbox();
50
+ });
51
+
52
+ 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', () => {
53
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
54
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
55
+ highlightPage.steps.verifyPreviewTabScoreText(20, 20);
56
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
57
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
58
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
59
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
60
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
61
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
62
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
63
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
64
+
65
+ 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')
66
+ highlightPage.steps.checkAnswer();
67
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
68
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
69
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
70
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
71
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
72
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
73
+ });
74
+
75
+ 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', () => {
76
+ highlightPage.steps.resetQuestionPreview();
77
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
78
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
79
+ highlightPage.steps.verifyPreviewTabScoreText(20, 20);
80
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
81
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
82
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
83
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
84
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
85
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
86
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
87
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
88
+
89
+ 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')
90
+ highlightPage.steps.checkAnswer();
91
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
92
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
93
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
94
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
95
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
96
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
97
+ });
98
+
99
+ 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', () => {
100
+ highlightPage.steps.resetQuestionPreview();
101
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
102
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
103
+ highlightPage.steps.verifyPreviewTabScoreText(10, 20);
104
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
105
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
106
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
107
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
108
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
109
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
110
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
111
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
112
+
113
+ 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')
114
+ highlightPage.steps.checkAnswer()
115
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
116
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
117
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
118
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
119
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
120
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
121
+ });
122
+
123
+ 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', () => {
124
+ highlightPage.steps.resetQuestionPreview();
125
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
126
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
127
+ highlightPage.steps.verifyPreviewTabScoreText(10, 20);
128
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
129
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
130
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
131
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
132
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
133
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
134
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
135
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
136
+
137
+ 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')
138
+ highlightPage.steps.checkAnswer();
139
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
140
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
141
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
142
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
143
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
144
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
145
+ });
146
+
147
+ it('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then user should be awarded with points of the correct tab 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', () => {
148
+ highlightPage.steps.resetQuestionPreview();
149
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
150
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
151
+ highlightPage.steps.verifyPreviewTabScoreText(10, 20);
152
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
153
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
154
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
155
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
156
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
157
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
158
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
159
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
160
+
161
+ cy.log('When the user attempts the question partially correct with equal number of correct options order form 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')
162
+ highlightPage.steps.checkAnswer()
163
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
164
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
165
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
166
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
167
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
168
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
169
+ });
170
+
171
+ it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with points of the correct tab 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', () => {
172
+ highlightPage.steps.resetQuestionPreview();
173
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
174
+ highlightPage.steps.verifyPreviewTabScoreText(10, 20);
175
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
176
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
177
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
178
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
179
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
180
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
181
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
182
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
183
+
184
+ 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')
185
+ highlightPage.steps.checkAnswer();
186
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
187
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
188
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
189
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
190
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
191
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
192
+ });
193
+
194
+ 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', () => {
195
+ highlightPage.steps.resetQuestionPreview();
196
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
197
+ highlightPage.steps.verifyPreviewTabScoreText(0, 20);
198
+ highlightPage.steps.checkShowCorrectAnswerCheckbox();
199
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
200
+ highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
201
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
202
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
203
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
204
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
205
+ highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
206
+
207
+ 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')
208
+ highlightPage.steps.checkAnswer();
209
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
210
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
211
+ highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
212
+ highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
213
+ highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
214
+ highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
215
+ });
216
+
217
+ highlightPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(20);
218
+
219
+ it('When user has defined penalty points', () => {
220
+ cy.log('Pre-step: Switch to edit tab and set penalty points');
221
+ highlightPage.steps.switchToEditTab();
222
+ highlightPage.steps.allotPenaltyPoints(3);
223
+
224
+ cy.log('After switching to preview tab, when user adds an incorrect answer input, then 0 points should be awarded(no negative points)');
225
+ highlightPage.steps.switchToPreviewTab();
226
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
227
+ highlightPage.steps.verifyPreviewTabScoreText(0, 20);
228
+
229
+ cy.log('When user adds a partially correct answer input, the points should be updated accordingly with deducted penalty points');
230
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
231
+ highlightPage.steps.verifyPreviewTabScoreText(7, 20);
232
+ });
233
+
234
+ 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', () => {
235
+ highlightPage.steps.resetQuestionPreview();
236
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
237
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
238
+ highlightPage.steps.verifyPreviewTabScoreText(20, 20);
239
+ });
240
+
241
+ it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
242
+ cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points');
243
+ highlightPage.steps.switchToEditTab();
244
+ highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);;
245
+
246
+ cy.log('Switch to preview tab and give incorrect answer input to check that minimum points are displayed');
247
+ highlightPage.steps.switchToPreviewTab();
248
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
249
+ highlightPage.steps.verifyPreviewTabScoreText(1, 20);
250
+
251
+ 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');
252
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
253
+ highlightPage.steps.verifyPreviewTabScoreText(7, 20);
254
+
255
+ 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');
256
+ highlightPage.steps.switchToEditTab();
257
+ highlightPage.steps.clearMinimumScoreIfAttemptedPointsField()
258
+ highlightPage.steps.allotMinimumScoreAwardedIfAttempted(9);
259
+ cy.log('Switching to preview tab');
260
+ highlightPage.steps.switchToPreviewTab();
261
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
262
+ highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
263
+ highlightPage.steps.verifyPreviewTabScoreText(9, 20);
264
+ });
265
+ });
266
+ });