itemengine-cypress-automation 1.0.244 → 1.0.245

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  2. package/cypress/e2e/ILC/ChartsBar/headerSection.js +1 -16
  3. package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
  4. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +3 -2
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +4 -2
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +4 -2
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +5 -2
  8. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +2 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +4 -2
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +4 -2
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +2 -2
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +5 -3
  13. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  14. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +2 -2
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +5 -2
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +6 -4
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -0
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +8 -2
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -1
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -3
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +6 -2
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +3 -2
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -2
  24. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -3
  25. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -2
  26. package/cypress/e2e/ILC/Graphing/headerSection.js +3 -2
  27. package/cypress/e2e/ILC/GridFill/headerSection.js +3 -1
  28. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -3
  29. package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +2 -0
  30. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +4 -2
  31. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +8 -6
  32. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +8 -2
  33. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
  34. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +89 -0
  35. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +225 -0
  36. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +225 -0
  37. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +405 -0
  38. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +201 -0
  39. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +147 -0
  40. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +171 -0
  41. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +203 -0
  42. package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
  43. package/cypress/e2e/ILC/Matching/headerSection.js +10 -2
  44. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +17 -4
  45. package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
  46. package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
  47. package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationLayoutProperties.js +227 -0
  48. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +5 -2
  49. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +9 -2
  50. package/cypress/e2e/ILC/NumberLine/headerSection.js +3 -2
  51. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -3
  52. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
  53. package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -2
  54. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +9 -2
  55. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  56. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  57. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
  58. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  59. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  60. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  61. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
  62. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  63. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  64. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  65. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
  66. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +3 -3
  67. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +4 -4
  68. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +6 -6
  69. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
  70. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
  71. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  72. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +1 -1
  73. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -1
  74. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +10 -10
  75. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
  76. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +1 -1
  77. package/cypress/e2e/ILC/TextSelection/headerSection.js +5 -2
  78. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +2 -1
  79. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +2 -3
  80. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +2 -1
  81. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  82. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +11 -0
  83. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +27 -9
  84. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -2
  85. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
  86. package/cypress/pages/components/optionsWrapperComponent.js +2 -2
  87. package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -2
  88. package/cypress/pages/createItemPage.js +1 -1
  89. package/cypress/pages/dialogBoxBase.js +7 -13
  90. package/cypress/pages/dragAndDropIntoCategoriesPage.js +5 -4
  91. package/cypress/pages/graphingPage.js +7 -4
  92. package/cypress/pages/gridFillPage.js +16 -15
  93. package/cypress/pages/matchingPage.js +613 -6
  94. package/cypress/pages/multipleSelectionGridPage.js +5 -4
  95. package/cypress/pages/multipleSelectionPage.js +5 -4
  96. package/cypress/pages/numberLinePage.js +13 -2
  97. package/cypress/pages/shortTextResponsePage.js +3 -2
  98. package/cypress/pages/textEntryMathPage.js +7 -0
  99. package/package.json +1 -1
@@ -49,12 +49,13 @@ describe('Create item page - Number line: Header section and saving question', (
49
49
  });
50
50
 
51
51
  describe('Validation error messages', () => {
52
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all label values', 'Please set points']);
52
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
53
53
 
54
54
  it('Validation error messages should be displayed below required input fields', () => {
55
55
  numberLineLabelPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
56
- numberLineLabelPage.steps.verifyWarningIconOnRequiredFields(['Please enter all label values', 'Please set points']);
57
- numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
56
+ utilities.verifyInnerText(utilities.getNthElement(numberLineLabelPage.errorMessage(), 1), 'Error: Label is required.');
57
+ utilities.verifyInnerText(utilities.getNthElement(numberLineLabelPage.errorMessage(), 3), 'Error: Please set a correct answer.');
58
+ numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
58
59
  });
59
60
 
60
61
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -45,11 +45,13 @@ describe('Create item page - Short text response - text: Header section and savi
45
45
  });
46
46
 
47
47
  describe('Validation error messages', () => {
48
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
48
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
49
49
 
50
50
  it('Validation error messages should be displayed below required input fields', () => {
51
51
  shortTextResponsePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
52
- shortTextResponsePage.steps.verifyWarningIconOnRequiredFields(['Please set points'])
52
+ utilities.verifyInnerText(shortTextResponsePage.errorMessage(), 'Error: Answer is required.');
53
+ shortTextResponsePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
+ shortTextResponsePage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
53
55
  });
54
56
 
55
57
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -42,11 +42,14 @@ describe('Create Item page - Single Selection: Header section and Saving questio
42
42
  });
43
43
 
44
44
  describe('Validation error messages', () => {
45
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
45
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
48
  singleSelectionPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
- singleSelectionPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
49
+ singleSelectionPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
+ singleSelectionPage.steps.verifyOptionsInputFieldErrorMessage(0);
51
+ singleSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
52
+ singleSelectionPage.steps.verifySpecifyCorrectAnswerErrorMessage();
50
53
  });
51
54
 
52
55
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -42,11 +42,18 @@ describe('Create item page - Single selection grid: Header section and Saving qu
42
42
  });
43
43
 
44
44
  describe('Validation error messages', () => {
45
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all questions', 'Please set points']);
45
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
48
  singleSelectionGridPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
- singleSelectionGridPage.steps.verifyWarningIconOnRequiredFields(['Please enter all questions', 'Please set points']);
49
+ singleSelectionGridPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
+ utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(), 0), 'Error: Please enter some text.');
51
+ utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(), 1), 'Error: Please set a correct answer.');
52
+ for (let index = 1; index < 4; index++) {
53
+ singleSelectionGridPage.steps.verifyErrorIconInSpecifyColumnsAndRowsGrid(index);
54
+ }
55
+ singleSelectionGridPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
56
+ singleSelectionGridPage.steps.verifySpecifyCorrectAnswerErrorMessage();
50
57
  });
51
58
 
52
59
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -45,7 +45,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
45
45
  equationEditorFlyout.steps.clickOnOkButton();
46
46
  textEntryMathPage.steps.allotPoints(20);
47
47
  textEntryMathPage.steps.expandAdditionalSettings();
48
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
48
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
49
  textEntryMathPage.steps.switchToPreviewTab();
50
50
  });
51
51
 
@@ -45,7 +45,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
45
45
  equationEditorFlyout.steps.clickOnOkButton();
46
46
  textEntryMathPage.steps.allotPoints(20);
47
47
  textEntryMathPage.steps.expandAdditionalSettings();
48
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
48
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
49
  textEntryMathPage.steps.switchToPreviewTab();
50
50
  });
51
51
 
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(12);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 4, 1: 9, 2: 5 });
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -47,7 +47,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
47
47
  equationEditorFlyout.steps.clickOnOkButton();
48
48
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 8, 1: 4, 2: 6 });
49
49
  textEntryMathPage.steps.expandAdditionalSettings();
50
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
51
51
  textEntryMathPage.steps.switchToPreviewTab();
52
52
  });
53
53
 
@@ -47,7 +47,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
47
47
  equationEditorFlyout.steps.clickOnOkButton();
48
48
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 4, 2: 6 });
49
49
  textEntryMathPage.steps.expandAdditionalSettings();
50
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
51
51
  textEntryMathPage.steps.switchToPreviewTab();
52
52
  });
53
53
 
@@ -32,7 +32,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
32
32
  equationEditorFlyout.steps.clickOnOkButton();
33
33
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 5, 1: 9, 2: 6 });
34
34
  textEntryMathPage.steps.expandAdditionalSettings();
35
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
35
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
36
36
  textEntryMathPage.steps.switchToPreviewTab();
37
37
  });
38
38
 
@@ -141,7 +141,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
141
141
  equationEditorFlyout.steps.clickOnOkButton();
142
142
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 1, 1: 6, 2: 5 });
143
143
  textEntryMathPage.steps.expandAdditionalSettings();
144
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
144
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
145
145
  });
146
146
 
147
147
  it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
@@ -233,7 +233,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
233
233
  equationEditorFlyout.steps.clickOnOkButton();
234
234
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 2.67, 1: 1.99, 2: 1.34, 3: 4.5 });
235
235
  textEntryMathPage.steps.expandAdditionalSettings();
236
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
236
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
237
237
  });
238
238
 
239
239
  it('When the user sets \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.5 and less than 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -347,7 +347,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
347
347
  equationEditorFlyout.steps.clickOnOkButton();
348
348
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 5 });
349
349
  textEntryMathPage.steps.expandAdditionalSettings();
350
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
350
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
351
351
  });
352
352
 
353
353
  //Penalty points for the entire question
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(18);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(18);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -47,7 +47,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
47
47
  equationEditorFlyout.steps.clickOnOkButton();
48
48
  textEntryMathPage.steps.allotPoints(12);
49
49
  textEntryMathPage.steps.expandAdditionalSettings();
50
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
51
51
  textEntryMathPage.steps.switchToPreviewTab();
52
52
  });
53
53
 
@@ -31,7 +31,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
31
31
  equationEditorFlyout.steps.enterEquationUsingPiSymbol();
32
32
  textEntryMathPage.steps.allotPoints(18);
33
33
  textEntryMathPage.steps.expandAdditionalSettings();
34
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
34
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
35
35
  textEntryMathPage.steps.switchToPreviewTab();
36
36
  });
37
37
 
@@ -142,7 +142,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
142
142
  equationEditorFlyout.steps.clickOnOkButton();
143
143
  textEntryMathPage.steps.allotPoints(15);
144
144
  textEntryMathPage.steps.expandAdditionalSettings();
145
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
145
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
146
146
  });
147
147
 
148
148
  it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
@@ -22,7 +22,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
22
22
  textEntryMathPage.steps.addResponseArea();
23
23
  textEntryMathPage.steps.addResponseArea();
24
24
  textEntryMathPage.steps.expandAdditionalSettings();
25
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
25
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
26
26
  textEntryMathPage.steps.switchToPreviewTab();
27
27
  });
28
28
 
@@ -82,7 +82,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
82
82
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
83
83
  equationEditorFlyout.steps.enterEquationUsingPiSymbol();
84
84
  textEntryMathPage.steps.expandAdditionalSettings();
85
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
85
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
86
86
  textEntryMathPage.steps.switchToPreviewTab();
87
87
  break;
88
88
  case 'Item preview':
@@ -285,7 +285,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
285
285
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
286
286
  equationEditorFlyout.steps.enterEquationUsingPiSymbol();
287
287
  textEntryMathPage.steps.expandAdditionalSettings();
288
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
288
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
289
289
  textEntryMathPage.steps.allotPoints(20);
290
290
  });
291
291
 
@@ -36,7 +36,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
36
36
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
37
37
  cy.barsPreLoaderWait();
38
38
  textEntryMathPage.steps.expandAdditionalSettings();
39
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
39
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
40
40
  });
41
41
 
42
42
  it('By default \'Add structure\' tab will have active selection', () => {
@@ -110,7 +110,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
110
110
  textEntryMathPage.steps.addResponseArea();
111
111
  textEntryMathPage.steps.addResponseArea();
112
112
  textEntryMathPage.steps.expandAdditionalSettings();
113
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
113
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
114
114
  });
115
115
 
116
116
  it('For the two response token in question input field, two response accordions \'Response 1\' and \'Response 2\' should be present in collapsed state in the \'Specify correct answer section\'', () => {
@@ -145,7 +145,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
145
145
  textEntryMathPage.steps.addResponseArea();
146
146
  textEntryMathPage.steps.addResponseArea();
147
147
  textEntryMathPage.steps.expandAdditionalSettings();
148
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
148
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
149
149
  });
150
150
 
151
151
  it('For the two response token in question input field, in additional settings accordion, two \'ARIA label for text containers\'input fields should be displayed', () => {
@@ -169,7 +169,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
169
169
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
170
170
  cy.barsPreLoaderWait();
171
171
  textEntryMathPage.steps.expandAdditionalSettings();
172
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
172
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
173
173
  textEntryMathPage.steps.switchToPreviewTab();
174
174
  });
175
175
 
@@ -50,7 +50,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
50
50
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
51
51
  cy.barsPreLoaderWait();
52
52
  textEntryMathPage.steps.expandAdditionalSettings();
53
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
53
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
54
54
  });
55
55
 
56
56
  it('User should be able to select \'Partial - equal weights\' scoring type', () => {
@@ -72,7 +72,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
72
72
  cy.barsPreLoaderWait();
73
73
  textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
74
74
  textEntryMathPage.steps.expandAdditionalSettings();
75
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
75
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
76
76
  });
77
77
 
78
78
  textEntryMathPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -140,7 +140,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
140
140
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
141
141
  cy.barsPreLoaderWait();
142
142
  textEntryMathPage.steps.expandAdditionalSettings();
143
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
143
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
144
144
  });
145
145
 
146
146
  it('User should be able to select \'Partial - different weights\' scoring', () => {
@@ -162,7 +162,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
162
162
  cy.barsPreLoaderWait();
163
163
  textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
164
164
  textEntryMathPage.steps.expandAdditionalSettings();
165
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
165
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
166
166
  });
167
167
 
168
168
  textEntryMathPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -216,7 +216,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
216
216
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
217
217
  cy.barsPreLoaderWait();
218
218
  textEntryMathPage.steps.expandAdditionalSettings();
219
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
219
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
220
220
  });
221
221
 
222
222
  it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
@@ -261,7 +261,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
261
261
  textEntryMathPage.steps.expandScoringTypeDropdown();
262
262
  textEntryMathPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
263
263
  textEntryMathPage.steps.expandAdditionalSettings();
264
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
264
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
265
265
  });
266
266
 
267
267
  textEntryMathPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -26,7 +26,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
26
26
  textEntryMathPage.steps.selectSyntaxDropdownListOption('Number');
27
27
  textEntryMathPage.steps.expandAdditionalSettings();
28
28
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
29
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
29
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
30
30
  textEntryMathPage.steps.switchToPreviewTab();
31
31
  });
32
32
 
@@ -343,7 +343,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
343
343
  textEntryMathPage.steps.selectSyntaxDropdownListOption('Fraction');
344
344
  textEntryMathPage.steps.expandAdditionalSettings();
345
345
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
346
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
346
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
347
347
  textEntryMathPage.steps.switchToPreviewTab();
348
348
  });
349
349
 
@@ -781,7 +781,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
781
781
  textEntryMathPage.steps.selectSyntaxDropdownListOption('Variable');
782
782
  textEntryMathPage.steps.expandAdditionalSettings();
783
783
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
784
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
784
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
785
785
  textEntryMathPage.steps.switchToPreviewTab();
786
786
  });
787
787
 
@@ -930,7 +930,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
930
930
  textEntryMathPage.steps.selectSyntaxDropdownListOption('Expression');
931
931
  textEntryMathPage.steps.expandAdditionalSettings();
932
932
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
933
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
933
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
934
934
  textEntryMathPage.steps.switchToPreviewTab();
935
935
  });
936
936
 
@@ -1229,7 +1229,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
1229
1229
  textEntryMathPage.steps.selectSyntaxDropdownListOption('Scientific');
1230
1230
  textEntryMathPage.steps.expandAdditionalSettings();
1231
1231
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
1232
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
1232
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
1233
1233
  textEntryMathPage.steps.switchToPreviewTab();
1234
1234
  });
1235
1235
 
@@ -22,7 +22,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
22
22
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
23
23
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
24
24
  textEntryMathPage.steps.selectEvaluationMethod('Match exact');
25
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
25
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
26
26
  });
27
27
 
28
28
  it('When the user enters a numeric value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
@@ -24,7 +24,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
24
24
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
25
25
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
26
26
  textEntryMathPage.steps.selectEvaluationMethod('Match value');
27
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
27
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
28
28
  });
29
29
 
30
30
  it('When the user enters a numeric value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
@@ -23,7 +23,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
23
23
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
24
24
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
25
25
  textEntryMathPage.steps.selectEvaluationMethod('Symbols are equivalent');
26
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
26
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
27
27
  });
28
28
 
29
29
  it('When the user enters a equation using decimals in \'Specify correct answer\' section and the user enters the same exact answer it should be treated as correct', () => {
@@ -21,7 +21,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
21
21
  textEntryMathPage.steps.expandAdditionalSettings();
22
22
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
23
23
  textEntryMathPage.steps.allotPoints(20);
24
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
24
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
25
25
  });
26
26
 
27
27
  it('When the user enters a equation using decimals in \'Specify correct answer\' section and the user enters the same exact answer it should be treated as correct', () => {
@@ -24,7 +24,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
24
24
  textEntryMathPage.steps.selectEvaluationMethod('Response is true');
25
25
  textEntryMathPage.steps.expandAdditionalSettings();
26
26
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
27
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
27
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
28
28
  textEntryMathPage.steps.switchToPreviewTab();
29
29
  });
30
30
 
@@ -52,14 +52,14 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
52
52
  // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
53
53
  });
54
54
 
55
- it('When the user attempts the question using two inequalities then it should be treated as incorrect', () => {
55
+ it('When the user attempts the question using two inequalities then it should be treated as correct', () => {
56
56
  textEntryMathPage.steps.resetQuestionPreview();
57
57
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
58
58
  equationEditorFlyout.steps.enterTextInPreviewInputField('4+1>4<6');
59
59
  equationEditorFlyout.steps.clickOnOkButton();
60
60
  textEntryMathPage.steps.switchToGradingView();
61
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
62
- // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
61
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
62
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
63
63
  });
64
64
 
65
65
  it('When the user attempts the question using incorrect comparison of decimals then it should be treated as incorrect', () => {
@@ -220,7 +220,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
220
220
  textEntryMathPage.steps.selectEvaluationMethod('Expanded form');
221
221
  textEntryMathPage.steps.expandAdditionalSettings();
222
222
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
223
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
223
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
224
224
  textEntryMathPage.steps.switchToPreviewTab();
225
225
  });
226
226
 
@@ -432,7 +432,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
432
432
  textEntryMathPage.steps.selectEvaluationMethod('Factored form');
433
433
  textEntryMathPage.steps.expandAdditionalSettings();
434
434
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
435
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
435
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
436
436
  textEntryMathPage.steps.switchToPreviewTab();
437
437
  });
438
438
 
@@ -631,7 +631,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
631
631
  textEntryMathPage.steps.selectEvaluationMethod('Simplified version');
632
632
  textEntryMathPage.steps.expandAdditionalSettings();
633
633
  textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
634
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
634
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
635
635
  textEntryMathPage.steps.switchToPreviewTab();
636
636
  });
637
637
 
@@ -689,7 +689,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
689
689
  // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
690
690
  });
691
691
 
692
- it('When the user attempts the question using mixed fractions then it should be treated as incorrect if denominator is less than numerator', () => {
692
+ it('When the user attempts the question using mixed fractions then it should be treated as correct if denominator is less than numerator', () => {
693
693
  textEntryMathPage.steps.resetQuestionPreview();
694
694
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
695
695
  equationEditorFlyout.steps.enterTextInPreviewInputField('1');
@@ -697,8 +697,8 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
697
697
  equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3', '2']);
698
698
  equationEditorFlyout.steps.clickOnOkButton();
699
699
  textEntryMathPage.steps.switchToGradingView();
700
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
701
- // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
700
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
701
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
702
702
  });
703
703
 
704
704
  it('When the user attempts the question using polynomial expressions then it should be treated as correct', () => {
@@ -18,7 +18,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
18
18
  textEntryMathPage.steps.addResponseArea();
19
19
  textEntryMathPage.steps.allotPoints(10);
20
20
  textEntryMathPage.steps.expandAdditionalSettings();
21
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
21
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
22
22
  });
23
23
 
24
24
  textEntryMathPage.tests.verifyMinimumScoringDropdown();
@@ -42,7 +42,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
42
42
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'a−b');
43
43
  textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
44
44
  textEntryMathPage.steps.expandAdditionalSettings();
45
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
45
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
46
46
  });
47
47
 
48
48
  textEntryMathPage.tests.verifyPenaltyScoringDropdown(penaltyScoringTypeArray);
@@ -204,7 +204,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
204
204
  textEntryMathPage.steps.allotPoints(10);
205
205
  textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
206
206
  textEntryMathPage.steps.expandAdditionalSettings();
207
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
207
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
208
208
  });
209
209
 
210
210
  textEntryMathPage.tests.verifyRoundingDropdown();
@@ -33,7 +33,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
33
33
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
34
34
  equationEditorFlyout.steps.enterQuadraticEquation();
35
35
  textEntryMathPage.steps.expandAdditionalSettings();
36
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
36
+ // textEntryMathPage.steps.selectModalVisibilityTypeButton();
37
37
  textEntryMathPage.steps.switchToPreviewTab();
38
38
  break;
39
39
  case 'Item view':
@@ -43,16 +43,19 @@ describe('Create item page - Text selection: Header section and Saving question'
43
43
  });
44
44
 
45
45
  describe('Validation error messages', () => {
46
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
46
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
47
 
48
48
  it('Validation error messages should be displayed below required input fields', () => {
49
49
  textSelectionPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
50
- textSelectionPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
50
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
51
+ utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
51
52
  });
52
53
 
53
54
  it('Validation error messages should disappear when required input fields are filled', () => {
54
55
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', 'Lorem');
55
56
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection('Lorem');
57
+ utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
58
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
56
59
  textSelectionPage.steps.allotPoints(10);
57
60
  });
58
61
 
@@ -50,7 +50,8 @@ describe('Create Item page - Text selection: Question Instructions and Question
50
50
  it('When the user removes all the text from the question input field and focuses out of it, an error message \'Error: Question is required.\' should be displayed', () => {
51
51
  textSelectionPage.steps.clearQuestionInputField();
52
52
  textSelectionPage.steps.focusOutOfQuestionInputField();
53
- utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
53
+ utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Question is required.');
54
+ textSelectionPage.steps.verifyErroredStateOfQuestionInputField();
54
55
  });
55
56
 
56
57
  textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
@@ -92,15 +92,14 @@ describe('Create question page - Audio player: Header section and saving resourc
92
92
  });
93
93
  });
94
94
 
95
- // Need to remove comment once https://redmine.zeuslearning.com/issues/579147 is resolved
96
- describe.skip('Save button', () => {
95
+ describe('Save button', () => {
97
96
  abortEarlySetup();
98
97
  before(() => {
99
98
  audioPlayerPage.steps.navigateToCreateResource('audio player');
100
99
  });
101
100
 
102
101
  describe('Validation error messages', () => {
103
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload a file']);
102
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
104
103
 
105
104
  it('Validation error message(s) should be displayed below required input field(s)', () => {
106
105
  utilities.verifyElementVisibilityState(audioPlayerPage.errorMessage(), 'visible');
@@ -116,7 +116,8 @@ describe('Create question page - Upload Response: Question Instructions, Support
116
116
  it('When the user deselects all the file types from the \'Supported file types\' accordion menu, then a validation text \'Error: Please select a file type.\' should not be displayed', () => {
117
117
  cy.log('Deselecting all file types to get error message.');
118
118
  uploadResponsePage.steps.uncheckDefaultSelectedFileTypes();
119
- utilities.verifyElementVisibilityState(uploadResponsePage.errorMessage(), 'notExist');
119
+ utilities.verifyInnerText(uploadResponsePage.errorMessage(), 'Error: Please select a file type.');
120
+ utilities.verifyElementVisibilityState(uploadResponsePage.errorMessage(), 'visible');
120
121
  });
121
122
 
122
123
  uploadResponsePage.tests.verifyErrorMessageCSSAndA11y();