itemengine-cypress-automation 1.0.196-drawingResponseMigration-0f99062.0 → 1.0.196

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +8 -8
  2. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +54 -33
  3. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
  5. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  6. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js +1 -1
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +2 -2
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js +3 -3
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js +2 -2
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +6 -6
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +3 -3
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +5 -5
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +3 -3
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +22 -22
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabScoringSection.js +10 -10
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +8 -7
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +3 -2
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +4 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +1 -1
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +0 -1
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +2 -2
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +3 -3
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +5 -5
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +6 -6
  38. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +8 -8
  39. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -0
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -2
  41. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
  42. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +4 -4
  43. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -5
  44. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +3 -0
  45. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +2 -1
  46. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -6
  47. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +1 -1
  48. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -3
  49. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +7 -7
  50. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -3
  51. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -2
  52. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  53. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -2
  54. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +2 -0
  55. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +6 -12
  56. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +2 -2
  57. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -1
  58. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +3 -2
  59. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  60. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +2 -2
  61. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +9 -9
  62. package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +3 -3
  63. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +12 -12
  64. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
  65. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
  66. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
  67. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  68. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +1 -1
  69. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -1
  70. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
  71. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -8
  72. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -2
  73. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
  74. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -2
  75. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
  76. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +2 -5
  77. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +5 -0
  78. package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
  79. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +10 -28
  80. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +10 -10
  81. package/cypress/pages/chartsDotPlotPage.js +7 -1
  82. package/cypress/pages/components/additionalSettingsPanel.js +1 -0
  83. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  84. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
  85. package/cypress/pages/components/draggableOptionContainer.js +1 -1
  86. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -0
  87. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  88. package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -1
  89. package/cypress/pages/listOrderingPage.js +21 -0
  90. package/cypress/pages/multipleSelectionPage.js +14 -0
  91. package/cypress/pages/numberLineLabelPage.js +28 -27
  92. package/cypress/pages/textEntryMathPage.js +0 -7
  93. package/package.json +1 -1
@@ -96,6 +96,7 @@ describe('Create item page - Charts : Dot - Check answer functionality', () => {
96
96
  });
97
97
  };
98
98
 
99
+ //Note: Remove comment after https://redmine.zeuslearning.com/issues/570904 is resolved
99
100
  it('When the user clicks \'Check answer\' button without attempting the question, then \'Your answer is incorrect\' status message should be displayed and by default correct dot column should have correct icons, incorrect dot column should have incorrect icons', () => {
100
101
  checkAnswer(view);
101
102
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 0.25 });
@@ -148,11 +149,11 @@ describe('Create item page - Charts : Dot - Check answer functionality', () => {
148
149
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 0.25 });
149
150
  checkAnswer(view);
150
151
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 0.25 });
151
- chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 0.25, defaultDots:0 });
152
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 0.25, defaultDots: 0 });
152
153
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 0.25 });
153
154
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 0.25 });
154
155
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 0.25, defaultDots: 0 });
155
- chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25, defaultDots: 0 });
156
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25, defaultDots: 0 });
156
157
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
157
158
  });
158
159
 
@@ -167,7 +168,7 @@ describe('Create item page - Charts : Dot - Check answer functionality', () => {
167
168
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25 });
168
169
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
169
170
  });
170
-
171
+
171
172
  it('When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly, then on clicking \'Check answer\' button, \'Your answer is incorrect\' should be displayed and incorrectly attempted dot column should be displayed incorrect and correctly attempted dot column should be displayed correct', () => {
172
173
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 0.25 });
173
174
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 0.25, defaultDots: 0 });
@@ -26,17 +26,11 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
26
26
  chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
27
27
  chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
28
28
  chartsDotPlotPage.steps.setXAxisLabel('Days');
29
- chartsDotPlotPage.steps.selectDotColumnInSelectChartTypeSection({ point: 1, min: 1, interval: 0.25 });
30
- chartsDotPlotPage.steps.addDotInSelectChartTypeSection(2);
31
- chartsDotPlotPage.steps.unselectDotColumnInSelectChartTypeSection({ point: 1, min: 1, interval: 0.25 });
29
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 1, min: 1, interval: 0.25, defaultDots: 0 });
32
30
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 0.25 });
33
- chartsDotPlotPage.steps.selectDotColumnInSelectChartTypeSection({ point: 2, min: 1, interval: 0.25 });
34
- chartsDotPlotPage.steps.addDotInSelectChartTypeSection(1);
35
- chartsDotPlotPage.steps.unselectDotColumnInSelectChartTypeSection({ point: 2, min: 1, interval: 0.25 });
31
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval: 0.25, defaultDots: 0 });
36
32
  chartsDotPlotPage.steps.allotPoints(10);
37
- chartsDotPlotPage.steps.selectDotColumnInSpecifyCorrectAnswer({ point: 3, min: 1, interval: 0.25 });
38
- chartsDotPlotPage.steps.addDotInSpecifyCorrectAnswer(3);
39
- chartsDotPlotPage.steps.unselectDotColumnInSpecifyCorrectAnswer({ point: 3, min: 1, interval: 0.25 });
33
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots: 0 });
40
34
  chartsDotPlotPage.steps.clickOnSaveQuestionButton();
41
35
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
42
36
  //Global variable issue, not working inside before
@@ -45,16 +39,10 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
45
39
  .then(($refID) => {
46
40
  itemReferenceID = $refID;
47
41
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
42
+ chartsDotPlotPage.steps.verifyDotColumnIsLockedInPreviewTab({ point: 1, min: 1, interval: 0.25 });
48
43
  chartsDotPlotPage.steps.verifyDotColumnIsUnlockedInPreviewTab({ point: 2, min: 1, interval: 0.25 });
49
- chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 2, min: 1, interval: 0.25 });
50
- chartsDotPlotPage.steps.addDotInPreviewTab(1);
51
- chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 2, min: 1, interval: 0.25 });
52
- chartsDotPlotPage.steps.verifyDotCountPreviewTab(2, { point: 2, min: 1, interval: 0.25 });
53
- chartsDotPlotPage.steps.verifyDotColumnIsUnlockedInPreviewTab({ point: 2, min: 1, interval: 0.25 });
54
- chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 3, min: 1, interval: 0.25 });
55
- chartsDotPlotPage.steps.addDotInPreviewTab(3);
56
- chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 3, min: 1, interval: 0.25 });
57
- chartsDotPlotPage.steps.verifyDotCountPreviewTab(3, { point: 3, min: 1, interval: 0.25 });
44
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 2, min: 1, interval: 0.25 });
45
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 0.25, defaultDots: 0 });
58
46
  studentViewPage.steps.submitResponse();
59
47
  studentViewPage.steps.clickOnGoToGradingViewButton();
60
48
  });
@@ -92,7 +80,7 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
92
80
  it('Dot plot chart should not be editable in grading view', () => {
93
81
  chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
94
82
  chartsDotPlotPage.steps.tooltipWrapperNotExistPreviewTab();
95
- chartsDotPlotPage.steps.addDotUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
83
+ chartsDotPlotPage.steps.increaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
96
84
  chartsDotPlotPage.steps.verifyDotNotExistPreviewTab({ point: 4, min: 1, interval: 0.25 });
97
85
  });
98
86
 
@@ -150,17 +138,11 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
150
138
  chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
151
139
  chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
152
140
  chartsDotPlotPage.steps.setXAxisLabel('Days');
153
- chartsDotPlotPage.steps.selectDotColumnInSelectChartTypeSection({ point: 1, min: 1, interval: 0.25 });
154
- chartsDotPlotPage.steps.addDotInSelectChartTypeSection(2);
155
- chartsDotPlotPage.steps.unselectDotColumnInSelectChartTypeSection({ point: 1, min: 1, interval: 0.25 });
141
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 1, min: 1, interval: 0.25, defaultDots: 0 });
156
142
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 0.25 });
157
- chartsDotPlotPage.steps.selectDotColumnInSelectChartTypeSection({ point: 2, min: 1, interval: 0.25 });
158
- chartsDotPlotPage.steps.addDotInSelectChartTypeSection(1);
159
- chartsDotPlotPage.steps.unselectDotColumnInSelectChartTypeSection({ point: 2, min: 1, interval: 0.25 });
143
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval: 0.25, defaultDots: 0 });
160
144
  chartsDotPlotPage.steps.allotPoints(10);
161
- chartsDotPlotPage.steps.selectDotColumnInSpecifyCorrectAnswer({ point: 3, min: 1, interval: 0.25 });
162
- chartsDotPlotPage.steps.addDotInSpecifyCorrectAnswer(3);
163
- chartsDotPlotPage.steps.unselectDotColumnInSpecifyCorrectAnswer({ point: 3, min: 1, interval: 0.25 });
145
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots: 0 });
164
146
  chartsDotPlotPage.steps.clickOnSaveQuestionButton();
165
147
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
166
148
  //Global variable issue, not working inside before
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
5
 
6
- const previewContentViews = ['Question preview'];
6
+ const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
7
7
  const views = utilities.getViews(previewContentViews);
8
8
  var itemReferenceID = "";
9
9
  const controlOptions = ['Undo', 'Redo', 'Reset'];
@@ -33,7 +33,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
33
33
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 0.25 });
34
34
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval: 0.25, defaultDots: 0 });
35
35
  chartsDotPlotPage.steps.allotPoints(10);
36
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots:0 });
36
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots: 0 });
37
37
  chartsDotPlotPage.steps.switchToPreviewTab();
38
38
  break;
39
39
  case 'Item view':
@@ -111,7 +111,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
111
111
 
112
112
  it('When user adds dots to empty dot column then \'Minus dot\' button should be in enabled state', () => {
113
113
  chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
114
- chartsDotPlotPage.steps.addDotInPreviewTab(1);
114
+ chartsDotPlotPage.steps.increaseDotCountInDotColumnPreviewTab(1);
115
115
  utilities.verifyElementNotDisabled(chartsDotPlotPage.minusButtonPreviewTab());
116
116
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
117
117
  });
@@ -136,9 +136,9 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
136
136
  });
137
137
 
138
138
  it('When user attempts the locked state DotColumn using keyboard then user should be unable to make any changes', () => {
139
- chartsDotPlotPage.steps.addDotUsingKeyboardPreviewTab(1, { point: 1, min: 1, interval: 0.25 });
139
+ chartsDotPlotPage.steps.increaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 1, min: 1, interval: 0.25 });
140
140
  chartsDotPlotPage.steps.verifyDotCountPreviewTab(2, { point: 1, min: 1, interval: 0.25 });
141
- chartsDotPlotPage.steps.minusDotUsingKeyboardPreviewTab(1, { point: 1, min: 1, interval: 0.25 });
141
+ chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 1, min: 1, interval: 0.25 });
142
142
  chartsDotPlotPage.steps.verifyDotCountPreviewTab(2, { point: 1, min: 1, interval: 0.25 });
143
143
  });
144
144
 
@@ -151,9 +151,9 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
151
151
  });
152
152
 
153
153
  it('User should be able to add or remove dots in dot column using keyboard', () => {
154
- chartsDotPlotPage.steps.addDotUsingKeyboardPreviewTab(5, { point: 3, min: 1, interval: 0.25 });
154
+ chartsDotPlotPage.steps.increaseDotInDotColumnUsingKeyboardPreviewTab(5, { point: 3, min: 1, interval: 0.25 });
155
155
  chartsDotPlotPage.steps.verifyDotCountPreviewTab(5, { point: 3, min: 1, interval: 0.25 });
156
- chartsDotPlotPage.steps.minusDotUsingKeyboardPreviewTab(2, { point: 3, min: 1, interval: 0.25 });
156
+ chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(2, { point: 3, min: 1, interval: 0.25 });
157
157
  chartsDotPlotPage.steps.verifyDotCountPreviewTab(3, { point: 3, min: 1, interval: 0.25 });
158
158
  });
159
159
 
@@ -164,7 +164,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
164
164
  utilities.verifyElementDisabled(chartsDotPlotPage.addButtonPreviewTab());
165
165
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
166
166
  //using keyboard
167
- chartsDotPlotPage.steps.addDotUsingKeyboardPreviewTab(10, { point: 4, min: 1, interval: 0.25 });
167
+ chartsDotPlotPage.steps.increaseDotInDotColumnUsingKeyboardPreviewTab(10, { point: 4, min: 1, interval: 0.25 });
168
168
  chartsDotPlotPage.steps.verifyDotCountPreviewTab(10, { point: 4, min: 1, interval: 0.25 });
169
169
  utilities.verifyElementDisabled(chartsDotPlotPage.addButtonPreviewTab());
170
170
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
@@ -177,7 +177,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
177
177
  utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
178
178
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
179
179
  //using keyboard
180
- chartsDotPlotPage.steps.minusDotUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
180
+ chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
181
181
  utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
182
182
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
183
183
  });
@@ -237,7 +237,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
237
237
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 0.25 });
238
238
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval: 0.25, defaultDots: 0 });
239
239
  chartsDotPlotPage.steps.allotPoints(10);
240
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots:0 });
240
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 0.25, defaultDots: 0 });
241
241
  chartsDotPlotPage.steps.switchToPreviewTab();
242
242
  break;
243
243
  case 'Item view':
@@ -93,7 +93,7 @@ const steps = {
93
93
  element()
94
94
  .eq(index)
95
95
  .trigger('mouseover', { force: true });
96
- utilities.verifyInnerText(commonComponents.tooltipText().eq(1), text);
96
+ utilities.verifyInnerText(commonComponents.tooltipText(), text);
97
97
  element()
98
98
  .eq(index)
99
99
  .trigger('mouseout', { force: true });
@@ -788,7 +788,10 @@ const steps = {
788
788
  if (index % annotateEvery === 0) {
789
789
  expectedLabelsIndex.push(index.toString());
790
790
  }
791
+ })
792
+ .then(() => {
791
793
  for (var i = min; i < max; i++) {
794
+ console.log(expectedLabelsIndex[i])
792
795
  chartsDotPlotPage.labelsNumberLineAxisPreviewTab()
793
796
  .eq(expectedLabelsIndex[i - 1])
794
797
  .should('have.text', i)
@@ -949,7 +952,10 @@ const steps = {
949
952
  if (index % annotateEvery === 0) {
950
953
  expectedLabelsIndex.push(index.toString());
951
954
  }
955
+ })
956
+ .then(() => {
952
957
  for (var i = min; i < max; i++) {
958
+ console.log(expectedLabelsIndex[i])
953
959
  chartsDotPlotPage.labelsNumberLineAxisCorrectAnswerSection()
954
960
  .eq(expectedLabelsIndex[i - 1])
955
961
  .should('have.text', i)
@@ -33,6 +33,7 @@ const steps = {
33
33
  expandAdditionalSettings: () => {
34
34
  additionalSettingsPanel.additionalSettingsPanel()
35
35
  .click()
36
+ additionalSettingsPanel.additionalSettingsPanel()
36
37
  .should('have.attr', 'aria-expanded', 'true');
37
38
  },
38
39
 
@@ -298,6 +298,7 @@ const steps = {
298
298
  break;
299
299
  case 'specify points for each incorrect option':
300
300
  case 'specify points for each incorrect answer':
301
+ case 'specify points for each incorrect dropdown':
301
302
  autoScoredScoringSectionMultiResponseType.specifyPointsForEachIncorrectOptionRadioButton()
302
303
  .click();
303
304
  break;
@@ -300,8 +300,8 @@ const tests = {
300
300
  it('\'+ Add alternative answer\' button should be present', () => {
301
301
  utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
302
302
  utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
303
- // autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
304
- // .verifyPseudoClassBeforeProperty('content', '""');
303
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
304
+ .verifyPseudoClassBeforeProperty('content', '""');
305
305
  });
306
306
 
307
307
  it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
@@ -470,7 +470,7 @@ const tests = {
470
470
 
471
471
  it('When the user enters text in options input fields then the entered text should be displayed in the respective draggable options in a group in the options container of the specify correct answer section', () => {
472
472
  optionsWrapperComponent.steps.addInputToOptionsInputField(options);
473
- cy.wait(2000) //Added wait as this is failing due to page updating
473
+ cy.wait(200) //Added wait as this is failing due to page updating
474
474
  draggableOptionContainer.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, options);
475
475
  });
476
476
 
@@ -1406,6 +1406,7 @@ const tests = {
1406
1406
  it('When the user clicks on the \'Add Alternate\' button without entering text in the newly added alternate answer input field, then an error message should be displayed, indicating \'Error: Answer is required.\'', () => {
1407
1407
  fillInTheGapsTextCommonComponent.steps.addAlternateAnswerInResponseAccordion(0);
1408
1408
  utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
1409
+ utilities.verifyElementCount(fillInTheGapsTextCommonComponent.answerInputFieldSpecifyCorrectAnswerSection(), 2);
1409
1410
  });
1410
1411
 
1411
1412
  it('When user adds text in alternate input field and clicks on \'Add alternate\' button, then then a third alternate answer input field should be displayed and error message should disappear', () => {
@@ -443,7 +443,7 @@ const steps = {
443
443
  case 'top right':
444
444
  return { top: '-19px', left: '-31px' };
445
445
  case 'top':
446
- return { top: '-22.5px', left: '-25.5px' };
446
+ return { top: '-22.5px', left: '-23.5px' };
447
447
  case 'top left':
448
448
  return { top: '-27px', left: '-24px' };
449
449
  case 'left':
@@ -1044,7 +1044,7 @@ const tests = {
1044
1044
  imageCanvasComponent.steps.verifyImageAlternativeTextInPreviewTab('This is Alternative text for image');
1045
1045
  });
1046
1046
 
1047
- it('When user clears text in the \'Alternative text\' input field, then default alternative text should be displayed in the \'Preview tab\'', () => {
1047
+ it('When user clears text in the \'Alternative text\' input field, then default alternative text should not be displayed in the \'Preview tab\'', () => {
1048
1048
  imageCanvasComponent.steps.switchToEditTab();
1049
1049
  imageCanvasComponent.steps.clearImageAlternativeTextInputFieldText();
1050
1050
  imageCanvasComponent.steps.switchToPreviewTab();
@@ -41,8 +41,9 @@ const steps = {
41
41
  scoringSectionBaseEditTab.pointsInputField()
42
42
  .clear()
43
43
  .type(`${points}`)
44
- .should('have.value', points)
45
44
  .blur();
45
+ scoringSectionBaseEditTab.pointsInputField()
46
+ .should('have.value', points)
46
47
  },
47
48
 
48
49
  verifyDefaultPointsLabelAndInputField: () => {
@@ -132,6 +132,7 @@ const steps = {
132
132
  listOrderingPage.optionWrapperPreviewTab()
133
133
  .eq(optionIndex)
134
134
  .find('strong')
135
+ .eq(0)
135
136
  .should('have.text', 'This is a bold option');
136
137
  },
137
138
 
@@ -723,6 +724,26 @@ const steps = {
723
724
  .should('not.have.text', '')
724
725
  .and('not.have.text', previousOrderOfOptionsArray.join(''));
725
726
  },
727
+
728
+ verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSectionNotExists: () => {
729
+ listOrderingPage.dropdownWrapperCorrectAnswerSection()
730
+ .each(($element) => {
731
+ cy.wrap($element)
732
+ .within(() => {
733
+ utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'notExist');
734
+ })
735
+ })
736
+ },
737
+
738
+ verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSection: () => {
739
+ listOrderingPage.dropdownWrapperCorrectAnswerSection()
740
+ .each(($element) => {
741
+ cy.wrap($element)
742
+ .within(() => {
743
+ utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'visible');
744
+ })
745
+ })
746
+ }
726
747
  }
727
748
 
728
749
  const tests = {
@@ -183,6 +183,13 @@ const steps = {
183
183
  .within(() => {
184
184
  utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'visible');
185
185
  });
186
+ },
187
+
188
+ /**
189
+ * Verifies the presence of the correct option border in the grading view for a specified option index.
190
+ * @param {number} optionIndex - The index of the option to verify in the grading view.
191
+ */
192
+ verifyCorrectOptionBorderGradingView: () => {
186
193
  multipleSelectionPage.optionsWrapperGradingView()
187
194
  .eq(optionIndex)
188
195
  .find('label')
@@ -202,6 +209,13 @@ const steps = {
202
209
  .within(() => {
203
210
  utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'visible');
204
211
  });
212
+ },
213
+
214
+ /**
215
+ * Verifies the presence of the incorrect option border in the grading view for a specified option index.
216
+ * @param {number} optionIndex - The index of the option to verify in the grading view.
217
+ */
218
+ verifyIncorrectOptionBorderGradingView: () => {
205
219
  multipleSelectionPage.optionsWrapperGradingView()
206
220
  .eq(optionIndex)
207
221
  .find('label')
@@ -2,6 +2,7 @@ import constants from '../fixtures/constants';
2
2
  import utilities from '../support/helpers/utilities';
3
3
  import { createQuestionBasePage, questionInstructionsComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, autoScoredStudentViewSettings, numberLineCommonComponent, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType, commonComponents, studentViewSettingsLabelComponent, randomizeOptionsComponent, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, toolSettingsComponent, layoutSectionComponent } from './components';
4
4
  const css = Cypress.env('css');
5
+ const tolerance = 11.36;
5
6
 
6
7
  const selectors = {
7
8
  ...questionInstructionsComponent,
@@ -263,7 +264,7 @@ const steps = {
263
264
  const graphWidth = 642;
264
265
  let graphHeight = $graphElement[0].clientHeight;
265
266
  let containerHeight = $element[0].clientHeight;
266
- graphHeight = graphHeight - containerHeight - 32;
267
+ graphHeight = graphHeight - containerHeight - 42;
267
268
  const originX = graphWidth / 2;
268
269
  const originY = graphHeight / 2;
269
270
  const yPixel = originY - coordinate * (graphHeight / range);
@@ -296,8 +297,8 @@ const steps = {
296
297
  numberLineLabelPage.numberLineSpecifyCorrectAnswer()
297
298
  .then(($graphElement) => {
298
299
  let graphWidth = $graphElement[0].clientWidth;
299
- const originX = graphWidth / 2;
300
- const xPixel = originX + x * (graphWidth / range);
300
+ const originX = graphWidth / 2 + tolerance / 2;
301
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
301
302
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cx*="${Math.floor(xPixel)}"]`)
302
303
  .should('exist');
303
304
  });
@@ -441,7 +442,7 @@ const steps = {
441
442
  const graphWidth = 642;
442
443
  let graphHeight = $graphElement[0].clientHeight;
443
444
  let containerHeight = $element[0].clientHeight;
444
- graphHeight = graphHeight - containerHeight - 32;
445
+ graphHeight = graphHeight - containerHeight - 42;
445
446
  const originX = graphWidth / 2;
446
447
  const originY = graphHeight / 2;
447
448
  const yPixel = originY - coordinate * (graphHeight / range);
@@ -461,9 +462,9 @@ const steps = {
461
462
  coordinates.forEach(x => {
462
463
  numberLineLabelPage.numberLinePreviewTab()
463
464
  .then(($graphElement) => {
464
- const graphWidth = $graphElement[0].clientWidth;
465
- const originX = graphWidth / 2;
466
- const xPixel = originX + x * (graphWidth / range);
465
+ let graphWidth = $graphElement[0].clientWidth;
466
+ const originX = graphWidth / 2 + tolerance / 2;
467
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
467
468
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"]`)
468
469
  .should('exist');
469
470
  });
@@ -478,9 +479,9 @@ const steps = {
478
479
  verifyIncorrectResponseOnNumberLinePreviewTab: (label, range, coordinate) => {
479
480
  numberLineLabelPage.numberLinePreviewTab()
480
481
  .then(($graphElement) => {
481
- const graphWidth = $graphElement[0].clientWidth;
482
- const originX = graphWidth / 2;
483
- const xPixel = originX + coordinate * (graphWidth / range);
482
+ let graphWidth = $graphElement[0].clientWidth;
483
+ const originX = graphWidth / 2 + tolerance / 2;
484
+ const xPixel = originX + coordinate * ((graphWidth - tolerance) / range);
484
485
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"]`)
485
486
  .should('have.css', 'stroke', css.color.incorrectAnswer);
486
487
  });
@@ -504,9 +505,9 @@ const steps = {
504
505
  verifyCorrectResponseOnNumberLinePreviewTab: (label, range, coordinate) => {
505
506
  numberLineLabelPage.numberLinePreviewTab()
506
507
  .then(($graphElement) => {
507
- const graphWidth = $graphElement[0].clientWidth;
508
- const originX = graphWidth / 2;
509
- const xPixel = originX + coordinate * (graphWidth / range);
508
+ let graphWidth = $graphElement[0].clientWidth;
509
+ const originX = graphWidth / 2 + tolerance / 2;
510
+ const xPixel = originX + coordinate * ((graphWidth - tolerance) / range);
510
511
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"]`)
511
512
  .should('have.css', 'stroke', css.color.correctAnswer);
512
513
  });
@@ -601,11 +602,11 @@ const steps = {
601
602
  verifyCorrectResponseOnNumberLineCorrectAnswerSection: (label, range, coordinate) => {
602
603
  numberLineLabelPage.numberLineCorrectAnswerSection()
603
604
  .then(($graphElement) => {
604
- const graphWidth = $graphElement[0].clientWidth;
605
- const originX = graphWidth / 2;
606
- const xPixel = originX + coordinate * (graphWidth / range);
605
+ let graphWidth = $graphElement[0].clientWidth;
606
+ const originX = graphWidth / 2 + tolerance / 2;
607
+ const xPixel = originX + coordinate * ((graphWidth - tolerance) / range);
607
608
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][display="inline"]`)
608
- .should('have.css', 'stroke', css.color.correctAnswer);
609
+ .should('have.css', 'fill', css.color.correctAnswer);
609
610
  });
610
611
  numberLineLabelPage.numberLineCorrectAnswerSection()
611
612
  .parents('.ngie-jxgbox')
@@ -657,7 +658,7 @@ const steps = {
657
658
  numberLineLabelPage.labelContainerSpecifyCorrectAnswer()
658
659
  .then(($element) => {
659
660
  let containerHeight = $element[0].clientHeight;
660
- let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 32;
661
+ let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 42;
661
662
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
662
663
  .should('have.attr', 'height', graphHeight.toString());
663
664
  });
@@ -671,7 +672,7 @@ const steps = {
671
672
  numberLineLabelPage.labelContainerPreviewTab()
672
673
  .then(($element) => {
673
674
  let containerHeight = $element[0].clientHeight;
674
- let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 32;
675
+ let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 42;
675
676
  numberLineCommonComponent.numberLinePreviewTab()
676
677
  .should('have.attr', 'height', graphHeight.toString());
677
678
  });
@@ -783,7 +784,7 @@ const steps = {
783
784
  .then(($element) => {
784
785
  let graphHeight = $graphElement[0].clientHeight;
785
786
  let containerHeight = $element[0].clientHeight;
786
- graphHeight = graphHeight - containerHeight - 32;
787
+ graphHeight = graphHeight - containerHeight - 42;
787
788
  const originY = graphHeight / 2;
788
789
  const yPixel = originY - y * (graphHeight / range);
789
790
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]`)
@@ -806,7 +807,7 @@ const steps = {
806
807
  .then(($element) => {
807
808
  let graphHeight = $graphElement[0].clientHeight;
808
809
  let containerHeight = $element[0].clientHeight;
809
- graphHeight = graphHeight - containerHeight - 32;
810
+ graphHeight = graphHeight - containerHeight - 42;
810
811
  const originY = graphHeight / 2;
811
812
  const yPixel = originY - y * (graphHeight / range);
812
813
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]`)
@@ -829,7 +830,7 @@ const steps = {
829
830
  .then(($element) => {
830
831
  let graphHeight = $graphElement[0].clientHeight;
831
832
  let containerHeight = $element[0].clientHeight;
832
- graphHeight = graphHeight - containerHeight - 32;
833
+ graphHeight = graphHeight - containerHeight - 42;
833
834
  const originY = graphHeight / 2;
834
835
  const yPixel = originY - y * (graphHeight / range);
835
836
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]`)
@@ -852,7 +853,7 @@ const steps = {
852
853
  .then(($element) => {
853
854
  let graphHeight = $graphElement[0].clientHeight;
854
855
  let containerHeight = $element[0].clientHeight;
855
- graphHeight = graphHeight - containerHeight - 32;
856
+ graphHeight = graphHeight - containerHeight - 42;
856
857
  const originY = graphHeight / 2;
857
858
  const yPixel = originY - y * (graphHeight / range);
858
859
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]`)
@@ -874,11 +875,11 @@ const steps = {
874
875
  .then(($element) => {
875
876
  let graphHeight = $graphElement[0].clientHeight;
876
877
  let containerHeight = $element[0].clientHeight;
877
- graphHeight = graphHeight - containerHeight - 32;
878
+ graphHeight = graphHeight - containerHeight - 42;
878
879
  const originY = graphHeight / 2;
879
880
  const yPixel = originY - coordinate * (graphHeight / range);
880
881
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]`)
881
- .should('have.css', 'stroke', css.color.incorrectAnswer);
882
+ .should('have.css', 'fill', css.color.incorrectAnswer);
882
883
  });
883
884
  });
884
885
  numberLineLabelPage.numberLinePreviewTab()
@@ -905,7 +906,7 @@ const steps = {
905
906
  .then(($element) => {
906
907
  let graphHeight = $graphElement[0].clientHeight;
907
908
  let containerHeight = $element[0].clientHeight;
908
- graphHeight = graphHeight - containerHeight - 32;
909
+ graphHeight = graphHeight - containerHeight - 42;
909
910
  const originY = graphHeight / 2;
910
911
  const yPixel = originY - coordinate * (graphHeight / range);
911
912
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]`)
@@ -936,7 +937,7 @@ const steps = {
936
937
  const originY = graphHeight / 2;
937
938
  const yPixel = originY - coordinate * (graphHeight / range);
938
939
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cy*="${Math.floor(yPixel)}"][display="inline"]`)
939
- .should('have.css', 'stroke', css.color.correctAnswer);
940
+ .should('have.css', 'fill', css.color.correctAnswer);
940
941
  });
941
942
  numberLineLabelPage.numberLineCorrectAnswerSection()
942
943
  .parents('.ngie-jxgbox')
@@ -123,13 +123,6 @@ const steps = {
123
123
  .should('have.attr', 'aria-selected', 'true');
124
124
  },
125
125
 
126
- addResponseToken: () => {
127
- questionInputFieldComponent.questionInputField()
128
- .click();
129
- textEntryMathPage.responseToken()
130
- .click();
131
- },
132
-
133
126
  /**
134
127
  * @description Verify response token numeration and close button
135
128
  * @param {number} responseAreaIndex response token index
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.196-drawingResponseMigration-0f99062.0",
3
+ "version": "1.0.196",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {