itemengine-cypress-automation 1.0.155-migrationScripts-86e4c95.0 → 1.0.156-01AprilFixes-fc21452.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +1 -1
  2. package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +5 -5
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +2 -2
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -4
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +4 -4
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +1 -1
  8. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +6 -6
  9. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -3
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +34 -29
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -0
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +4 -1
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -2
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -0
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +20 -8
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -2
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +3 -3
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +5 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +5 -2
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +2 -2
  35. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
  36. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +4 -3
  37. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
  38. package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +0 -8
  39. package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +1 -1
  40. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +39 -35
  41. package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +1 -1
  42. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +8 -6
  43. package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +475 -0
  44. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +669 -0
  45. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +1 -1
  46. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +0 -11
  47. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +204 -0
  48. package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +229 -0
  49. package/cypress/e2e/ILC/GridFill/gridLayoutPreviewTabFunctionality.js +219 -0
  50. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -0
  51. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +2 -2
  52. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -2
  53. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  54. package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
  55. package/cypress/e2e/ILC/Matching/headerSection.js +82 -0
  56. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +93 -0
  57. package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
  58. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +3 -0
  59. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  60. package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +8 -10
  61. package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +3 -3
  62. package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +16 -25
  63. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
  64. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +403 -0
  65. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +363 -0
  66. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +393 -0
  67. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +377 -0
  68. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
  69. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +341 -0
  70. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +373 -0
  71. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +0 -1
  72. package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +27 -8
  73. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +15 -34
  74. package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -15
  75. package/cypress/e2e/ILC/ShortTextResponseNew/specifyCorrectAnswerSection.js +4 -4
  76. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +4 -2
  77. package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
  78. package/cypress/e2e/ILC/SingleSelection/specifyCorrectAnswerSection.js +3 -3
  79. package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +1 -1
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +183 -0
  81. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +185 -0
  82. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +263 -0
  83. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
  84. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +233 -0
  85. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +205 -0
  86. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +233 -0
  87. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +214 -0
  88. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
  89. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
  90. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +213 -0
  91. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +21 -17
  92. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
  93. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +25 -25
  94. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +20 -17
  95. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  96. package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +2 -3
  97. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +3 -3
  98. package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +2 -2
  99. package/cypress/fixtures/fillColorDefaultProperties.js +35 -0
  100. package/cypress/fixtures/theme/ilc.json +2 -1
  101. package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
  102. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  103. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  104. package/cypress/pages/components/backgroundImageUploadComponent.js +4 -1
  105. package/cypress/pages/components/colorPopupComponent.js +6 -3
  106. package/cypress/pages/components/commonComponents.js +1 -1
  107. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -3
  108. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +47 -12
  109. package/cypress/pages/components/gridQuestionCommonComponent.js +0 -81
  110. package/cypress/pages/components/imageCanvasComponent.js +10 -8
  111. package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
  112. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  113. package/cypress/pages/components/questionInstructionsComponent.js +1 -1
  114. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  115. package/cypress/pages/essayResponsePage.js +4 -4
  116. package/cypress/pages/fillInTheGapsDragAndDropPage.js +34 -23
  117. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
  118. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +26 -4
  119. package/cypress/pages/fillInTheGapsOverImageTextPage.js +0 -29
  120. package/cypress/pages/graphingPage.js +26 -16
  121. package/cypress/pages/gridFillPage.js +1610 -90
  122. package/cypress/pages/matchingPage.js +164 -20
  123. package/cypress/pages/multipleSelectionGridPage.js +82 -2
  124. package/cypress/pages/multipleSelectionPage.js +7 -2
  125. package/cypress/pages/rulerPage.js +3 -8
  126. package/cypress/pages/shortTextResponsePage.js +13 -0
  127. package/cypress/pages/simpleCalculatorPage.js +8 -0
  128. package/cypress/pages/singleSelectionGridPage.js +58 -2
  129. package/cypress/pages/textEntryMathPage.js +58 -11
  130. package/cypress/pages/uploadResponsePage.js +4 -2
  131. package/package.json +1 -1
  132. package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
  133. package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -2,7 +2,7 @@ import { textEntryMathPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
- const penaltyScoringTypeArray = ['No penalty points', 'Penalty points for the entire question', 'Penalty points for each incorrect option'];
5
+ const penaltyScoringTypeArray = ['No penalty points', 'Penalty points for the entire question', 'Penalty points for each incorrect text container'];
6
6
 
7
7
  describe('Create item page - Text entry math: Minimum scoring, Penalty scoring, Rounding - Edit tab', () => {
8
8
  before(() => {
@@ -37,7 +37,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
37
37
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
38
38
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
39
39
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, 'a+b');
40
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'a-b');
40
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'ab');
41
41
  textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
42
42
  });
43
43
 
@@ -47,38 +47,38 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
47
47
 
48
48
  textEntryMathPage.tests.verifyPenaltyPointsErrorState();
49
49
 
50
- 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', () => {
50
+ it('When the user selects \'Penalty points for each incorrect text container\' from the penalty scoring dropdown, \'Automatically set penalty for each incorrect text container to total points / no. of incorrect text container\' 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 text container\' should be displayed. By default, \'Specify total penalty points\' radio button should be checked', () => {
51
51
  textEntryMathPage.steps.expandPenaltyScoringDropdown();
52
- textEntryMathPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect option');
53
- utilities.verifyInnerText(textEntryMathPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect option to total points / no. of incorrect options');
52
+ textEntryMathPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect text container');
53
+ utilities.verifyInnerText(textEntryMathPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect text container to total points / no. of incorrect text container');
54
54
  utilities.verifyInnerText(textEntryMathPage.specifyTotalPenaltyPointsRadioButtonLabel(), 'Specify total penalty points');
55
- utilities.verifyInnerText(textEntryMathPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect option');
55
+ utilities.verifyInnerText(textEntryMathPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect text container');
56
56
  textEntryMathPage.steps.verifyAutomaticallySetPenaltyPointsCheckboxUncheckedState();
57
57
  textEntryMathPage.steps.verifySpecifyTotalPenaltyPointsRadioButtonCheckedState();
58
58
  textEntryMathPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonUncheckedState();
59
59
  });
60
60
 
61
- it('When \'Specify total penalty points\' is selected, a penalty points detail section with \'Total penalty points\' label and empty input field, \'Penalty points for each incorrect option: -\' label should be displayed', () => {
61
+ it('When \'Specify total penalty points\' is selected, a penalty points detail section with \'Total penalty points\' label and empty input field, \'Penalty points for each incorrect text container: -\' label should be displayed', () => {
62
62
  utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Total penalty points');
63
63
  textEntryMathPage.steps.verifyTotalPenaltyPointsValue('');
64
- utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: -');
64
+ utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect text container: -');
65
65
  });
66
66
 
67
67
  it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
68
68
  textEntryMathPage.steps.allotTotalPenaltyPoints(5);
69
- textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectOption(2.5);
69
+ textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(2.5);
70
70
  });
71
71
 
72
72
  it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
73
73
  textEntryMathPage.steps.addResponseToken();
74
74
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
75
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a*b');
76
- textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
75
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a×b');
76
+ textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(1.67);
77
77
  });
78
78
 
79
79
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
80
- textEntryMathPage.steps.deleteAResponseToken(0);
81
- textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectOption(2.5);
80
+ textEntryMathPage.steps.deleteAResponseArea(0);
81
+ textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(2.5);
82
82
  });
83
83
 
84
84
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -127,16 +127,16 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
127
127
  cy.checkAccessibility(textEntryMathPage.automaticallySetPenaltyPointsCheckboxLabel().parents('.penalty-score-for-each-incorrect-wrapper'));
128
128
  });
129
129
 
130
- it('When the user selects \'Specify points for each incorrect answer\', a penalty points detail section with \'Penalty points for each incorrect option:\' label and empty input field, \'Total penalty points: -\' label should be displayed', () => {
130
+ it('When the user selects \'Specify points for each incorrect answer\', a penalty points detail section with \'Penalty points for each incorrect text container:\' label and empty input field, \'Total penalty points: -\' label should be displayed', () => {
131
131
  cy.log('Pre-step: Clearing the total penalty points input field')
132
132
  textEntryMathPage.steps.clearTotalPenaltyPointsInputField();
133
- textEntryMathPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify points for each incorrect option');
134
- utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect option');
133
+ textEntryMathPage.steps.selectPenaltyPointsForEachIncorrectOptionType('specify points for each incorrect option');
134
+ utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect text container');
135
135
  textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectOptionValue('');
136
136
  utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: -');
137
137
  });
138
138
 
139
- it('When the user allots penalty points for each incorrect option, then \'Total penalty points\' should get updated as per the count of incorrect options available', () => {
139
+ it('When the user allots Penalty points for each incorrect text container, then \'Total penalty points\' should get updated as per the count of incorrect options available', () => {
140
140
  textEntryMathPage.steps.allotPenaltyPointsForEachIncorrectOption(1);
141
141
  textEntryMathPage.steps.verifyTotalPenaltyPoints(2);
142
142
  });
@@ -144,16 +144,16 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
144
144
  it('When the user adds a new option, then \'Total penalty points\' should get updated accordingly', () => {
145
145
  textEntryMathPage.steps.addResponseToken();
146
146
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
147
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a*b');
147
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a×b');
148
148
  textEntryMathPage.steps.verifyTotalPenaltyPoints(3);
149
149
  });
150
150
 
151
151
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
152
- textEntryMathPage.steps.deleteAResponseToken(0);
152
+ textEntryMathPage.steps.deleteAResponseArea(0);
153
153
  textEntryMathPage.steps.verifyTotalPenaltyPoints(2);
154
154
  });
155
155
 
156
- it('CSS of the penalty points section - Penalty points for each incorrect option', { tags: 'css' }, () => {
156
+ it('CSS of the penalty points section - Penalty points for each incorrect text container', { tags: 'css' }, () => {
157
157
  utilities.verifyCSS(textEntryMathPage.penaltyPointsDetailsSectionInputFieldLabel(), {
158
158
  'color': css.color.labelText,
159
159
  'font-size': css.fontSize.default,
@@ -171,21 +171,21 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
171
171
  });
172
172
  });
173
173
 
174
- it('Accessibility of the penalty points section - Penalty points for each incorrect option', { tags: 'a11y' }, () => {
174
+ it('Accessibility of the penalty points section - Penalty points for each incorrect text container', { tags: 'a11y' }, () => {
175
175
  cy.checkAccessibility(textEntryMathPage.automaticallySetPenaltyPointsCheckboxLabel().parents('.penalty-score-for-each-incorrect-wrapper'));
176
176
  });
177
177
 
178
- it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each incorrect option\'', () => {
178
+ it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each text container\'', () => {
179
179
  textEntryMathPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify total penalty points');
180
180
  textEntryMathPage.steps.verifyTotalPenaltyPointsValue(2);
181
- utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1');
181
+ utilities.verifyInnerText(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect text container: 1');
182
182
  });
183
183
 
184
- it('When the user checks the \'Automatically set penalty for each incorrect option to total points / no. of incorrect options\' checkbox, both radio buttons should get disabled, \'Specify points for each incorrect option\' should get checked, in the penalty points details section, \'Penalty points for each incorrect option: #\' and \'Total penalty points: #\' should be displayed as per the alloted points and available incorrect options', () => {
184
+ it('When the user checks the \'Automatically set penalty for each incorrect text container to total points / no. of incorrect text container\' checkbox, both radio buttons should get disabled, \'Specify points for each text container\' should get checked, in the penalty points details section, \'Penalty points for each incorrect text container: #\' and \'Total penalty points: #\' should be displayed as per the alloted points and available incorrect options', () => {
185
185
  textEntryMathPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
186
186
  textEntryMathPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
187
187
  textEntryMathPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
188
- utilities.verifyInnerText(utilities.getNthElement(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 5');
188
+ utilities.verifyInnerText(utilities.getNthElement(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect text container: 5');
189
189
  utilities.verifyInnerText(utilities.getNthElement(textEntryMathPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
190
190
  });
191
191
  });
@@ -2,7 +2,7 @@ import { textEntryMathPage } from "../../../pages";
2
2
  import { customSettingsIds, evaluationMethods, syntaxDropdown, thousandsSeparatorForCommaDecimalSeparator, thousandsSeparatorForDotDecimalSeparator, typeOfExpression } from "../../../fixtures/evaluationMethodsAndCustomSettings";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  import abortEarlySetup from "../../../support/helpers/abortEarly";
5
- import { commonComponents } from "../../../pages/components";
5
+ import { commonComponents, equationEditorFlyout } from "../../../pages/components";
6
6
  const css = Cypress.env('css');
7
7
 
8
8
  describe('Create Item page - Text entry math: Response evaluation methods and custom settings', () => {
@@ -15,7 +15,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
15
15
  before(() => {
16
16
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
17
17
  cy.barsPreLoaderWait();
18
- textEntryMathPage.steps.deleteAResponseToken(1);
18
+ textEntryMathPage.steps.addResponseToken();
19
19
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
20
20
  });
21
21
 
@@ -58,7 +58,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
58
58
  before(() => {
59
59
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
60
60
  cy.barsPreLoaderWait();
61
- textEntryMathPage.steps.deleteAResponseToken(1);
61
+ textEntryMathPage.steps.addResponseToken();
62
62
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
63
63
  });
64
64
 
@@ -148,14 +148,14 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
148
148
  before(() => {
149
149
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
150
150
  cy.barsPreLoaderWait();
151
- textEntryMathPage.steps.deleteAResponseToken(1);
151
+ textEntryMathPage.steps.addResponseToken();
152
152
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
153
153
  });
154
154
 
155
155
  it('In response accordion \'Answers\' label and one empty answer input field should be displayed', () => {
156
156
  utilities.verifyInnerText(textEntryMathPage.answersLabel(), 'Answers');
157
157
  utilities.verifyElementVisibilityState(textEntryMathPage.answersLabel(), 'visible');
158
- utilities.verifyInnerText(textEntryMathPage.answersInputField(), '\n');
158
+ utilities.verifyInnerText(textEntryMathPage.answersInputField(), '');
159
159
  utilities.verifyElementVisibilityState(textEntryMathPage.answersInputField(), 'visible');
160
160
  utilities.verifyElementCount(textEntryMathPage.answersInputField(), 1);
161
161
  });
@@ -166,24 +166,24 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
166
166
 
167
167
  it('\'Add alternate\' button should be displayed', () => {
168
168
  utilities.verifyElementVisibilityState(textEntryMathPage.responseAccordionAddAlternateButton(), 'visible');
169
- utilities.verifyElementVisibilityState(textEntryMathPage.responseAccordionAddAlternateButton(), 'Add alternate');
169
+ utilities.verifyInnerText(textEntryMathPage.responseAccordionAddAlternateButton(), 'Add alternate');
170
170
  });
171
171
 
172
172
  it('When single answer input field is present in blank state and user clicks on \'Add alternate\' button, then error message \'Error: Answer is required.\' should be displayed and new answer field should not be added', () => {
173
173
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
174
174
  utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
175
175
  utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
176
- utilities.verifyElementCount(textEntryMathPage.answersInputField(), 1);
176
+ utilities.verifyElementCount(textEntryMathPage.answersInputField(), 2);
177
177
  });
178
178
 
179
179
  it('When user gives an input to \'Answer\' input field,then error message should disappear', () => {
180
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(a-b)');
180
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(ab)');
181
181
  commonComponents.steps.verifyErrorMessageIsNotDisplayed();
182
182
  });
183
183
 
184
184
  it('When user clicks on \'Add alternate\' button, then one more answer input field should be displayed', () => {
185
185
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
186
- utilities.verifyElementCount(textEntryMathPage.answersInputField(), 2);
186
+ utilities.verifyElementCount(textEntryMathPage.answersInputField(), 3);
187
187
  });
188
188
 
189
189
  it('When more than one answer input fields are present, then answer field numeration and input field delete buttons should be displayed for both input fields', () => {
@@ -192,12 +192,12 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
192
192
  });
193
193
 
194
194
  it('When no input is provided in answer input field, then placeholder text \'Enter text #\' should be displayed in the answer input field', () => {
195
- textEntryMathPage.steps.verifyAnswerInputFieldPlaceholder(0);
195
+ textEntryMathPage.steps.verifyAnswerInputFieldPlaceholder(1);
196
196
  });
197
197
 
198
198
  it('When input is provided in answer input field, then placeholder text should not be displayed in the answer input field', () => {
199
- textEntryMathPage.steps.addInputToAnswerInputField(0, '(a+b)*2');
200
- textEntryMathPage.steps.verifyAnswerInputFieldPlaceholderNotExists(0);
199
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, '(a+b)×2');
200
+ textEntryMathPage.steps.verifyAnswerInputFieldPlaceholderNotExists(1);
201
201
  });
202
202
 
203
203
  it('CSS of answer input field', { tags: 'css' }, () => {
@@ -224,7 +224,9 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
224
224
  //Accessibility covered in previous describes
225
225
 
226
226
  it('When provided input is cleared from answer input field, then placeholder text should be displayed again in the answer input field', () => {
227
- textEntryMathPage.steps.clearAnswerInputField(0);
227
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
228
+ equationEditorFlyout.steps.clearAll();
229
+ equationEditorFlyout.steps.clickOnOkButton();
228
230
  textEntryMathPage.steps.verifyAnswerInputFieldPlaceholder(0);
229
231
  });
230
232
 
@@ -232,15 +234,16 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
232
234
  cy.log('Pre-step: Add one more answer input field');
233
235
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
234
236
  textEntryMathPage.steps.clickOnAnswerInputDeleteButton(0);
235
- utilities.verifyElementCount(textEntryMathPage.answersInputField(), 2);
237
+ utilities.verifyElementCount(textEntryMathPage.answersInputField(), 3);
236
238
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(0);
237
239
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(1);
240
+ textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(2);
238
241
  });
239
242
 
240
243
  it('When number of answer input fields is reduced to 1, then input field numeration and its delete button should not be displayed', () => {
241
244
  cy.log('Pre-step: Reduce number of answer input fields to 1');
242
245
  textEntryMathPage.steps.clickOnAnswerInputDeleteButton(0);
243
- utilities.verifyElementCount(textEntryMathPage.answersInputField(), 1);
246
+ utilities.verifyElementCount(textEntryMathPage.answersInputField(), 2);
244
247
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonNotExists();
245
248
  });
246
249
  });
@@ -250,7 +253,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
250
253
  before(() => {
251
254
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
252
255
  cy.barsPreLoaderWait();
253
- textEntryMathPage.steps.deleteAResponseToken(1);
256
+ textEntryMathPage.steps.addResponseToken();
254
257
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
255
258
  });
256
259
 
@@ -554,7 +557,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
554
557
  before(() => {
555
558
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
556
559
  cy.barsPreLoaderWait();
557
- textEntryMathPage.steps.deleteAResponseToken(1);
560
+ textEntryMathPage.steps.addResponseToken();
558
561
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
559
562
  textEntryMathPage.steps.clickOnCustomSettingsAccordion();
560
563
  });
@@ -126,7 +126,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
126
126
  });
127
127
 
128
128
  it('When user clicks on clear all in canvas, then response accordions in specified correct answer should disappear', () => {
129
- textEntryMathWithImagePage.steps.clearAll();
129
+ textEntryMathWithImagePage.steps.clearAllCanvas();
130
130
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseAccordion(), 'notExist');
131
131
  });
132
132
  });
@@ -349,7 +349,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
349
349
 
350
350
  it('When user clicks on \'Clear all\' button, then all text containers should be deleted in preview tab', () => {
351
351
  textEntryMathWithImagePage.steps.switchToEditTab();
352
- textEntryMathWithImagePage.steps.clearAll();
352
+ textEntryMathWithImagePage.steps.clearAllCanvas();
353
353
  textEntryMathWithImagePage.steps.switchToPreviewTab();
354
354
  textEntryMathWithImagePage.steps.verifyTextBoxNotExistInPreviewTab();
355
355
  textEntryMathWithImagePage.steps.verifyTextContainerNotExistInPreviewTab();
@@ -60,11 +60,10 @@ describe('Create question page - Upload Response: Scoring', () => {
60
60
  uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
61
61
  uploadResponsePage.steps.switchToGradingView();
62
62
  utilities.verifyElementVisibilityState(uploadResponsePage.uploadFileContentWrapper(), 'visible');
63
- uploadResponsePage.steps.uploadedFileContentsPreviewTab(0);
64
- uploadResponsePage.steps.verifyUploadedFileName(0, 'highlightImage.jpg');
63
+ uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
65
64
  uploadResponsePage.steps.switchToStudentView();
66
65
  utilities.verifyElementVisibilityState(uploadResponsePage.uploadFileContentWrapper(), 'visible');
67
- uploadResponsePage.steps.uploadedFileContentsPreviewTab(0);
66
+ uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
68
67
  uploadResponsePage.steps.verifyUploadedFileName(0, 'highlightImage.jpg');
69
68
  });
70
69
  });
@@ -14,7 +14,7 @@ describe('Create question page - Upload Response: Additional Settings', () => {
14
14
  cy.barsPreLoaderWait();
15
15
  });
16
16
 
17
- uploadResponsePage.tests.verifyAdditonalSettingsAccordionProperties();
17
+ uploadResponsePage.tests.verifyAdditionalSettingsAccordionProperties();
18
18
  });
19
19
 
20
20
  describe('Additional settings: Font size contents', () => {
@@ -22,7 +22,7 @@ describe('Create question page - Upload Response: Additional Settings', () => {
22
22
  before(() => {
23
23
  uploadResponsePage.steps.navigateToCreateQuestion('upload response');
24
24
  cy.barsPreLoaderWait();
25
- uploadResponsePage.steps.expandAdditonalSettings();
25
+ uploadResponsePage.steps.expandAdditionalSettings();
26
26
  });
27
27
 
28
28
  uploadResponsePage.tests.verifyFontSizeSectionContents();
@@ -33,7 +33,7 @@ describe('Create question page - Upload Response: Additional Settings', () => {
33
33
  before(() => {
34
34
  uploadResponsePage.steps.navigateToCreateQuestion('upload response');
35
35
  cy.barsPreLoaderWait();
36
- uploadResponsePage.steps.expandAdditonalSettings();
36
+ uploadResponsePage.steps.expandAdditionalSettings();
37
37
  });
38
38
 
39
39
  uploadResponsePage.tests.verifyDetailsSection();
@@ -17,7 +17,7 @@ describe('Create question page - Upload Response: Preview', () => {
17
17
  });
18
18
 
19
19
  it('When user uploads any file without any virus, the system should scan the file for viruses and \'Scanning for viruses…\' message should be displayed along with a pre-loader', () => {
20
- uploadResponsePage.steps.uploadFile('uploads/sample.jpg');
20
+ uploadResponsePage.steps.uploadFile('uploads/sample.gif');
21
21
  uploadResponsePage.steps.verifyScanningForVirusMessageAndPreLoader();
22
22
  });
23
23
 
@@ -30,7 +30,7 @@ describe('Create question page - Upload Response: Preview', () => {
30
30
  });
31
31
 
32
32
  it('When the user uploads a file containing virus \'Error: A virus was detected, please upload another file\' error message should be displayed inline with file name, the uploaded file count should increase after a virus file gets uploaded', () => {
33
- uploadResponsePage.steps.fileUploadAndVerify(['sampleVirus.zip']);
33
+ uploadResponsePage.steps.uploadFile('uploads/sampleVirus.zip');
34
34
  uploadResponsePage.steps.verifyVirusScanningErrorMessage();
35
35
  cy.log('checking if uploaded file count increases after a virus file gets uploaded')
36
36
  uploadResponsePage.steps.verifyUploadedFileLimitCount(2, 15);
@@ -0,0 +1,35 @@
1
+ export const gridFillColorProperties = {
2
+ default: {
3
+ displayName: 'Default',
4
+ colorProperties: {
5
+ fillColorHexValue: '#BAC9FF',
6
+ fillColorRgbaValue: 'rgba(186, 201, 255, 0.2)',
7
+ fillColorOpacity: 20,
8
+ borderColorHexValue: '#6B8BFF',
9
+ borderColorRgbValue: 'rgb(107, 139, 255)',
10
+ borderColorOpacity: 100
11
+ }
12
+ },
13
+ hover: {
14
+ displayName: 'Hover',
15
+ colorProperties: {
16
+ fillColorHexValue: '#BAC9FF',
17
+ fillColorRgbaValue: 'rgba(186, 201, 255, 0.6)',
18
+ fillColorOpacity: 60,
19
+ borderColorHexValue: '#5200FF',
20
+ borderColorRgbValue: 'rgb(82, 0, 255)',
21
+ borderColorOpacity: 100
22
+ }
23
+ },
24
+ filled: {
25
+ displayName: 'Filled',
26
+ colorProperties: {
27
+ fillColorHexValue: '#6B8BFF',
28
+ fillColorRgbaValue: 'rgba(107, 139, 255, 0.7)',
29
+ fillColorOpacity: 70,
30
+ borderColorHexValue: '#290080',
31
+ borderColorRgbValue: 'rgb(41, 0, 128)',
32
+ borderColorOpacity: 100
33
+ }
34
+ }
35
+ }
@@ -131,7 +131,8 @@
131
131
  "gridCellSelectedStateBorder": "rgb(41, 0, 128)",
132
132
  "gridCellHiddenStateBorder": "rgb(117, 117, 154)",
133
133
  "gridCellIcon": "rgb(41, 0, 128)",
134
- "gridBorder": "rgb(0, 0, 124)"
134
+ "gridBorder": "rgb(0, 0, 124)",
135
+ "uploadedFileName": "rgb(0, 0, 124)"
135
136
  },
136
137
  "fontSize": {
137
138
  "extraSmall": "10px",
@@ -174,7 +174,7 @@ const tests = {
174
174
  case 'drag and drop into categories':
175
175
  helpText = 'You can set the correct answer by dragging the correct answer(s) in the dropzone(s).';
176
176
  break;
177
- case 'list matching':
177
+ case 'matching':
178
178
  helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).'
179
179
  break;
180
180
  case 'list ordering':
@@ -308,10 +308,10 @@ const tests = {
308
308
  });
309
309
 
310
310
  it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
311
- utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), {
311
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
312
312
  'color': css.color.activeButtons,
313
313
  'font-size': css.fontSize.default,
314
- 'font-weight': css.fontWeight.medium
314
+ 'font-weight': css.fontWeight.regular
315
315
  });
316
316
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
317
317
  .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
@@ -74,7 +74,7 @@ const steps = {
74
74
  const tests = {
75
75
  verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS: () => {
76
76
  it('\'Allow student to check answer\' label and checkbox should be displayed and it should be unchecked by default', () => {
77
- utilities.verifyInnerText(autoScoredStudentViewSettings.allowStudentToCheckAnswerLabel(), 'Allow student to check answer');
77
+ utilities.verifyInnerText(autoScoredStudentViewSettings.allowStudentToCheckAnswerLabel(), 'Allow students to check answer');
78
78
  autoScoredStudentViewSettings.steps.verifyAllowStudentsToCheckAnswerCheckboxUnchecked();
79
79
  });
80
80
 
@@ -114,7 +114,10 @@ const tests = {
114
114
  backgroundImageUploadComponent.steps.uploadFile('highlightImage.jpg');
115
115
  utilities.verifyElementVisibilityState(backgroundImageUploadComponent.uploadImageProgressBar(), 'visible');
116
116
  backgroundImageUploadComponent.steps.verifyFileNameLabel('highlightImage.jpg');
117
- if (questionType != 'graphing') {
117
+ if (questionType !== 'graphing') {
118
+ imageCanvasComponent.steps.verifyImageIsUploaded();
119
+ }
120
+ if (questionType !== 'grid fill') {
118
121
  imageCanvasComponent.steps.verifyImageIsUploaded();
119
122
  }
120
123
  });
@@ -13,8 +13,9 @@ const selectors = {
13
13
  selectedColorBlock: () => cy.get('.color-wrapper'),
14
14
  hexLabel: () => cy.get('.hex-settings-wrapper .inline-text-property-label'),
15
15
  hexInputField: () => cy.get('.hex-settings-wrapper input'),
16
- cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
17
- okButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
16
+ setToNoColorButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
17
+ cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
18
+ okButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(2),
18
19
  dialogBoxTitle: () => cy.get('#alert-dialog-title'),
19
20
  opacityGradientHue: () => cy.get('.react-colorful__last-control [class="react-colorful__interactive"]'),
20
21
  opacityGradientPicker: () => cy.get('.react-colorful__last-control .react-colorful__pointer-fill'),
@@ -271,7 +272,9 @@ const tests = {
271
272
  colorPopupComponent.steps.verifySelectedColorLabelAndSelectedColorBlock();
272
273
  });
273
274
 
274
- it('\'Cancel\' and \'Ok\' buttons should be displayed', () => {
275
+ it('\'Set to no color\', \'Cancel\' and \'Ok\' buttons should be displayed', () => {
276
+ utilities.verifyInnerText(colorPopupComponent.setToNoColorButton(), 'Set to no color');
277
+ utilities.verifyElementVisibilityState(colorPopupComponent.setToNoColorButton(), 'visible');
275
278
  utilities.verifyInnerText(colorPopupComponent.cancelButton(), 'Cancel');
276
279
  utilities.verifyElementVisibilityState(colorPopupComponent.cancelButton(), 'visible');
277
280
  utilities.verifyInnerText(colorPopupComponent.okButton(), 'OK');
@@ -8,7 +8,7 @@ const selectors = {
8
8
  snackbar: () => cy.get('.MuiSnackbarContent-message'),
9
9
  snackbarCloseButton: () => cy.get('.MuiSnackbarContent-action'),
10
10
  //Remove :visible https://redmine.zeuslearning.com/issues/564243 gets resolved
11
- errorMessage: () => cy.get('.error-text-message:visible'),
11
+ errorMessage: () => cy.get('.error-text-message'),
12
12
  nextGenCreateItemWrapper: () => cy.get('#nextgen-assess-create-item'),
13
13
  dropdownList: () => cy.get('.dropdown-list'),
14
14
  dragHandleButton: () => cy.get('.dragicon-button'),
@@ -82,7 +82,8 @@ const steps = {
82
82
  utilities.getNthElement(fillInTheGapsDropdownCommonComponent.dropdownOptionsInputField(), optionIndex)
83
83
  .clear()
84
84
  .type(responseFieldText, { delay: 0 })
85
- .should('have.value', responseFieldText);
85
+ .should('have.value', responseFieldText)
86
+ .blur();
86
87
  },
87
88
 
88
89
  /**
@@ -332,9 +333,9 @@ const steps = {
332
333
  */
333
334
  expandAndCollapseDropdownInSpecifyCorrectAnswerSection: (dropdownIndex) => {
334
335
  utilities.getNthElement(fillInTheGapsDropdownCommonComponent.dropdownSpecifyCorrectAnswerSection(), dropdownIndex)
335
- .click({ position: "right" });
336
- cy.get('body')
337
336
  .click();
337
+ cy.get('body')
338
+ .click({ position: 'center' });
338
339
  },
339
340
 
340
341
  /**