itemengine-cypress-automation 1.0.277 → 1.0.279-4092Changes-71debc9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -2
  2. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
  3. package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
  4. package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +11 -5
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +5 -3
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +7 -5
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +6 -2
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +8 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +6 -0
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +4 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -0
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -0
  13. package/cypress/e2e/ILC/EssayResponse/toolSettings.js +8 -2
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +2 -1
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -0
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  21. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  22. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  27. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +0 -1
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +2 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  38. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
  39. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  40. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +4 -2
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -0
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  64. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  65. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  66. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  67. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  68. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  69. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
  71. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  72. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  73. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
  74. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  75. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  76. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  77. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  78. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  79. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  80. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  81. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  82. package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
  83. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
  84. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +1 -0
  85. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +2 -1
  86. package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
  87. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -0
  88. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  89. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +6 -0
  90. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  91. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  92. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  93. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  94. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  95. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  96. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +3 -2
  97. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +2 -0
  98. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  99. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
  100. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
  101. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +2 -1
  102. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
  103. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -1
  104. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +3 -4
  105. package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +4 -0
  106. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -3
  107. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +5 -0
  108. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
  109. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +3 -0
  110. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +6 -3
  111. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +5 -5
  112. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +5 -5
  113. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +5 -5
  114. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  115. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
  116. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
  117. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  118. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +6 -6
  119. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
  120. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
  121. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -1
  122. package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +23 -1
  123. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -1
  124. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +1 -1
  125. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +476 -0
  126. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
  127. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  128. package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +129 -0
  129. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
  130. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +7 -5
  131. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +384 -0
  132. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
  133. package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
  134. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
  135. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
  136. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
  137. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
  138. package/cypress/pages/audioPlayerPage.js +2 -2
  139. package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
  140. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
  141. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +19 -1
  142. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
  143. package/cypress/pages/components/essayResponseCommonComponents.js +6 -5
  144. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  145. package/cypress/pages/components/layoutSectionComponent.js +6 -2
  146. package/cypress/pages/components/numberLineCommonComponent.js +12 -5
  147. package/cypress/pages/components/playbackControlsBaseComponent.js +5 -0
  148. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
  149. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  150. package/cypress/pages/drawingResponsePage.js +18 -1
  151. package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -2
  152. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -6
  153. package/cypress/pages/gridFillPage.js +2 -3
  154. package/cypress/pages/listOrderingPage.js +19 -12
  155. package/cypress/pages/matchingPage.js +16 -2
  156. package/cypress/pages/textEntryMathPage.js +715 -3
  157. package/cypress/pages/textEntryMathWithImagePage.js +133 -5
  158. package/package.json +1 -1
@@ -12,9 +12,8 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
12
12
  abortEarlySetup();
13
13
  before(() => {
14
14
  chartsBarPage.steps.navigateToCreateQuestion('charts');
15
- chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
16
- chartsBarPage.steps.selectAddBarOrPointToolbarOption();
17
15
  cy.barsPreLoaderWait();
16
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
18
17
  chartsBarPage.steps.selectAddBarOrPointToolbarOption();
19
18
  });
20
19
 
@@ -39,7 +39,7 @@ describe('Create Item page: Tool settings', () => {
39
39
  rulerPage.steps.expandRotationDropdown();
40
40
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
41
41
  rulerPage.steps.enterInputToOpacityInputField(60);
42
- rulerPage.steps.checkAddShowHideButtonCheckbox();
42
+ rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
43
43
  toolSettingsComponent.steps.clickOnOkButton();
44
44
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
45
45
  toolSettingsComponent.steps.verifyToolSelectedState(0);
@@ -43,7 +43,7 @@ describe('Create Item page: Tool settings', () => {
43
43
  rulerPage.steps.expandRotationDropdown();
44
44
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
45
45
  rulerPage.steps.enterInputToOpacityInputField(60);
46
- rulerPage.steps.checkAddShowHideButtonCheckbox();
46
+ rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
47
47
  toolSettingsComponent.steps.clickOnOkButton();
48
48
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
49
49
  toolSettingsComponent.steps.verifyToolSelectedState(0);
@@ -29,13 +29,12 @@ describe("Create Item page - Compass:", () => {
29
29
  compassPage.steps.verifyCompassVisibilityLabel("Compass visibility");
30
30
  });
31
31
 
32
- it("'Add show/hide button' label and checkbox should be displayed and by default the checkbox should be unchecked", () => {
32
+ it("'Add show/hide button' label and checkbox should be displayed and by default the checkbox should be checked", () => {
33
33
  compassPage.steps.verifyAddShowHideButtonLabel();
34
- compassPage.steps.verifyAddShowHideButtonCheckboxUnchecked();
34
+ compassPage.steps.verifyAddShowHideButtonCheckboxChecked();
35
35
  });
36
36
 
37
- it("When the user checks the 'Add show/hide button' checkbox then 'Launch the compass by default' label and checkbox should be displayed and by default it should be unchecked", () => {
38
- compassPage.steps.checkAddShowHideButtonCheckbox();
37
+ it("'Launch the compass by default' label and checkbox should be displayed and by default it should be unchecked", () => {
39
38
  compassPage.steps.verifyLaunchToolByDefaultLabel("compass");
40
39
  compassPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
41
40
  });
@@ -71,6 +70,11 @@ describe("Create Item page - Compass:", () => {
71
70
  it("Accessibility of edit tab contents", { tags: "a11y" }, () => {
72
71
  cy.checkAccessibility(compassPage.compassVisibilityLabel().parents('[class*="TabsComponentstyles__EditTabWrapper"]'));
73
72
  });
73
+
74
+ it('User should be able to uncheck the \'Add show/hide button\' checkbox', () => {
75
+ compassPage.steps.uncheckLaunchToolByDefaultCheckbox();
76
+ compassPage.steps.verifyCompassToolNotVisible();
77
+ });
74
78
  });
75
79
 
76
80
  describe("Compass: Edit tab functionality", () => {
@@ -81,9 +85,11 @@ describe("Create Item page - Compass:", () => {
81
85
  });
82
86
 
83
87
  it("When the user switches to preview tab then 'Show compass' button should not be displayed and the compass should be displayed", () => {
88
+ compassPage.steps.switchToEditTab();
89
+ compassPage.steps.uncheckAddShowHideButtonCheckbox();
84
90
  compassPage.steps.switchToPreviewTab();
85
91
  compassPage.steps.verifyCompassToolIsVisible();
86
- utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(),"notExist");
92
+ utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(), "notExist");
87
93
  });
88
94
 
89
95
  it("When the user checks the 'Add show/hide button' checkbox then 'Show compass' button should be displayed and the compass should not be displayed", () => {
@@ -44,6 +44,7 @@ describe('Drag and drop into categories - Additional settings', () => {
44
44
  before(() => {
45
45
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
46
46
  cy.barsPreLoaderWait();
47
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
47
48
  dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
48
49
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
49
50
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
@@ -76,7 +77,8 @@ describe('Drag and drop into categories - Additional settings', () => {
76
77
  });
77
78
  });
78
79
 
79
- describe('Additional settings: ARIA label for dropzones - Contents in edit tab', () => {
80
+ //Need to remove the skip once https://redmine.zeuslearning.com/issues/574098 is resolved
81
+ describe.skip('Additional settings: ARIA label for dropzones - Contents in edit tab', () => {
80
82
  abortEarlySetup();
81
83
  before(() => {
82
84
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
@@ -84,7 +86,6 @@ describe('Drag and drop into categories - Additional settings', () => {
84
86
  dragAndDropIntoCategoriesPage.steps.expandAdditionalSettings();
85
87
  });
86
88
 
87
- //Need to remove the skip once https://redmine.zeuslearning.com/issues/574098 is resolved
88
89
  it.skip(`"ARIA label for dropzones" label should be displayed`, () => {
89
90
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.ariaLabelSectionLabel(), `ARIA label for dropzones`);
90
91
  utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.ariaLabelSectionLabel(), 'visible');
@@ -134,7 +135,8 @@ describe('Drag and drop into categories - Additional settings', () => {
134
135
  });
135
136
  });
136
137
 
137
- describe('Additional settings: ARIA label for dropzones - functionality in preview tab', () => {
138
+ //Need to remove the skip once https://redmine.zeuslearning.com/issues/574098 is resolved
139
+ describe.skip('Additional settings: ARIA label for dropzones - functionality in preview tab', () => {
138
140
  abortEarlySetup();
139
141
  before(() => {
140
142
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
@@ -17,6 +17,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
17
17
  before(() => {
18
18
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
19
19
  cy.barsPreLoaderWait();
20
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
20
21
  dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
21
22
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
22
23
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
@@ -110,7 +111,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
110
111
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
111
112
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
112
113
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
113
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
114
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
114
115
  });
115
116
 
116
117
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
@@ -127,7 +128,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
127
128
  };
128
129
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
129
130
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
130
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
131
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
131
132
  });
132
133
 
133
134
  it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
@@ -150,7 +151,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
150
151
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
151
152
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
152
153
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
154
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
154
155
  });
155
156
 
156
157
  it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
@@ -174,7 +175,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
174
175
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
175
176
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
176
177
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
177
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
178
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
178
179
  });
179
180
 
180
181
  it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
@@ -200,7 +201,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
200
201
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
201
202
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
202
203
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
203
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
204
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
204
205
  });
205
206
 
206
207
  it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
@@ -238,6 +239,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
238
239
  before(() => {
239
240
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
240
241
  cy.barsPreLoaderWait();
242
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
241
243
  dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
242
244
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
243
245
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Platypus', 'Whale']);
@@ -16,6 +16,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
16
16
  cy.log('Navigate to Drag and drop into categories question type, add input to option input fields');
17
17
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
18
18
  cy.barsPreLoaderWait();
19
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
19
20
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
20
21
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
21
22
  dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
@@ -154,7 +155,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
154
155
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
155
156
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Bat', 'Eagle', 'Parrot', 'Whale']);
156
157
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
157
- utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
158
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'visible');
158
159
  });
159
160
 
160
161
  dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
@@ -178,6 +179,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
178
179
  cy.log('Navigate to Drag and drop into categories question type, add input to option input fields');
179
180
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
180
181
  cy.barsPreLoaderWait();
182
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
181
183
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
182
184
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
183
185
  dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
@@ -336,6 +338,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
336
338
  before(() => {
337
339
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
338
340
  cy.barsPreLoaderWait();
341
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
339
342
  dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
340
343
  dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
341
344
  dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
@@ -480,7 +483,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
480
483
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
481
484
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptions[1]);
482
485
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
483
- utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
486
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'visible');
484
487
  });
485
488
 
486
489
  dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
@@ -509,6 +512,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
509
512
  before(() => {
510
513
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
511
514
  cy.barsPreLoaderWait();
515
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
512
516
  dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
513
517
  dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
514
518
  dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
@@ -13,6 +13,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
13
13
  before(() => {
14
14
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
15
  cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
16
17
  });
17
18
 
18
19
  dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsLayoutDropdownSectionContents();
@@ -23,6 +24,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
23
24
  before(() => {
24
25
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
25
26
  cy.barsPreLoaderWait();
27
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
26
28
  });
27
29
 
28
30
  dragAndDropIntoCategoriesPage.tests.verifyOptionsSectionContents({ optionFieldsCount: 2, optionLabel: 'Options for drag & drop' });
@@ -61,6 +63,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
61
63
  before(() => {
62
64
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
63
65
  cy.barsPreLoaderWait();
66
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
64
67
  dragAndDropIntoCategoriesPage.steps.addOption();
65
68
  });
66
69
 
@@ -76,6 +79,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
76
79
  before(() => {
77
80
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
78
81
  cy.barsPreLoaderWait();
82
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
79
83
  });
80
84
 
81
85
  dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsForStandardLayoutInSpecifyCorrectAnswerSection();
@@ -95,6 +99,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
95
99
  before(() => {
96
100
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
97
101
  cy.barsPreLoaderWait();
102
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
98
103
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
99
104
  });
100
105
 
@@ -106,6 +111,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
106
111
  before(() => {
107
112
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
108
113
  cy.barsPreLoaderWait();
114
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
109
115
  });
110
116
 
111
117
  dragAndDropIntoCategoriesPage.tests.verifyGroupedOptionsLayoutSectionContents();
@@ -154,6 +160,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
154
160
  before(() => {
155
161
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
156
162
  cy.barsPreLoaderWait();
163
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
157
164
  dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
158
165
  dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
159
166
  });
@@ -182,6 +189,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
182
189
  before(() => {
183
190
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
184
191
  cy.barsPreLoaderWait();
192
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
185
193
  dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
186
194
  dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
187
195
  });
@@ -35,6 +35,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
35
35
  before(() => {
36
36
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
37
37
  cy.barsPreLoaderWait();
38
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
38
39
  });
39
40
 
40
41
  //Default settings
@@ -230,6 +231,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
230
231
  before(() => {
231
232
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
232
233
  cy.barsPreLoaderWait();
234
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
233
235
  });
234
236
 
235
237
  it('When user increases the number of columns in the column input stepper using the increase button, then number of columns should also increase in the table displayed in \'Specify correct answer\' section', () => {
@@ -288,6 +290,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
288
290
  before(() => {
289
291
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
290
292
  cy.barsPreLoaderWait();
293
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
291
294
  });
292
295
 
293
296
  it('When user increases the number of columns in the column input stepper using the increase button, then the number of columns in the table displayed in preview tab should increase', () => {
@@ -355,6 +358,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
355
358
  before(() => {
356
359
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
357
360
  cy.barsPreLoaderWait();
361
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
358
362
  });
359
363
 
360
364
  //Default states
@@ -590,6 +594,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
590
594
  before(() => {
591
595
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
592
596
  cy.barsPreLoaderWait();
597
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
593
598
  });
594
599
 
595
600
  it('A table based on the default settings in \'Specify columns and rows\' section should be displayed in the \'Specify correct answer\' section', () => {
@@ -664,6 +669,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
664
669
  before(() => {
665
670
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
666
671
  cy.barsPreLoaderWait();
672
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
667
673
  });
668
674
 
669
675
  it('When user unchecks \'Set first row cells as heading\' checkbox, then in preview tab the default first row with heading cells should remain unchanged', () => {
@@ -145,6 +145,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
145
145
  before(() => {
146
146
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
147
147
  cy.barsPreLoaderWait();
148
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
148
149
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
149
150
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
150
151
  });
@@ -193,6 +194,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
193
194
  before(() => {
194
195
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
195
196
  cy.barsPreLoaderWait();
197
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
196
198
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
197
199
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
198
200
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -231,6 +233,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
231
233
  before(() => {
232
234
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
233
235
  cy.barsPreLoaderWait();
236
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
234
237
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
235
238
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale',]);
236
239
  dragAndDropIntoCategoriesPage.steps.checkAllowMultipleInstancesOfSameDraggableOptionCheckbox();
@@ -324,6 +327,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
324
327
  before(() => {
325
328
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
326
329
  cy.barsPreLoaderWait();
330
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
327
331
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle']);
328
332
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
329
333
  });
@@ -18,6 +18,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
18
18
  cy.log('Navigate to drag and drop into categories question type');
19
19
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
20
20
  cy.barsPreLoaderWait();
21
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
21
22
  dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
22
23
  });
23
24
 
@@ -43,6 +44,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
43
44
  cy.log('Navigate to drag and drop into categories question type');
44
45
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
45
46
  cy.barsPreLoaderWait();
47
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
46
48
  dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
47
49
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
48
50
  });
@@ -378,6 +378,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
378
378
 
379
379
  it('When the user selects the \'Stroke/font color\' option, then four color blocks: the previously updated color block, \'#008559\', \'#801900\' and \'No fill\' color along with and an add[+] color block should be displayed. \'Close[X] icon\' should be displayed over the new color blocks', () => {
380
380
  drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
381
+ drawingResponsePage.steps.hoverOutFromStrokeColorButton();
381
382
  drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(0, 'rgb(255, 0, 0)');
382
383
  drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(1, 'rgb(0, 133, 89)');
383
384
  drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(2, 'rgb(128, 25, 0)');
@@ -595,6 +596,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
595
596
  });
596
597
 
597
598
  it('When the user adds upto 10 color blocks, then the add[+] color block should get disabled when 10 blocks have been added.', () => {
599
+ drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
598
600
  for (let i = 0; i < 6; i++) {
599
601
  drawingResponsePage.steps.clickOnAddColorBlockInDefaultFontStrokeColorBlockSection();
600
602
  drawingResponsePage.steps.clickOnEditTabColorPaletteOkButton();
@@ -48,13 +48,19 @@ describe('Create Item page: Tool settings', () => {
48
48
  it('When user has made changes for ruler tool in edit tab then changes should be reflected in the ruler tool in the preview tab', () => {
49
49
  cy.log('Switching to Preview Tab');
50
50
  rulerPage.steps.switchToPreviewTab();
51
- rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Show');
52
- rulerPage.steps.clickOnRulerVisibilityButton();
51
+ utilities.verifyElementVisibilityState(rulerPage.rulerVisibilityButtonPreviewTab(), 'notExist');
53
52
  utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
54
53
  rulerPage.steps.verifyLengthOfRulerInPreview('12in');
55
54
  rulerPage.steps.verifyColorOfRulerInPreview(1);
56
55
  rulerPage.steps.verifyRulerOpacityInPreview('0.6');
57
56
  rulerPage.steps.verifyRotationButtonWithDegreeVisible();
57
+ rulerPage.steps.switchToEditTab();
58
+ toolSettingsComponent.steps.clickOnToolEditIcon(0);
59
+ rulerPage.steps.checkAddShowHideButtonCheckbox();
60
+ toolSettingsComponent.steps.clickOnOkButton();
61
+ rulerPage.steps.switchToPreviewTab();
62
+ rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Show');
63
+ rulerPage.steps.clickOnRulerVisibilityButton();
58
64
  });
59
65
 
60
66
  it('CSS of the \'Hide ruler\' button', { tags: 'css' }, () => {
@@ -11,6 +11,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
11
11
  before(() => {
12
12
  fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
13
13
  cy.barsPreLoaderWait();
14
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
14
15
  fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(3);
15
16
  fillInTheGapsDragAndDropPage.steps.allotPoints(10);
16
17
  fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Bark', 'Stem', 'Trunk']);
@@ -33,7 +34,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
33
34
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1 });
34
35
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 10);
35
36
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
36
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
37
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
37
38
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
38
39
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
39
40
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Bark']]);
@@ -147,7 +147,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
147
147
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
148
148
  };
149
149
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
150
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
150
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
151
151
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
152
152
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
153
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
@@ -168,7 +168,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
168
168
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
169
169
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
170
170
  };
171
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
171
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
172
172
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
173
173
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
174
174
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -13,6 +13,7 @@ describe('Create item page - Fill in the gaps with text: Dropzone level alternat
13
13
  before(() => {
14
14
  fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
15
15
  cy.barsPreLoaderWait();
16
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
16
17
  fillInTheGapsDragAndDropPage.steps.addOption();
17
18
  fillInTheGapsDragAndDropPage.steps.addOption();
18
19
  fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
@@ -55,7 +55,9 @@ describe('Preview tab contents for all views', () => {
55
55
  cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
56
56
  break;
57
57
  case 'Correct answer view':
58
+ cy.wait(1000);
58
59
  cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
60
+ cy.wait(2000);
59
61
  break;
60
62
  default:
61
63
  throw new Error('Invalid view');
@@ -39,7 +39,7 @@ describe('Create Item page: Tool settings', () => {
39
39
  rulerPage.steps.expandRotationDropdown();
40
40
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
41
41
  rulerPage.steps.enterInputToOpacityInputField(60);
42
- rulerPage.steps.checkAddShowHideButtonCheckbox();
42
+ rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
43
43
  toolSettingsComponent.steps.clickOnOkButton();
44
44
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
45
45
  toolSettingsComponent.steps.verifyToolSelectedState(0);