itemengine-cypress-automation 1.0.240-textentrychangesreverted-28d08d1.0 → 1.0.240

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +2 -2
  2. package/cypress/e2e/ILC/ChartsBar/headerSection.js +22 -5
  3. package/cypress/e2e/ILC/ChartsLine/headerSection.js +23 -5
  4. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +3 -4
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -4
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +3 -4
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +4 -6
  8. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +1 -3
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +2 -4
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +3 -4
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +2 -2
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +4 -5
  14. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +2 -2
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +3 -5
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +172 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +3 -5
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +0 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +3 -8
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +6 -6
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +2 -2
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +2 -2
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +3 -1
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -8
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +2 -3
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +3 -5
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +2 -2
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -3
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +16 -16
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +3 -2
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -3
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +3 -3
  35. package/cypress/e2e/ILC/Graphing/headerSection.js +2 -3
  36. package/cypress/e2e/ILC/GridFill/headerSection.js +2 -4
  37. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +6 -3
  38. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -4
  39. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
  40. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  41. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -8
  42. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -8
  43. package/cypress/e2e/ILC/ListOrderingNew/optionsOrientationSection.js +150 -0
  44. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +218 -0
  45. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +176 -0
  46. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +170 -0
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +170 -0
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +230 -0
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingPenaltyScoring.js +64 -0
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/manuallyAndNonScored.js +110 -0
  51. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +249 -0
  52. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +172 -0
  53. package/cypress/e2e/ILC/Matching/clickAndDrop.js +6 -10
  54. package/cypress/e2e/ILC/Matching/headerSection.js +2 -10
  55. package/cypress/e2e/ILC/Matching/matchingConnector.js +128 -0
  56. package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  57. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  58. package/cypress/e2e/ILC/MatchingDropdown/editTabBasicSection.js +154 -0
  59. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +4 -6
  60. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +4 -4
  61. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
  62. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +3 -9
  63. package/cypress/e2e/ILC/NumberLine/headerSection.js +2 -3
  64. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -4
  65. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  66. package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -5
  67. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -2
  68. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -2
  69. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +2 -9
  70. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +210 -0
  71. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +210 -0
  72. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +258 -0
  73. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +246 -0
  74. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +203 -0
  75. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +245 -0
  76. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +541 -0
  77. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +243 -0
  78. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +203 -0
  79. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +242 -0
  80. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +195 -0
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +6 -0
  82. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +8 -1
  83. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +12 -0
  84. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +10 -0
  85. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -0
  86. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +2 -0
  87. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +2 -0
  88. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -0
  89. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -0
  90. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +6 -0
  91. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -0
  92. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +6 -0
  93. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -0
  94. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +2 -0
  95. package/cypress/e2e/ILC/TextSelection/Scoring/singleSelectionPreviewScoring.js +247 -0
  96. package/cypress/e2e/ILC/TextSelection/headerSection.js +4 -5
  97. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +1 -2
  98. package/cypress/e2e/ILC/TextSelection/singleMultipleSelection.js +100 -0
  99. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordionOutline.js +248 -0
  100. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordionStrikethrough.js +247 -0
  101. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordionUnderline.js +239 -0
  102. package/cypress/e2e/ILC/TextSelection/textSelectionStyle.js +150 -0
  103. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +3 -2
  104. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +2 -3
  105. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
  106. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +21 -5
  107. package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
  108. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +0 -11
  109. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -29
  110. package/cypress/pages/components/draggableOptionsStyleAndLayoutComponent.js +1 -1
  111. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
  112. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -3
  113. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -2
  114. package/cypress/pages/components/optionsWrapperComponent.js +2 -2
  115. package/cypress/pages/components/playbackControlsBaseComponent.js +2 -2
  116. package/cypress/pages/components/questionInputFieldComponent.js +1 -0
  117. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -2
  118. package/cypress/pages/components/singleMultipleSelectionModeComponent.js +1 -1
  119. package/cypress/pages/createItemPage.js +1 -1
  120. package/cypress/pages/dialogBoxBase.js +21 -9
  121. package/cypress/pages/dragAndDropIntoCategoriesPage.js +4 -5
  122. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +83 -5
  123. package/cypress/pages/graphingPage.js +4 -7
  124. package/cypress/pages/gridFillPage.js +15 -16
  125. package/cypress/pages/listOrderingPage.js +373 -2
  126. package/cypress/pages/matchingPage.js +89 -33
  127. package/cypress/pages/multipleSelectionGridPage.js +11 -13
  128. package/cypress/pages/multipleSelectionPage.js +4 -5
  129. package/cypress/pages/numberLinePage.js +2 -13
  130. package/cypress/pages/shortTextResponsePage.js +2 -3
  131. package/cypress/pages/textEntryMathPage.js +28 -0
  132. package/cypress/pages/textSelectionPage.js +242 -3
  133. package/cypress/pages/videoResponsePage.js +0 -2
  134. package/package.json +1 -1
  135. /package/cypress/e2e/ILC/TextSelection/{styleAndLayoutCustomizationAccordion.js → styleAndLayoutCustomizationAccordionFilledIn.js} +0 -0
@@ -65,8 +65,8 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
65
65
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
66
66
  fillInTheGapsOverImageDropdownPage.steps.switchToStudentView();
67
67
  });
68
-
69
- it('When the user attempts the question incorrectly and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect dropdowns, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
68
+ //Remove the skip after https://redmine.zeuslearning.com/issues/579376 is resolved.
69
+ it.skip('When the user attempts the question incorrectly and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect dropdowns, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
70
70
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
71
71
  fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
72
72
  fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(0);
@@ -81,8 +81,8 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
81
81
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
82
82
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
83
83
  });
84
-
85
- it('When the user attempts the question partially correct, then on switching to \'Grading\' view, correct icon should be displayed besides the correct dropdowns, incorrect icon should be displayed besides incorrect dropdown, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
84
+ //Remove the skip after https://redmine.zeuslearning.com/issues/579376 is resolved.
85
+ it.skip('When the user attempts the question partially correct, then on switching to \'Grading\' view, correct icon should be displayed besides the correct dropdowns, incorrect icon should be displayed besides incorrect dropdown, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
86
86
  fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
87
87
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
88
88
  fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
@@ -98,8 +98,8 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
98
98
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
99
99
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
100
100
  });
101
-
102
- it('When user attempts the question correctly, on switching to \'Grading\' view, then correct icons should be displayed beside all the correct dropdowns, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
101
+ //Remove the skip after https://redmine.zeuslearning.com/issues/579376 is resolved.
102
+ it.skip('When user attempts the question correctly, on switching to \'Grading\' view, then correct icons should be displayed beside all the correct dropdowns, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
103
103
  fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
104
104
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
105
105
  fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
@@ -65,8 +65,8 @@ describe('fill in the gaps over image - dropdown - Additional settings', () => {
65
65
  });
66
66
  });
67
67
  });
68
-
69
- describe('Additional settings: Font size - functionality in preview tab', () => {
68
+ //Need to remove comment once https://redmine.zeuslearning.com/issues/564870 is resolved.
69
+ describe.skip('Additional settings: Font size - functionality in preview tab', () => {
70
70
  abortEarlySetup();
71
71
  before(() => {
72
72
  fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
@@ -77,9 +77,9 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
77
77
  });
78
78
  });
79
79
 
80
- it('When user focus in and out of any of the \'Options\' input field without typing anything, an error message should be thrown', () => {
80
+ it('When user focus in and out of any of the \'Options\' input field without typing anything, an error message should not be thrown', () => {
81
81
  fillInTheGapsOverImageDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField(2);
82
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Option is required.');
82
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
83
83
  });
84
84
 
85
85
  it('User should be able to enter text in options input field and \'Error: Option is required.\' error message should disappear', () => {
@@ -266,6 +266,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
266
266
  it('When user selects a dropdown and changes dropdown pointer style in edit tab, then changes in dropdown pointer should be reflected in preview tab', () => {
267
267
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
268
268
  fillInTheGapsOverImageDropdownPage.steps.selectCanvasMenuButton('Select dropdown')
269
+ fillInTheGapsOverImageDropdownPage.steps.selectCanvasMenuButton('Select dropdown')
269
270
  fillInTheGapsOverImageDropdownPage.steps.selectResponseArea(0);
270
271
  fillInTheGapsOverImageDropdownPage.steps.selectResponseAreaPointerStyle(dropdownPointerStyles[2]);
271
272
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
@@ -281,7 +282,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
281
282
  fillInTheGapsOverImageDropdownPage.steps.verifyTextColorOfTextBoxInPreviewTab('rgb(0, 0, 46)');
282
283
  fillInTheGapsOverImageDropdownPage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
283
284
  });
284
-
285
285
  //remove the following skips when https://redmine.zeuslearning.com/issues/574944 is resolved.
286
286
  it.skip('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
287
287
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
@@ -290,6 +290,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
290
290
  fillInTheGapsOverImageDropdownPage.steps.verifyTextOfTextBoxInPreviewTab('');
291
291
  });
292
292
 
293
+ it.skip('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
293
294
  it.skip('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
294
295
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
295
296
  fillInTheGapsOverImageDropdownPage.steps.redoAction();
@@ -297,6 +298,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
297
298
  fillInTheGapsOverImageDropdownPage.steps.verifyTextBoxExistInPreviewTab();
298
299
  });
299
300
 
301
+ it.skip('When user clicks on \'Clear all\' button, then all dropdowns should be deleted in preview tab', () => {
300
302
  it.skip('When user clicks on \'Clear all\' button, then all dropdowns should be deleted in preview tab', () => {
301
303
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
302
304
  fillInTheGapsOverImageDropdownPage.steps.clearAllCanvas();
@@ -1,6 +1,5 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
2
  import { dialogBoxBase, fillInTheGapsOverImageDropdownPage } from "../../../pages";
3
- import utilities from "../../../support/helpers/utilities";
4
3
  import { commonComponents } from "../../../pages/components";
5
4
  const optionsForDropdown = ['Flower', 'Petal', 'Stem', 'Branch'];
6
5
 
@@ -44,14 +43,11 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
44
43
  });
45
44
 
46
45
  describe('Validation error messages', () => {
47
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points', 'Please upload an image', 'Please insert a dropdown']);
48
47
 
49
48
  it('Validation error messages should be displayed below required input fields', () => {
50
49
  fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
51
- fillInTheGapsOverImageDropdownPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
52
- utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 0), 'Error: Image is required.');
53
- utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 1), 'Error: Please insert a dropdown.');
54
- fillInTheGapsOverImageDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
50
+ fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please set points', 'Please upload an image', 'Please insert a dropdown'])
55
51
  });
56
52
 
57
53
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -63,8 +59,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
63
59
  fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
64
60
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
65
61
  commonComponents.steps.verifyErrorMessageIsNotDisplayed();
66
- //Need to remove comment once https://redmine.zeuslearning.com/issues/574229 is resolved
67
- // fillInTheGapsOverImageDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
68
62
  });
69
63
 
70
64
  commonComponents.tests.verifyCreateItemWrapperContentsA11y();
@@ -38,10 +38,9 @@ describe('Create item page - Fill in the gaps over image with dropdown: Supporte
38
38
  });
39
39
  });
40
40
 
41
- it('When the user tries to uploads an image with unsupported file type, then an error message, "Error: The file type is not supported. Please upload a file with the following supported formats: JPG, PNG, GIF, SVG.", should be displayed', () => {
41
+ it('When the user tries to uploads an image with unsupported file type, then an error message, "Error: The file type is not supported. Please upload a file with the following supported formats: JPG, PNG, GIF, SVG.", should not be displayed', () => {
42
42
  fillInTheGapsOverImageDropdownPage.steps.uploadFile('sample.heic');
43
- utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.errorMessage(), 'Error: The file type is not supported. Please upload a file with the following supported formats: JPG, PNG, GIF, SVG.');
44
- utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.errorMessage(), 'visible');
43
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.errorMessage(), 'notExist');
45
44
  });
46
45
 
47
46
  fillInTheGapsOverImageDropdownPage.tests.verifyErrorMessageCSSAndA11y();
@@ -1,6 +1,5 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
2
  import { dialogBoxBase, fillInTheGapsOverImageTextPage } from "../../../pages";
3
- import utilities from "../../../support/helpers/utilities";
4
3
  const options = ['Flower', 'Leaves'];
5
4
 
6
5
  describe('Create item page - Fill in the gaps over image - text: Header section and saving question', () => {
@@ -46,13 +45,11 @@ describe('Create item page - Fill in the gaps over image - text: Header section
46
45
  });
47
46
 
48
47
  describe('Validation error messages', () => {
49
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
48
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points', 'Please upload an image', 'Please insert a text container']);
50
49
 
51
50
  it('Validation error messages should be displayed below required input fields', () => {
52
51
  fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
53
- fillInTheGapsOverImageTextPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
- utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageTextPage.errorMessage(), 0), 'Error: Image is required.');
55
- utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageTextPage.errorMessage(), 1), 'Error: Please insert a text container.');
52
+ fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please set points', 'Please upload an image', 'Please insert a text container']);
56
53
  });
57
54
 
58
55
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -61,6 +58,7 @@ describe('Create item page - Fill in the gaps over image - text: Header section
61
58
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
62
59
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }]);
63
60
  fillInTheGapsOverImageTextPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
61
+ fillInTheGapsOverImageTextPage.steps.allotPoints(10);
64
62
  fillInTheGapsOverImageTextPage.steps.verifyErrorMessageIsNotDisplayed();
65
63
  fillInTheGapsOverImageTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
66
64
  });
@@ -165,7 +165,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
165
165
  fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
166
166
  });
167
167
 
168
- //Uncommented code once https://redmine.zeuslearning.com/issues/577355 is resolved
168
+ //Remove skip once https://redmine.zeuslearning.com/issues/577355 is resolved
169
169
  it.skip('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
170
170
  fillInTheGapsOverImageTextPage.steps.switchToEditTab();
171
171
  fillInTheGapsOverImageTextPage.steps.undoAction();
@@ -173,7 +173,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
173
173
  fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('');
174
174
  });
175
175
 
176
- //Uncommented code once https://redmine.zeuslearning.com/issues/577355 is resolved
176
+ //Remove skip once https://redmine.zeuslearning.com/issues/577355 is resolved
177
177
  it.skip('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
178
178
  fillInTheGapsOverImageTextPage.steps.switchToEditTab();
179
179
  fillInTheGapsOverImageTextPage.steps.redoAction();
@@ -62,14 +62,14 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
62
62
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }]);
63
63
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Leaves' }]);
64
64
  fillInTheGapsOverImageTextPage.steps.allotPoints(5);
65
- fillInTheGapsOverImageTextPage.steps.deleteAlternativeAnswerAccordion(1);
65
+ fillInTheGapsOverImageTextPage.steps.deleteAlternativeAnswerAccordion(0);
66
66
  fillInTheGapsOverImageTextPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
67
- fillInTheGapsOverImageTextPage.steps.verifyAlternativeAnswerAccordionLabel(1);
67
+ fillInTheGapsOverImageTextPage.steps.verifyAlternativeAnswerAccordionLabel(0);
68
68
  });
69
69
 
70
70
  it('When correct answers and points are set in alternate answer and user clicks on correct answer accordion, then correct answer accordion should be expanded and the alternate answer accordion should be collapsed', () => {
71
71
  fillInTheGapsOverImageTextPage.steps.expandCorrectAnswerAccordion();
72
- fillInTheGapsOverImageTextPage.steps.verifyAlternateAnswerAccordionIsCollapsed(1);
72
+ fillInTheGapsOverImageTextPage.steps.verifyAlternateAnswerAccordionIsCollapsed(0);
73
73
  });
74
74
  });
75
75
  });
@@ -40,13 +40,13 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
40
40
 
41
41
  fillInTheGapsOverImageTextPage.tests.verifyBorderColorSectionContents();
42
42
 
43
- fillInTheGapsOverImageTextPage.tests.verifyBorderStyleSectionContents('Dashed');
43
+ fillInTheGapsOverImageTextPage.tests.verifyBorderStyleSectionContents('Solid');
44
44
 
45
45
  fillInTheGapsOverImageTextPage.tests.verifyFillColorTooltips();
46
46
 
47
47
  fillInTheGapsOverImageTextPage.tests.verifyBorderColorTooltips();
48
48
 
49
- fillInTheGapsOverImageTextPage.tests.verifyStyleAndLayoutCustomizationAccordionContentsCSSAndA11y('dashed');
49
+ fillInTheGapsOverImageTextPage.tests.verifyStyleAndLayoutCustomizationAccordionContentsCSSAndA11y('Solid');
50
50
  });
51
51
 
52
52
  describe('Fill color - Edit tab', () => {
@@ -139,25 +139,25 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
139
139
  });
140
140
 
141
141
  it('When the default color block is in selected state in the "Fill color" section, then the background color of the text containers in the canvas image should be the default selected color', () => {
142
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px dashed ${css.color.activeComponentBorder}`);
142
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${css.color.activeComponentBorder}`);
143
143
  });
144
144
 
145
145
  it('When the user selects the "None" color block, it should get in selected state and the no background color should be present for the text containers in the canvas image', () => {
146
- fillInTheGapsOverImageTextPage.steps.selectColorBlock(3);
147
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px dashed ${css.color.transparent}`);
146
+ fillInTheGapsOverImageTextPage.steps.selectColorBlock(1);
147
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${css.color.activeComponentBorder}`);
148
148
  });
149
149
 
150
150
  it('When the user clicks on the "Edit color" button, modifies color for the selected color block, then the background color of the text containers in the canvas image should be the modified selected color', () => {
151
151
  fillInTheGapsOverImageTextPage.steps.editColor(1);
152
152
  colorPopupComponent.steps.clickInColorSaturationPalette();
153
153
  colorPopupComponent.steps.clickOnOkButton();
154
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px dashed ${modifiedColor}`);
154
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${modifiedColor}`);
155
155
  });
156
156
 
157
157
  it('When the adds a new text container, then the background color of the newly added text container should be the modified selected color', () => {
158
158
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
159
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px dashed ${modifiedColor}`);
160
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(1, `1px dashed ${modifiedColor}`);
159
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${modifiedColor}`);
160
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderColor(1, `1px solid ${modifiedColor}`);
161
161
  });
162
162
  });
163
163
 
@@ -175,7 +175,7 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
175
175
  });
176
176
 
177
177
  it('When the default color block is in selected state in the "Fill color" section, then the background color of the text containers in the preview tab should be the default selected color', () => {
178
- fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px dashed ${css.color.activeComponentBorder}`);
178
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px solid ${css.color.activeComponentBorder}`);
179
179
  });
180
180
 
181
181
  it('When the user selects the "None" color block, it should get in selected state and the no background color should be present for the text containers in the preview tab', () => {
@@ -191,15 +191,15 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
191
191
  colorPopupComponent.steps.clickInColorSaturationPalette();
192
192
  colorPopupComponent.steps.clickOnOkButton();
193
193
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
194
- fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px dashed ${modifiedColor}`);
194
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px solid ${modifiedColor}`);
195
195
  });
196
196
 
197
197
  it('The background color of the text containers in the preview tab should be the modified selected color', () => {
198
198
  fillInTheGapsOverImageTextPage.steps.switchToEditTab();
199
199
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
200
200
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
201
- fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px dashed ${modifiedColor}`);
202
- fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(1, `1px dashed ${modifiedColor}`);
201
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(0, `1px solid ${modifiedColor}`);
202
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderColor(1, `1px solid ${modifiedColor}`);
203
203
  });
204
204
  });
205
205
 
@@ -308,8 +308,8 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
308
308
  fillInTheGapsOverImageTextPage.steps.expandStyleAndLayoutCustomizationAccordion();
309
309
  });
310
310
 
311
- it('When the "dashed" border style is in selected state, then the border style of the text containers in the canvas image should be "dashed"', () => {
312
- fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderStyle(0, 'dashed');
311
+ it('When the "solid" border style is in selected state, then the border style of the text containers in the canvas image should be "solid"', () => {
312
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaOverImageBorderStyle(0, 'solid');
313
313
  });
314
314
 
315
315
  borderStyles.forEach((style) => {
@@ -332,8 +332,8 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
332
332
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
333
333
  });
334
334
 
335
- it('When the "dashed" border style is in selected state, then the border style of the text containers in the preview tab should be "dashed"', () => {
336
- fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderStyle(0, 'dashed');
335
+ it('When the "solid" border style is in selected state, then the border style of the text containers in the preview tab should be "solid"', () => {
336
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldBorderStyle(0, 'solid');
337
337
  });
338
338
 
339
339
  borderStyles.forEach((style) => {
@@ -1,4 +1,5 @@
1
1
  import { fillInTheGapsTextPage } from "../../../pages";
2
+ import { commonComponents } from "../../../pages/components";
2
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const css = Cypress.env('css');
@@ -97,12 +98,12 @@ describe('Create item page - Fill in the gaps with text: Question instructions,
97
98
  };
98
99
  });
99
100
 
100
- it('When the user removes all response areas from the question input field, an error message \'Error: Minimum one response token is required.\' should be displayed', () => {
101
+ it('When the user removes all response areas from the question input field, an error message should not be displayed', () => {
101
102
  cy.log('Switching to edit tab')
102
103
  fillInTheGapsTextPage.steps.switchToEditTab();
103
104
  fillInTheGapsTextPage.steps.deleteAResponseArea(0);
104
105
  fillInTheGapsTextPage.steps.deleteAResponseArea(0);
105
- utilities.verifyInnerText(fillInTheGapsTextPage.errorMessage(), 'Error: Minimum one response token is required.')
106
+ utilities.verifyElementVisibilityState(fillInTheGapsTextPage.errorMessage(), 'notExist')
106
107
  });
107
108
 
108
109
  fillInTheGapsTextPage.tests.verifyErrorMessageCSSAndA11y();
@@ -46,16 +46,16 @@ describe('Create item page - Fill in the gaps with text: Header section and savi
46
46
  });
47
47
 
48
48
  describe('Validation error messages', () => {
49
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
49
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
50
50
 
51
51
  it('Validation error messages should be displayed below required input fields', () => {
52
52
  fillInTheGapsTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
53
- fillInTheGapsTextPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
- utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsTextPage.errorMessage(), 0), 'Error: Answer is required.');
53
+ fillInTheGapsTextPage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
55
54
  });
56
55
 
57
56
  it('Validation error messages should disappear when required input fields are filled', () => {
58
57
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }]);
58
+ fillInTheGapsTextPage.steps.allotPoints(10);
59
59
  fillInTheGapsTextPage.steps.verifyErrorMessageIsNotDisplayed();
60
60
  fillInTheGapsTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
61
61
  });
@@ -50,14 +50,14 @@ describe('Create Item page - Fill in the gaps with text: Specify correct answer,
50
50
  cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
51
51
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Flower' }]);
52
52
  fillInTheGapsTextPage.steps.allotPoints(5);
53
- fillInTheGapsTextPage.steps.deleteAlternativeAnswerAccordion(1);
53
+ fillInTheGapsTextPage.steps.deleteAlternativeAnswerAccordion(0);
54
54
  fillInTheGapsTextPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
55
- fillInTheGapsTextPage.steps.verifyAlternativeAnswerAccordionLabel(1);
55
+ fillInTheGapsTextPage.steps.verifyAlternativeAnswerAccordionLabel(0);
56
56
  });
57
57
 
58
58
  it('When correct answers and points are set in alternative answer and user clicks on correct answer accordion, then correct answer accordion should be expanded and the alternative answer accordion should be collapsed', () => {
59
59
  fillInTheGapsTextPage.steps.expandCorrectAnswerAccordion();
60
- fillInTheGapsTextPage.steps.verifyAlternateAnswerAccordionIsCollapsed(1);
60
+ fillInTheGapsTextPage.steps.verifyAlternateAnswerAccordionIsCollapsed(0);
61
61
  });
62
62
  });
63
63
  });
@@ -45,12 +45,11 @@ describe('Create item page - Graphing: Header section and saving question', () =
45
45
  });
46
46
 
47
47
  describe('Validation error messages', () => {
48
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
48
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
49
49
 
50
50
  it('Validation error messages should be displayed below required input fields', () => {
51
51
  graphingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
52
- graphingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
53
- utilities.verifyInnerText(utilities.getNthElement(graphingPage.errorMessage(), 0), 'Error: Please set a correct answer.');
52
+ graphingPage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
54
53
  });
55
54
 
56
55
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -42,13 +42,11 @@ describe('Create item page - Grid fill: Header section and Saving question', ()
42
42
  });
43
43
 
44
44
  describe('Validation error messages', () => {
45
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
45
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
48
  gridFillPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
- utilities.verifyInnerText(gridFillPage.errorMessage(), 'Error: Please set a correct answer.');
50
- gridFillPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
51
- gridFillPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
49
+ gridFillPage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
52
50
  });
53
51
 
54
52
  //failed due to https://redmine.zeuslearning.com/issues/564243
@@ -1,4 +1,5 @@
1
1
  import { dialogBoxBase, gridFillPage } from "../../../pages";
2
+ import { autoScoredSpecifyCorrectAnswerSection } from "../../../pages/components";
2
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
 
@@ -54,12 +55,14 @@ describe('Create Item page - Grid fill: Specify Correct answer, Alternative corr
54
55
  it('When user has not given an input in \'Cell shade count\' then user should not be able to add another alternate accordion', () => {
55
56
  cy.log('Pre-step: Uncheck \'Match exact position of cells\' checkbox');
56
57
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
57
- gridFillPage.steps.addAlternativeAnswerAccordion(1);
58
- gridFillPage.steps.closeWarningPopup();
58
+ utilities.verifyElementDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
59
59
  gridFillPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
60
60
  });
61
-
61
+
62
+ //Make changes once https://redmine.zeuslearning.com/issues/579214 is resolved
62
63
  it('\'Error: Please set a correct answer.\' error message should be displayed', () => {
64
+ gridFillPage.steps.addInputToCellShadeCountInputField(5);
65
+ gridFillPage.steps.clearCellShadeCountInputField();
63
66
  utilities.verifyInnerText(gridFillPage.errorMessage(), 'Error: Please set a correct answer.');
64
67
  });
65
68
 
@@ -51,13 +51,11 @@ describe('Create question page - Highlight image: Header section and Saving ques
51
51
  });
52
52
 
53
53
  describe('Validation error messages', () => {
54
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
54
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points', 'Please specify a possible option']);
55
55
 
56
56
  it('Validation error messages should be displayed below required input fields', () => {
57
57
  imageHighlightPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
58
- imageHighlightPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
59
- imageHighlightPage.steps.verifySpecifyCorrectAnswerErrorMessage();
60
- imageHighlightPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
58
+ imageHighlightPage.steps.verifyWarningIconOnRequiredFields(['Please set points', 'Please specify a possible option']);
61
59
  });
62
60
 
63
61
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -171,7 +171,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
171
171
  //Penalty points for the entire question
172
172
  it('When the user sets penalty scoring to \'Penalty points for the entire question\', allots penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
173
173
  listOrderingPage.steps.expandPenaltyScoringDropdown();
174
- listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for the entire question');
174
+ listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for the entire question');
175
175
  listOrderingPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
176
176
  listOrderingPage.steps.allotPenaltyPoints(4);
177
177
  listOrderingPage.steps.switchToPreviewTab();
@@ -208,7 +208,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
208
208
  //Penalty points for each incorrect option - Specify total penalty points
209
209
  it('When the user sets penalty scoring to \'Penalty points for each incorrect option\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points of all the empty and incorrect option', () => {
210
210
  listOrderingPage.steps.expandPenaltyScoringDropdown();
211
- listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('penalty points for each incorrect option');
211
+ listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for each incorrect option');
212
212
  listOrderingPage.steps.allotTotalPenaltyPoints(4);
213
213
  listOrderingPage.steps.switchToPreviewTab();
214
214
  listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
@@ -43,7 +43,7 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
43
43
 
44
44
  it('When the user selects \'Penalty points for each incorrect option\' from the penalty scoring dropdown, \'Automatically set penalty for each incorrect option to total points / no. of incorrect options\' label and checkbox should be displayed, by default the checkbox should be unchecked. Two radio buttons with labels - \'Specify total penalty points\' and \'Specify points for each incorrect option\' should be displayed. By default, \'Specify total penalty points\' radio button should be checked', () => {
45
45
  listOrderingPage.steps.expandPenaltyScoringDropdown();
46
- listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('penalty points for each incorrect option');
46
+ listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for each incorrect option');
47
47
  utilities.verifyInnerText(listOrderingPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect option to total points / no. of incorrect options');
48
48
  utilities.verifyInnerText(listOrderingPage.specifyTotalPenaltyPointsRadioButtonLabel(), 'Specify total penalty points');
49
49
  utilities.verifyInnerText(listOrderingPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect option');
@@ -1,4 +1,5 @@
1
1
  import { dialogBoxBase, listOrderingPage } from "../../../pages";
2
+ import { autoScoredSpecifyCorrectAnswerSection, commonComponents } from "../../../pages/components";
2
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const options = ['sprout', 'plant', 'flower', 'seed'];
@@ -56,19 +57,16 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
56
57
  // Uncomment below code once https://redmine.zeuslearning.com/issues/577520 is Resolved
57
58
  // listOrderingPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('list ordering');
58
59
 
59
- it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the warning popup should appear and on closing the warning popup, an error message should be displayed in the \'Specify correct answer\' section', () => {
60
- listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
61
- dialogBoxBase.steps.closeWarningPopup();
60
+ it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the \'+Add alternative answer\' button is disable state', () => {
61
+ utilities.verifyElementDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
62
62
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
63
- utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: All options need to have a value assigned to them from the dropdown.');
64
- utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
63
+ commonComponents.steps.verifyErrorMessageIsNotDisplayed();
65
64
  });
66
65
 
67
- listOrderingPage.tests.verifyErrorMessageCSSAndA11y();
68
66
 
69
- it('When the user checks \'Randomize options\' then the error message should persist', () => {
67
+ it('When the user checks \'Randomize options\' then the error message should not persist', () => {
70
68
  listOrderingPage.steps.checkRandomizeOptionsCheckbox();
71
- utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
69
+ commonComponents.steps.verifyErrorMessageIsNotDisplayed();
72
70
  });
73
71
 
74
72
  it('When the user sets options order in the dropdowns, then the error message should disappear', () => {
@@ -43,17 +43,11 @@ describe('Create item page - Matching : Header section and Saving question', ()
43
43
  });
44
44
 
45
45
  describe('Validation error messages', () => {
46
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points', 'Please enter all option']);
47
47
 
48
48
  it('Validation error messages should be displayed below required input fields', () => {
49
49
  listOrderingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
50
- for (let index = 0; index < 4; index++) {
51
- listOrderingPage.steps.verifyOptionsInputFieldErrorMessage(index);
52
- }
53
- listOrderingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
- //need to remove comment after https://redmine.zeuslearning.com/issues/577520 is resolved
55
- //listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
56
- utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.errorMessage(), -1), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
50
+ listOrderingPage.steps.verifyWarningIconOnRequiredFields(['Please set points', 'Please enter all option']);
57
51
  });
58
52
 
59
53
  it('Validation error messages should disappear when required input fields are filled', () => {