itemengine-cypress-automation 1.0.181 → 1.0.182

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  2. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +5 -4
  3. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +3 -64
  4. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  5. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
  6. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
  7. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +1 -29
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  10. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  19. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -3
  20. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +0 -1
  22. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  23. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  24. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  25. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  26. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  27. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  28. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  29. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  30. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  31. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -1
  32. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  33. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  34. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  35. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
  36. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -2
  37. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  38. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -49
  39. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  40. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  41. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  42. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -0
  43. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -0
  44. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -0
  45. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
  46. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
  47. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
  48. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
  49. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +2 -2
  50. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  51. package/cypress/fixtures/constants.js +1 -1
  52. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  53. package/cypress/fixtures/theme/ilc.json +16 -16
  54. package/cypress/pages/audioPlayerPage.js +543 -55
  55. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  56. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  57. package/cypress/pages/components/autoScoredStudentViewSettings.js +4 -4
  58. package/cypress/pages/components/commonComponents.js +0 -1
  59. package/cypress/pages/components/draggableOptionContainer.js +0 -1
  60. package/cypress/pages/components/equationEditorFlyout.js +2 -3
  61. package/cypress/pages/components/essayResponseCommonComponents.js +2 -8
  62. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -1
  63. package/cypress/pages/components/imageCanvasComponent.js +1 -2
  64. package/cypress/pages/components/index.js +0 -1
  65. package/cypress/pages/components/optionsWrapperComponent.js +0 -11
  66. package/cypress/pages/components/toolSettingsComponent.js +0 -6
  67. package/cypress/pages/contentBlocksPage.js +2 -2
  68. package/cypress/pages/createItemPage.js +0 -29
  69. package/cypress/pages/dialogBoxBase.js +2 -2
  70. package/cypress/pages/drawingResponsePage.js +4 -23
  71. package/cypress/pages/feedbackScalePage.js +0 -3
  72. package/cypress/pages/graphingPage.js +0 -18
  73. package/cypress/pages/gridFillPage.js +2 -18
  74. package/cypress/pages/index.js +1 -1
  75. package/cypress/pages/itemPreviewSettingsPage.js +0 -4
  76. package/cypress/pages/listOrderingPage.js +647 -122
  77. package/cypress/pages/matchingPage.js +1 -1
  78. package/cypress/pages/multipleSelectionPage.js +1 -23
  79. package/cypress/pages/numberLinePage.js +59 -1196
  80. package/cypress/pages/rulerPage.js +2 -6
  81. package/cypress/pages/textSelectionPage.js +22 -460
  82. package/package.json +2 -2
  83. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
  84. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -216
  85. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -214
  86. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -251
  87. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +0 -52
  88. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -243
  89. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
  90. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
  91. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -530
  92. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -119
  93. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -263
  94. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
  95. package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
  96. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.smoke.js +0 -179
  97. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +0 -89
  98. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +0 -436
  99. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +0 -277
  100. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +0 -222
  101. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +0 -260
  102. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -380
  103. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +0 -46
@@ -19,7 +19,6 @@ describe('Create Item page: Tool settings', () => {
19
19
  numberLinePage.tests.verifyToolSettingsContent();
20
20
  });
21
21
 
22
- //Failing due to https://redmine.zeuslearning.com/issues/568938
23
22
  describe('Tool settings: Edit tool settings', () => {
24
23
  abortEarlySetup();
25
24
  before(() => {
@@ -41,7 +40,7 @@ describe('Create Item page: Tool settings', () => {
41
40
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
42
41
  rulerPage.steps.enterInputToOpacityInputField(60);
43
42
  rulerPage.steps.checkAddShowHideButtonCheckbox();
44
- toolSettingsComponent.steps.clickOnOkButton();
43
+ dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
45
44
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
46
45
  toolSettingsComponent.steps.verifyToolSelectedState(0);
47
46
  });
@@ -54,7 +54,7 @@ describe('Preview tab contents for all views', () => {
54
54
  }
55
55
  if (view === 'Student view') {
56
56
  studentViewPage.steps.submitResponse();
57
- utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
57
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
58
58
  }
59
59
  });
60
60
 
@@ -195,55 +195,7 @@ describe('Create Item page - Reading ruler: Edit Tab', () => {
195
195
  readingRulerPage.steps.verifyColorPopupIsDisplayed();
196
196
  });
197
197
 
198
- it('A title \'Select color\' should be displayed on the color popup', () => {
199
- readingRulerPage.steps.verifyColorPopupSelectColorTitle();
200
- });
201
-
202
- it('A \'Selected color\' label and color block displaying the selected color should be displayed', () => {
203
- readingRulerPage.steps.verifySelectedColorLabelAndSelectedColorBlock();
204
- });
205
-
206
- it('\'Cancel\' and \'Ok\' buttons should be displayed', () => {
207
- utilities.verifyInnerText(readingRulerPage.cancelButton(), 'Cancel');
208
- utilities.verifyElementVisibilityState(readingRulerPage.cancelButton(), 'visible');
209
- utilities.verifyInnerText(readingRulerPage.okButton(), 'OK');
210
- utilities.verifyElementVisibilityState(readingRulerPage.okButton(), 'visible');
211
- });
212
-
213
- it('CSS of color popup contents', { tags: 'css' }, () => {
214
- const labels = [readingRulerPage.selectedColorLabel, readingRulerPage.hexLabel]
215
- const inputFields = [readingRulerPage.hexInputField];
216
- labels.forEach(label => {
217
- utilities.verifyCSS(label(), {
218
- 'color': css.color.labels,
219
- 'font-size': css.fontSize.normal,
220
- 'font-weight': css.fontWeight.semibold
221
- });
222
- });
223
- inputFields.forEach(inputField => {
224
- utilities.verifyCSS(inputField(), {
225
- 'color': css.color.text,
226
- 'font-size': css.fontSize.default,
227
- 'font-weight': css.fontWeight.regular
228
- });
229
- });
230
- utilities.verifyCSS(readingRulerPage.okButton(), {
231
- 'color': css.color.primaryBtn,
232
- 'font-size': css.fontSize.default,
233
- 'font-weight': css.fontWeight.semibold,
234
- 'background-color': css.color.primaryBtnBg
235
- });
236
- utilities.verifyCSS(readingRulerPage.cancelButton(), {
237
- 'color': css.color.secondaryBtn,
238
- 'font-size': css.fontSize.default,
239
- 'font-weight': css.fontWeight.semibold,
240
- 'background-color': css.color.transparent
241
- });
242
- });
243
-
244
- it('Accessibility of color popup contents', { tags: 'a11y' }, () => {
245
- cy.checkAccessibility(readingRulerPage.dialogBoxContent());
246
- });
198
+ readingRulerPage.tests.verifyColorPopupSelectColorTitle();
247
199
 
248
200
  readingRulerPage.tests.verifySaturationAndOpacityGradientPalette('rgb(255, 255, 255)');
249
201
 
@@ -318,7 +318,7 @@ describe('Create Item page - Short text response : Student view settings', () =>
318
318
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
319
319
  shortTextResponsePage.steps.switchToEditTab();
320
320
  shortTextResponsePage.steps.expandMaxCheckAnswerAttemptsDropdown();
321
- shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
321
+ shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
322
322
  shortTextResponsePage.steps.switchToPreviewTab();
323
323
  shortTextResponsePage.steps.verifyCheckAnswerButtonEnabled();
324
324
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower');
@@ -172,7 +172,7 @@ describe('Create item page - single selection grid: Student view settings', () =
172
172
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer single times', () => {
173
173
  singleSelectionGridPage.steps.switchToEditTab();
174
174
  singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
175
- singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
175
+ singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
176
176
  singleSelectionGridPage.steps.switchToPreviewTab();
177
177
  singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
178
178
  singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
@@ -353,10 +353,10 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
353
353
  } else {
354
354
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.ignoreUnitCoefficient), 'notExist');
355
355
  }
356
- if (evaluationMethod.customSettings.includes('Check for parenthesis groups')) {
356
+ if (evaluationMethod.customSettings.includes('Check for parenthesis grouping')) {
357
357
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'visible');
358
358
  textEntryMathPage.steps.verifyCustomSettingsCheckboxIsUnchecked(customSettingsIds.checkForParenthesisGrouping);
359
- textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis groups');
359
+ textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis grouping');
360
360
  } else {
361
361
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'notExist');
362
362
  }
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Alternate Answer points are more than Correct Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are equal to Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are more than Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -16,6 +16,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
16
16
  describe('Question Preview: Custom text selection type with All or nothing scoring', () => {
17
17
  abortEarlySetup();
18
18
  before(() => {
19
+ cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
19
20
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
20
21
  cy.barsPreLoaderWait();
21
22
  textSelectionPage.steps.addQuestionInstructions();
@@ -232,6 +232,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
232
232
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
233
233
  abortEarlySetup();
234
234
  before(() => {
235
+ cy.log('Navigating to Highlight question type');
235
236
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
236
237
  cy.barsPreLoaderWait();
237
238
  textSelectionPage.steps.addTextInQuestionInstructionsInputField('Highlight the correct statements.');
@@ -93,6 +93,7 @@ describe('Create item page - Matching - Check answer functionality', () => {
93
93
 
94
94
  it('When the user attempts the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' should be displayed. Correct answer section should not be displayed', () => {
95
95
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
96
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
96
97
  checkAnswer(view);
97
98
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[0]);
98
99
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
@@ -98,9 +98,8 @@ describe('Create item page - Text selection: Scoring section', () => {
98
98
 
99
99
  textSelectionPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
100
100
 
101
- it('\'Points per response:\' label should be displayed in the \'Specify correct answer\' section', () => {
102
- utilities.verifyInnerText(textSelectionPage.pointsPerResponseLabel(), 'Points per response:');
103
- utilities.verifyElementVisibilityState(textSelectionPage.pointsPerResponseLabel(), 'visible');
101
+ it('\'Points per response\' label should be displayed and a \'-\' should be displayed besides each response in the \'Specify correct answer\' section', () => {
102
+ textSelectionPage.steps.verifyPointsPerResponseLabel();
104
103
  });
105
104
 
106
105
  it('When the user gives a score input to \'Points\' input field, then the score should be equally divided among the dropzone \'Points per response\' label', () => {
@@ -188,12 +187,12 @@ describe('Create item page - Text selection: Scoring section', () => {
188
187
  it('When user has not selected an option in specify correct answer section, then the \'Set points\' button should be disabled', () => {
189
188
  utilities.verifyElementDisabled(textSelectionPage.setPointsButton());
190
189
  });
191
-
190
+
192
191
  it('When user selects an option in set correct answer section, then the \'Set points\' button should be enabled', () => {
193
192
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
194
193
  textSelectionPage.steps.verifySetPointsButtonLabelAndEnabledState();
195
194
  });
196
-
195
+
197
196
  it('CSS of \'Set points\' button', { tags: 'css' }, () => {
198
197
  utilities.verifyCSS(textSelectionPage.setPointsButton(), {
199
198
  'color': css.color.activeButtons,
@@ -70,7 +70,7 @@ describe('Create item page - Text selection : Preview contents', () => {
70
70
  });
71
71
 
72
72
  it('Question instructions should be visible', () => {
73
- utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Select the correct statements.');
73
+ utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Highlight the correct statements.');
74
74
  utilities.verifyElementVisibilityState(textSelectionPage.questionInstructionsText(), 'visible');
75
75
  });
76
76
 
@@ -109,7 +109,7 @@ describe('Create item page - Text selection : Preview contents', () => {
109
109
 
110
110
  it('When user clicks on a selected option, then that option should be deselected', () => {
111
111
  textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
112
- textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
112
+ textSelectionPage.steps.verifyDeselectedStateOptionInPreviewTab(paragraphTextArray[0]);
113
113
  });
114
114
  } else if (view === 'Grading view') {
115
115
  it('The question text should be displayed with the selected correct options and status message \' Your answer is correct\' should be displayed', () => {
@@ -5,7 +5,7 @@ import { dialogBoxBase, multipleSelectionPage, rulerPage } from "../../../pages"
5
5
 
6
6
  const css = Cypress.env('css');
7
7
 
8
- const tools = ['Ruler', 'Protractor', 'Reading ruler', 'Simple Calculator', 'Scientific Calculator'];
8
+ const tools = ['Ruler', 'Protractor', 'Reading ruler', 'Simple calculator', 'Scientific calculator'];
9
9
  const lengthOfRuler = ['15 cm', '30 cm', '40 cm'];
10
10
  const rotationOptions = ['None', 'Allow rotation', 'Allow rotation and display angle'];
11
11
  const unitOfMeasurementOptions = ['Centimeter', 'Inch', 'Pixel', 'Both centimeter and inch', 'Custom image'];
@@ -62,7 +62,7 @@ describe('Create Item page: Tool settings', () => {
62
62
  it(`When \'Tool settings\' accordion is expanded, then \'Add tools\' and \'Select the tools that will be displayed to the students.\' labels should be displayed. Three tools ${tools} should be displayed with their labels, icons, drag handle button and edit icon. By default tools should not be selected`, () => {
63
63
  utilities.verifyInnerText(toolSettingsComponent.addToolsLabel(), 'Add tools');
64
64
  utilities.verifyInnerText(toolSettingsComponent.toolSettingsHelpText(), 'Select the tools that will be displayed to the students.');
65
- utilities.verifyElementCount(toolSettingsComponent.toolButton(), 5);
65
+ utilities.verifyElementCount(toolSettingsComponent.toolButton(), 3);
66
66
  tools.forEach((toolName, toolIndex) => {
67
67
  toolSettingsComponent.steps.verifyToolButton(toolIndex, toolName);
68
68
  });
@@ -117,8 +117,8 @@ describe('Create Item page: Tool settings', () => {
117
117
  it(`'Length of ruler' label and dropdown should be displayed and by default ${lengthOfRuler[0]} should be selected`, () => {
118
118
  utilities.verifyInnerText(rulerPage.lengthOfRulerLabel(), 'Length of ruler');
119
119
  utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerLabel(), 'visible');
120
- rulerPage.steps.verifyLengthOfRulerOptions(lengthOfRuler[0]);
121
- utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerOptions(), 'exist');
120
+ rulerPage.steps.verifyInnerTextOfLengthOfRulerDropdown(lengthOfRuler[0]);
121
+ utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerDropdown(), 'exist');
122
122
  });
123
123
 
124
124
  it(`When user expands the \'Unit of measurement\' dropdown then list with five option ${unitOfMeasurementOptions} should be displayed`, () => {
@@ -134,7 +134,7 @@ describe('Create Item page: Tool settings', () => {
134
134
 
135
135
  it(`When user expands the \'Length of ruler\' dropdown then list with three options ${lengthOfRuler} should be displayed`, () => {
136
136
  rulerPage.steps.expandLengthOfRulerDropdown();
137
- rulerPage.steps.verifyLengthOfRulerOptions(lengthOfRuler);
137
+ rulerPage.steps.verifyLengthOfRulerDropdownListOptions(lengthOfRuler);
138
138
  });
139
139
 
140
140
  it('When user selects an option from \'Length of ruler\' dropdown list, then dropdown list should disappear and selected option should be the active selection for the dropdown', () => {
@@ -9,7 +9,7 @@ const constants = {
9
9
  sampleSVGLink: "https://www.svgrepo.com/show/128943/3-flowers.svg",
10
10
  CKEditorEquationEditorPopupInputFieldEnteredEquationText: "x=3√8,What is the value of x?",
11
11
  CKEditorInputFieldEnteredEquationText: "x=83,What is the value of x?",
12
- CKEditorInputFieldEnteredEquationAriaLabel: "x equals the cube root of 8 comma cap w h of A t i s t h of e v A l u e o f x question mark",
12
+ CKEditorInputFieldEnteredEquationAriaLabel: "x equals the cube root of 8 comma cap w h of A t i s t h of e v A l u e o f x question mark question mark",
13
13
  sampleMp3Link: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",
14
14
  sampleWAVLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.wav",
15
15
  sampleAACLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.aac",
@@ -80,17 +80,11 @@ export const equationEditorCategoriesAndSymbols = {
80
80
  ariaLabel: 'Comma',
81
81
  displayText: ','
82
82
  },
83
- divide: {
84
- title: 'Division',
85
- textElement: null,
86
- ariaLabel: 'Division',
87
- displayText: '÷'
88
- },
89
- multiply: {
90
- title: 'Multiply',
83
+ add: {
84
+ title: 'Addition',
91
85
  textElement: null,
92
- ariaLabel: 'Multiply',
93
- displayText: '×'
86
+ ariaLabel: 'Plus 6',
87
+ displayText: '+'
94
88
  },
95
89
  subtract: {
96
90
  title: 'Subtraction',
@@ -98,11 +92,17 @@ export const equationEditorCategoriesAndSymbols = {
98
92
  ariaLabel: 'Minus',
99
93
  displayText: '−'
100
94
  },
101
- add: {
102
- title: 'Addition',
95
+ multiply: {
96
+ title: 'Multiply',
103
97
  textElement: null,
104
- ariaLabel: 'Plus 6',
105
- displayText: '+'
98
+ ariaLabel: 'Multiply',
99
+ displayText: '×'
100
+ },
101
+ divide: {
102
+ title: 'Division',
103
+ textElement: null,
104
+ ariaLabel: 'Division',
105
+ displayText: '÷'
106
106
  },
107
107
  equalTo: {
108
108
  title: 'Equal To',
@@ -122,17 +122,17 @@ export const equationEditorCategoriesAndSymbols = {
122
122
  ariaLabel: 'MoveRight',
123
123
  displayText: null
124
124
  },
125
- clearAll: {
126
- title: 'Clear all',
127
- textElement: null,
128
- ariaLabel: 'ClearAll',
129
- displayText: null
130
- },
131
125
  clear: {
132
126
  title: 'Clear',
133
127
  textElement: null,
134
128
  ariaLabel: 'Clear',
135
129
  displayText: null
130
+ },
131
+ clearAll: {
132
+ title: 'Clear all',
133
+ textElement: null,
134
+ ariaLabel: 'ClearAll',
135
+ displayText: null
136
136
  }
137
137
  }
138
138
  },
@@ -135,9 +135,7 @@
135
135
  "uploadedFileName": "rgb(0, 0, 124)",
136
136
  "feedbackHeart": "rgb(255, 56, 0)",
137
137
  "manipulativeOptionContainerBorder": "rgb(186, 201, 255)",
138
- "cellIcon": "rgb(186, 201, 255)",
139
- "outerBorder": "rgb(186, 201, 255)",
140
- "playbackTime": "rgb(0, 0, 124)"
138
+ "cellIcon": "rgb(186, 201, 255)"
141
139
  },
142
140
  "fontSize": {
143
141
  "extraSmall": "10px",
@@ -163,25 +161,27 @@
163
161
  "hoverBackground": "rgba(82, 0, 255, 0.2)",
164
162
  "hoverBorder": "rgba(82, 0, 255, 0.4)"
165
163
  },
166
- "aqua":{
167
- "background": "rgb(0, 112, 128)",
168
- "hoverBackground": "rgba(0, 112, 128, 0.2)",
169
- "hoverBorder": "rgba(0, 112, 128, 0.4)"
164
+ "darkGreen":{
165
+ "background": "rgb(186, 201, 255)",
166
+ "hoverBackground": "rgba(186, 201, 255, 0.4)",
167
+ "hoverBorder": "rgb(107, 139, 255)"
170
168
  },
171
169
  "brown":{
172
- "background": "rgb(128, 102, 69)",
173
- "hoverBackground": "rgba(128, 102, 69, 0.2)",
174
- "hoverBorder": "rgba(128, 102, 69, 0.4)"
170
+ "background": "rgb(128, 239, 255)",
171
+ "hoverBackground": "rgba(128, 239, 255, 0.4)",
172
+ "hoverBorder": "rgb(0, 156, 179)"
175
173
  },
176
174
  "grey":{
177
- "background": "rgb(102, 102, 102)",
178
- "hoverBackground": "rgba(102, 102, 102, 0.2)",
179
- "hoverBorder": "rgba(102, 102, 102, 0.4)"
175
+ "background": "rgb(255, 238, 215)",
176
+ "hoverBackground": "rgba(255, 238, 215, 0.4)",
177
+ "hoverBorder": "rgb(153, 134, 67)"
180
178
  },
181
179
  "black":{
182
- "background": "rgb(0, 0, 0)",
183
- "hoverBackground": "rgba(0, 0, 0, 0.2)",
184
- "hoverBorder": "rgba(0, 0, 0, 0.4)"
180
+ "title": "yellow",
181
+ "background": "rgb(255, 238, 78)",
182
+ "border": "rgb(64, 59, 20)",
183
+ "hoverBackground": "rgba(255, 238, 78, 0.4)",
184
+ "hoverBorder": "rgb(153, 141, 32)"
185
185
  }
186
186
  }
187
187
  }