itemengine-cypress-automation 1.0.275 → 1.0.277-revert-134-updatedRepo12thDec-108a6c6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +2 -1
  2. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
  3. package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
  4. package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +5 -11
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +0 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +5 -7
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -6
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -8
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +0 -8
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +0 -4
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +0 -2
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
  13. package/cypress/e2e/ILC/EssayResponse/toolSettings.js +2 -8
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -2
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +0 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +0 -2
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  21. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  22. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  27. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -2
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  38. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
  39. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  40. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -4
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +0 -2
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +1 -2
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  64. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  65. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  66. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  67. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  68. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  69. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
  71. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  72. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  73. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
  74. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  75. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  76. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  77. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  78. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  79. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  80. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  81. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  82. package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
  83. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +2 -4
  84. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -1
  85. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -2
  86. package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
  87. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
  88. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  89. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +0 -6
  90. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  91. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  92. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  93. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  94. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  95. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  96. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -3
  97. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +0 -2
  98. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  99. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
  100. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
  101. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -2
  102. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
  103. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -2
  104. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -3
  105. package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +0 -4
  106. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +3 -2
  107. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +0 -5
  108. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
  109. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +0 -3
  110. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +3 -6
  111. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  112. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  113. package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +1 -23
  114. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -476
  115. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  116. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +5 -7
  117. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
  118. package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
  119. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
  120. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
  121. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
  122. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
  123. package/cypress/pages/audioPlayerPage.js +2 -2
  124. package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
  125. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
  126. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +1 -19
  127. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
  128. package/cypress/pages/components/essayResponseCommonComponents.js +5 -6
  129. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  130. package/cypress/pages/components/layoutSectionComponent.js +2 -6
  131. package/cypress/pages/components/numberLineCommonComponent.js +5 -12
  132. package/cypress/pages/components/playbackControlsBaseComponent.js +0 -5
  133. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
  134. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  135. package/cypress/pages/drawingResponsePage.js +1 -18
  136. package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -3
  137. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -19
  138. package/cypress/pages/gridFillPage.js +3 -2
  139. package/cypress/pages/listOrderingPage.js +12 -19
  140. package/cypress/pages/matchingPage.js +2 -16
  141. package/cypress/pages/textEntryMathPage.js +4 -716
  142. package/cypress/pages/textEntryMathWithImagePage.js +5 -133
  143. package/package.json +1 -1
  144. package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +0 -129
  145. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +0 -384
@@ -1,7 +1,5 @@
1
1
  import { textEntryMathPage } from "../../../pages";
2
- import { equationEditorFlyout } from "../../../pages/components";
3
2
 
4
- const arrNoSetAnswer = ['Response is true', 'Expanded form', 'Factored form', 'Simplified version'];
5
3
  const evaluationMethods = [
6
4
  {
7
5
  method: 'Symbols are equivalent',
@@ -39,12 +37,6 @@ const evaluationMethods = [
39
37
  thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
40
38
  additionalOptions: []
41
39
  },
42
- {
43
- method: 'Factored form',
44
- decimalSeparator: ['Dot', 'Comma'],
45
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
46
- additionalOptions: []
47
- },
48
40
  {
49
41
  method: 'Simplified version',
50
42
  decimalSeparator: ['Dot', 'Comma'],
@@ -59,10 +51,6 @@ const evaluationMethods = [
59
51
  }
60
52
  ];
61
53
 
62
- const filteredMethods = evaluationMethods.filter(method =>
63
- method.decimalSeparator.length > 0 && method.thousandsSeparator.length > 0
64
- );
65
-
66
54
  describe('Custom Settings Separators for Text Entry Math', () => {
67
55
  before(() => {
68
56
  cy.loginAs('admin');
@@ -116,468 +104,4 @@ describe('Custom Settings Separators for Text Entry Math', () => {
116
104
  }
117
105
  });
118
106
  });
119
-
120
- filteredMethods.forEach(method => {
121
- describe(`\'Decimal separator\' and \'Thousands separator\' - ${method.method}`, () => {
122
- before(() => {
123
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
124
- cy.barsPreLoaderWait();
125
- textEntryMathPage.steps.addResponseArea();
126
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
127
- textEntryMathPage.steps.allotPoints(20);
128
- textEntryMathPage.steps.selectEvaluationMethod(`${method.method}`);
129
- if (!arrNoSetAnswer.includes(`${method.method}`)) {
130
- textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
131
- equationEditorFlyout.steps.clearAll();
132
- equationEditorFlyout.steps.enterTextInPreviewInputField('29999.1234');
133
- equationEditorFlyout.steps.clickOnOkButton();
134
- }
135
- textEntryMathPage.steps.expandAdditionalSettings();
136
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
137
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
138
- });
139
-
140
- //decimal separator - dot
141
- it('When Dot is selected as \'Decimal separator\' and user attempts with dot as the \'Decimal separator\' then it should be treated as correct', () => {
142
- textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Dot');
143
- textEntryMathPage.steps.switchToPreviewTab();
144
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
145
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
146
- equationEditorFlyout.steps.clickOnOkButton();
147
- textEntryMathPage.steps.switchToGradingView();
148
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
149
- cy.wait(1000);
150
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
151
- });
152
-
153
- it('When Dot is selected as \'Decimal separator\' and user attempts with comma as the \'Decimal separator\' then it should be treated as incorrect', () => {
154
- textEntryMathPage.steps.switchToEditTab();
155
- textEntryMathPage.steps.switchToPreviewTab();
156
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
157
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
158
- equationEditorFlyout.steps.clickOnOkButton();
159
- textEntryMathPage.steps.switchToGradingView();
160
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
161
- cy.wait(1000);
162
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
163
- });
164
-
165
- //decimal separator - dot, thousands separator - none
166
- it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with no \'Thousands separator\' then it should be treated as correct', () => {
167
- textEntryMathPage.steps.switchToEditTab();
168
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
169
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
170
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
171
- textEntryMathPage.steps.switchToPreviewTab();
172
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
173
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
174
- equationEditorFlyout.steps.clickOnOkButton();
175
- textEntryMathPage.steps.switchToGradingView();
176
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
177
- cy.wait(1000);
178
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
179
- });
180
-
181
- it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with comma as \'Thousands separator\' then it should be treated as incorrect', () => {
182
- textEntryMathPage.steps.switchToEditTab();
183
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
184
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
185
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
186
- textEntryMathPage.steps.switchToPreviewTab();
187
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
188
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
189
- equationEditorFlyout.steps.clickOnOkButton();
190
- textEntryMathPage.steps.switchToGradingView();
191
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
192
- cy.wait(1000);
193
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
194
- });
195
-
196
- it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
197
- textEntryMathPage.steps.switchToEditTab();
198
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
199
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
200
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
201
- textEntryMathPage.steps.switchToPreviewTab();
202
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
203
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29 999.1234');
204
- equationEditorFlyout.steps.clickOnOkButton();
205
- textEntryMathPage.steps.switchToGradingView();
206
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
207
- cy.wait(1000);
208
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
209
- });
210
-
211
- //decimal separator - dot, thousands separator - comma or space
212
- it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as correct', () => {
213
- textEntryMathPage.steps.switchToEditTab();
214
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
215
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
216
- textEntryMathPage.steps.selectThousandSeparatorOption(1);
217
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
218
- textEntryMathPage.steps.switchToPreviewTab();
219
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
220
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
221
- equationEditorFlyout.steps.clickOnOkButton();
222
- textEntryMathPage.steps.switchToGradingView();
223
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
224
- cy.wait(1000);
225
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
226
- });
227
-
228
- it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
229
- textEntryMathPage.steps.switchToEditTab();
230
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
231
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
232
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
233
- textEntryMathPage.steps.switchToPreviewTab();
234
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
235
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
236
- equationEditorFlyout.steps.clickOnOkButton();
237
- textEntryMathPage.steps.switchToGradingView();
238
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
239
- cy.wait(1000);
240
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
241
- });
242
-
243
- it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
244
- textEntryMathPage.steps.switchToEditTab();
245
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
246
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
247
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
248
- textEntryMathPage.steps.switchToPreviewTab();
249
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
250
- cy.wait(2000);
251
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
252
- equationEditorFlyout.steps.clickOnOkButton();
253
- textEntryMathPage.steps.switchToGradingView();
254
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
255
- cy.wait(1000);
256
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
257
- });
258
-
259
- //decimal separator - dot, thousands separator - comma
260
- it('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as correct', () => {
261
- textEntryMathPage.steps.switchToEditTab();
262
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
263
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
264
- textEntryMathPage.steps.selectThousandSeparatorOption(2);
265
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
266
- textEntryMathPage.steps.switchToPreviewTab();
267
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
268
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
269
- equationEditorFlyout.steps.clickOnOkButton();
270
- textEntryMathPage.steps.switchToGradingView();
271
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
272
- cy.wait(1000);
273
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
274
- });
275
-
276
- it('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
277
- textEntryMathPage.steps.switchToEditTab();
278
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
279
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
280
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
281
- textEntryMathPage.steps.switchToPreviewTab();
282
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
283
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
284
- equationEditorFlyout.steps.clickOnOkButton();
285
- textEntryMathPage.steps.switchToGradingView();
286
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
287
- cy.wait(1000);
288
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
289
- });
290
-
291
- //Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
292
- it.skip('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
293
- textEntryMathPage.steps.switchToEditTab();
294
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
295
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
296
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
297
- textEntryMathPage.steps.switchToPreviewTab();
298
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
299
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
300
- equationEditorFlyout.steps.clickOnOkButton();
301
- textEntryMathPage.steps.switchToGradingView();
302
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
303
- cy.wait(1000);
304
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
305
- });
306
-
307
- //decimal separator - dot, thousands separator - space
308
- it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
309
- textEntryMathPage.steps.switchToEditTab();
310
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
311
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
312
- textEntryMathPage.steps.selectThousandSeparatorOption(3);
313
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
314
- textEntryMathPage.steps.switchToPreviewTab();
315
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
316
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
317
- equationEditorFlyout.steps.clickOnOkButton();
318
- textEntryMathPage.steps.switchToGradingView();
319
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
320
- cy.wait(1000);
321
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
322
- });
323
-
324
- it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
325
- textEntryMathPage.steps.switchToEditTab();
326
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
327
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
328
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
329
- textEntryMathPage.steps.switchToPreviewTab();
330
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
331
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
332
- equationEditorFlyout.steps.clickOnOkButton();
333
- textEntryMathPage.steps.switchToGradingView();
334
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
335
- cy.wait(1000);
336
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
337
- });
338
-
339
- it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as incorrect', () => {
340
- textEntryMathPage.steps.switchToEditTab();
341
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
342
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
343
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
344
- textEntryMathPage.steps.switchToPreviewTab();
345
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
346
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
347
- equationEditorFlyout.steps.clickOnOkButton();
348
- textEntryMathPage.steps.switchToGradingView();
349
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
350
- cy.wait(1000);
351
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
352
- });
353
-
354
- //decimal separator - comma
355
- it('When user selects Comma as \'Decimal separator\' and user attempts with comma as the \'Decimal separator\' then it should be treated as correct', () => {
356
- textEntryMathPage.steps.switchToEditTab();
357
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
358
- if (!arrNoSetAnswer.includes(`${method.method}`)) {
359
- textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
360
- equationEditorFlyout.steps.clearAll();
361
- equationEditorFlyout.steps.enterTextInPreviewInputField('29999,1234');
362
- equationEditorFlyout.steps.clickOnOkButton();
363
- }
364
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
365
- textEntryMathPage.steps.selectDecimalSeparatorOption('Comma');
366
- textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Comma');
367
- textEntryMathPage.steps.switchToPreviewTab();
368
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
369
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
370
- equationEditorFlyout.steps.clickOnOkButton();
371
- textEntryMathPage.steps.switchToGradingView();
372
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
373
- cy.wait(1000);
374
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
375
- });
376
-
377
- it('When Comma is selected as \'Decimal separator\' and user attempts with dot as the \'Decimal separator\' then it should be treated as incorrect', () => {
378
- textEntryMathPage.steps.switchToEditTab();
379
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
380
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
381
- textEntryMathPage.steps.selectDecimalSeparatorOption('Comma');
382
- textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Comma');
383
- textEntryMathPage.steps.switchToPreviewTab();
384
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
385
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
386
- equationEditorFlyout.steps.clickOnOkButton();
387
- textEntryMathPage.steps.switchToGradingView();
388
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
389
- cy.wait(1000);
390
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
391
- });
392
-
393
- //decimal separator - comma, thousands separator - none
394
- it('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with no \'Thousands separator\' then it should be treated as correct', () => {
395
- textEntryMathPage.steps.switchToEditTab();
396
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
397
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
398
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
399
- textEntryMathPage.steps.switchToPreviewTab();
400
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
401
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
402
- equationEditorFlyout.steps.clickOnOkButton();
403
- textEntryMathPage.steps.switchToGradingView();
404
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
405
- cy.wait(1000);
406
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
407
- });
408
-
409
- it('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with dot as \'Thousands separator\' then it should be treated as incorrect', () => {
410
- textEntryMathPage.steps.switchToEditTab();
411
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
412
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
413
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
414
- textEntryMathPage.steps.switchToPreviewTab();
415
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
416
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
417
- equationEditorFlyout.steps.clickOnOkButton();
418
- textEntryMathPage.steps.switchToGradingView();
419
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
420
- cy.wait(1000);
421
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
422
- });
423
-
424
- //Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
425
- it.skip('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
426
- textEntryMathPage.steps.switchToEditTab();
427
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
428
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
429
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
430
- textEntryMathPage.steps.switchToPreviewTab();
431
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
432
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
433
- equationEditorFlyout.steps.clickOnOkButton();
434
- textEntryMathPage.steps.switchToGradingView();
435
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
436
- cy.wait(1000);
437
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
438
- });
439
-
440
- //decimal separator - comma, thousands separator - dot or space
441
- it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as correct', () => {
442
- textEntryMathPage.steps.switchToEditTab();
443
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
444
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
445
- textEntryMathPage.steps.selectThousandSeparatorOption(1);
446
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
447
- textEntryMathPage.steps.switchToPreviewTab();
448
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
449
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
450
- equationEditorFlyout.steps.clickOnOkButton();
451
- textEntryMathPage.steps.switchToGradingView();
452
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
453
- cy.wait(1000);
454
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
455
- });
456
-
457
- it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
458
- textEntryMathPage.steps.switchToEditTab();
459
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
460
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
461
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
462
- textEntryMathPage.steps.switchToPreviewTab();
463
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
464
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
465
- equationEditorFlyout.steps.clickOnOkButton();
466
- textEntryMathPage.steps.switchToGradingView();
467
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
468
- cy.wait(1000);
469
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
470
- });
471
-
472
- it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
473
- textEntryMathPage.steps.switchToEditTab();
474
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
475
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
476
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
477
- textEntryMathPage.steps.switchToPreviewTab();
478
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
479
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
480
- equationEditorFlyout.steps.clickOnOkButton();
481
- textEntryMathPage.steps.switchToGradingView();
482
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
483
- cy.wait(1000);
484
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
485
- });
486
-
487
- //decimal separator - comma, thousands separator - dot
488
- it('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as correct', () => {
489
- textEntryMathPage.steps.switchToEditTab();
490
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
491
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
492
- textEntryMathPage.steps.selectThousandSeparatorOption(2);
493
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
494
- textEntryMathPage.steps.switchToPreviewTab();
495
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
496
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
497
- equationEditorFlyout.steps.clickOnOkButton();
498
- textEntryMathPage.steps.switchToGradingView();
499
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
500
- cy.wait(1000);
501
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
502
- });
503
-
504
- it('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
505
- textEntryMathPage.steps.switchToEditTab();
506
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
507
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
508
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
509
- textEntryMathPage.steps.switchToPreviewTab();
510
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
511
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
512
- equationEditorFlyout.steps.clickOnOkButton();
513
- textEntryMathPage.steps.switchToGradingView();
514
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
515
- cy.wait(1000);
516
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
517
- });
518
-
519
- //Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
520
- it.skip('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
521
- textEntryMathPage.steps.switchToEditTab();
522
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
523
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
524
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
525
- textEntryMathPage.steps.switchToPreviewTab();
526
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
527
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
528
- equationEditorFlyout.steps.clickOnOkButton();
529
- textEntryMathPage.steps.switchToGradingView();
530
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
531
- cy.wait(1000);
532
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
533
- });
534
-
535
- //decimal separator - comma, thousands separator - space
536
- it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
537
- textEntryMathPage.steps.switchToEditTab();
538
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
539
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
540
- textEntryMathPage.steps.selectThousandSeparatorOption(3);
541
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
542
- textEntryMathPage.steps.switchToPreviewTab();
543
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
544
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
545
- equationEditorFlyout.steps.clickOnOkButton();
546
- textEntryMathPage.steps.switchToGradingView();
547
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
548
- cy.wait(1000);
549
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
550
- });
551
-
552
- it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
553
- textEntryMathPage.steps.switchToEditTab();
554
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
555
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
556
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
557
- textEntryMathPage.steps.switchToPreviewTab();
558
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
559
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
560
- equationEditorFlyout.steps.clickOnOkButton();
561
- textEntryMathPage.steps.switchToGradingView();
562
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
563
- cy.wait(1000);
564
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
565
- });
566
-
567
- it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as incorrect', () => {
568
- textEntryMathPage.steps.switchToEditTab();
569
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
570
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
571
- textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
572
- textEntryMathPage.steps.switchToPreviewTab();
573
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
574
- textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
575
- equationEditorFlyout.steps.clickOnOkButton();
576
- textEntryMathPage.steps.switchToGradingView();
577
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
578
- cy.wait(1000);
579
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
580
- });
581
- });
582
- });
583
107
  });
@@ -90,7 +90,7 @@ describe('Create question page - Text Entry Math: Equation Editor functionality'
90
90
  cy.log('Adding an equation to preview input field')
91
91
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'five', 'equalTo', 'one'] }]);
92
92
  equationEditorFlyout.steps.clickOnOkButton();
93
- textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
93
+ textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
94
94
  });
95
95
 
96
96
  textEntryMathPage.tests.editEquationInPreviewTab('text entry math');
@@ -106,20 +106,19 @@ describe('Create item page - Text entry math: Question instructions, Options sec
106
106
  utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 3);
107
107
  });
108
108
 
109
- //Remove skip once https://weldnorthed.atlassian.net/issues/IEI-3943 is resolved
110
- it.skip('When the user clicks on the redo button after performing an undo action in canvas section, then the previously added response accordion should be deleted again in specify correct answer section', () => {
109
+ it('When the user clicks on the redo button after performing an undo action in canvas section, then the previously added response accordion should be deleted again in specify correct answer section', () => {
111
110
  textEntryMathWithImagePage.steps.redoAction();
112
111
  utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 2);
113
112
  });
114
113
 
115
- it.skip('When the user reaches the initial state by performing undo actions in canvas section, then specify correct answer section should not have response accordion', () => {
114
+ it('When the user reaches the initial state by performing undo actions in canvas section, then specify correct answer section should not have response accordion', () => {
116
115
  for (var i = 0; i < 5; i++) {
117
116
  textEntryMathWithImagePage.steps.undoAction();
118
117
  };
119
118
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseAccordion(), 'notExist');
120
119
  });
121
120
 
122
- it.skip('When the user reaches the latest state by performing redo actions in canvas section, then 3 response accordions should be visible in specify correct answer section', () => {
121
+ it('When the user reaches the latest state by performing redo actions in canvas section, then 3 response accordions should be visible in specify correct answer section', () => {
123
122
  for (var i = 0; i < 4; i++) {
124
123
  textEntryMathWithImagePage.steps.redoAction();
125
124
  };
@@ -337,15 +336,14 @@ describe('Create item page - Text entry math: Question instructions, Options sec
337
336
  textEntryMathWithImagePage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
338
337
  });
339
338
 
340
- //Remove skip once https://weldnorthed.atlassian.net/issues/IEI-3943 is resolved
341
- it.skip('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
339
+ it('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
342
340
  textEntryMathWithImagePage.steps.switchToEditTab();
343
341
  textEntryMathWithImagePage.steps.undoAction();
344
342
  textEntryMathWithImagePage.steps.switchToPreviewTab();
345
343
  textEntryMathWithImagePage.steps.verifyTextOfTextBoxInPreviewTab('');
346
344
  });
347
345
 
348
- it.skip('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
346
+ it('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
349
347
  textEntryMathWithImagePage.steps.switchToEditTab();
350
348
  textEntryMathWithImagePage.steps.redoAction();
351
349
  textEntryMathWithImagePage.steps.switchToPreviewTab();
@@ -56,10 +56,10 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
56
56
  });
57
57
 
58
58
  it('When user selects Custom texts, then that text should be selected and the option count should be increased to 1.', () => {
59
- textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[2]);
59
+ textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[0]);
60
60
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[1]);
61
61
  textSelectionPage.steps.verifyOptionCounterTextAndValue(2);
62
- textSelectionPage.steps.verifySelectedStateOptionInSpecifyPossibleOptionSection(customTextArray[2], 'blue');
62
+ textSelectionPage.steps.verifySelectedStateOptionInSpecifyPossibleOptionSection(customTextArray[0], 'blue');
63
63
  });
64
64
 
65
65
  it('Accessibility of the selected option', { tags: 'a11y' }, () => {
@@ -67,7 +67,7 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
67
67
  });
68
68
 
69
69
  it('When user clicks on a selected option, then the selected option should be deselected and the option count should reduce by 1.', () => {
70
- textSelectionPage.steps.deselectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[2]);
70
+ textSelectionPage.steps.deselectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[0]);
71
71
  textSelectionPage.steps.verifyOptionCounterTextAndValue(1);
72
72
  });
73
73
 
@@ -193,7 +193,7 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
193
193
  'border': `1px solid ${css.color.figDefaultComponentBorder}`
194
194
  });
195
195
  utilities.verifyCSS(audioPlayerPage.standardPreviewPlayerWrapper().find('#Icon_awesome-microphone'), {
196
- 'fill': css.color.standardMicroPhoneIcon
196
+ 'fill': css.color.microphoneIcon
197
197
  });
198
198
  utilities.verifyCSS(audioPlayerPage.playbackPauseButton().find('#pause'), {
199
199
  'stroke': css.color.secondaryBtnActive,
@@ -343,15 +343,17 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
343
343
  });
344
344
 
345
345
  it('When volume is not set as 0 and user hovers on \'Volume control\' button, then \'Mute\' text should be displayed in a tooltip and on hovering away from the button, the tooltip should disappear', () => {
346
- videoResponsePage.steps.hoverOnMuteUnmuteButton();
346
+ videoResponsePage.steps.hoverOnVolumeControlButton();
347
347
  utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
348
348
  utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Mute');
349
- utilities.triggerMouseout(videoResponsePage.volumeControlButton());
349
+ utilities.hoverAwayFromElement();
350
350
  utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'notExist');
351
351
  });
352
352
 
353
353
  it('When the user hovers over \'Volume control slider\', then \'Volume control\' text should be displayed in a tooltip and on hovering away from the button, the tooltip should disappear', () => {
354
354
  videoResponsePage.steps.hoverOnVolumeControlButton();
355
+ videoResponsePage.steps.hoverOnVolumeControlSlider();
356
+ videoResponsePage.steps.hoverAwayFromVolumeControlButton();
355
357
  utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
356
358
  utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Volume control');
357
359
  utilities.hoverAwayFromElement();
@@ -361,7 +363,6 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
361
363
 
362
364
  it('When volume is not set as 0 and user clicks on volume control button, then the video should be muted and the volume control button should change to a muted state', () => {
363
365
  videoResponsePage.steps.clickOnVolumeButton();
364
- utilities.hoverAwayFromElement();
365
366
  videoResponsePage.steps.hoverOnVolumeControlButton();
366
367
  videoResponsePage.steps.verifyVolumeOfPlaybackPlayer('0');
367
368
  utilities.hoverAwayFromElement();
@@ -371,16 +372,15 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
371
372
  });
372
373
 
373
374
  it('When the user hovers on muted \'Volume control\' button, \'Unmute\' text should be displayed in tooltip', () => {
374
- videoResponsePage.steps.hoverOnMuteUnmuteButton();
375
+ videoResponsePage.steps.hoverOnVolumeControlButton();
375
376
  utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
376
377
  utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Unmute');
377
- utilities.triggerMouseout(videoResponsePage.volumeControlButton());
378
+ utilities.hoverAwayFromElement();
378
379
  utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'notExist');
379
380
  });
380
381
 
381
382
  it('When the user clicks on the muted volume control button then the volume setting slider should return to full volume and the volume control button should change to an unmuted state', () => {
382
383
  videoResponsePage.steps.clickOnVolumeButton();
383
- utilities.hoverAwayFromElement();
384
384
  videoResponsePage.steps.hoverOnVolumeControlButton();
385
385
  videoResponsePage.steps.verifyVolumeOfPlaybackPlayer('100');
386
386
  utilities.verifyElementVisibilityState(videoResponsePage.unmutedVolumeIcon(), 'visible');