itemengine-cypress-automation 1.0.180-essayResponseLazyLoadingFix-3170a00.0 → 1.0.181

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/AudioPlayerNew/previewContents.smoke.js +162 -0
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  3. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +4 -5
  4. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +64 -3
  5. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  6. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  9. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  18. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
  19. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  20. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
  21. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  22. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  23. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  24. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  25. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  26. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  27. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  28. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  29. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
  30. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
  31. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +251 -0
  32. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  33. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
  34. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  35. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
  36. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  37. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
  38. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  39. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +530 -0
  40. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  41. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +119 -0
  42. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +263 -0
  43. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  44. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
  45. package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
  46. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  47. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
  48. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  49. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  50. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  51. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
  52. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
  53. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
  54. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
  55. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
  56. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
  57. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
  58. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
  59. package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
  60. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +2 -2
  61. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.smoke.js +179 -0
  62. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
  63. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
  64. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
  65. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
  66. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
  67. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
  68. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  69. package/cypress/fixtures/constants.js +1 -1
  70. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  71. package/cypress/fixtures/theme/ilc.json +16 -16
  72. package/cypress/pages/audioPlayerPage.js +55 -543
  73. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  74. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  75. package/cypress/pages/components/autoScoredStudentViewSettings.js +4 -4
  76. package/cypress/pages/components/commonComponents.js +1 -0
  77. package/cypress/pages/components/draggableOptionContainer.js +1 -0
  78. package/cypress/pages/components/equationEditorFlyout.js +3 -2
  79. package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
  80. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  81. package/cypress/pages/components/imageCanvasComponent.js +2 -1
  82. package/cypress/pages/components/index.js +1 -0
  83. package/cypress/pages/components/optionsWrapperComponent.js +11 -0
  84. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
  85. package/cypress/pages/components/toolSettingsComponent.js +6 -0
  86. package/cypress/pages/contentBlocksPage.js +2 -2
  87. package/cypress/pages/createItemPage.js +29 -0
  88. package/cypress/pages/dialogBoxBase.js +2 -2
  89. package/cypress/pages/drawingResponsePage.js +23 -4
  90. package/cypress/pages/feedbackScalePage.js +3 -0
  91. package/cypress/pages/graphingPage.js +18 -0
  92. package/cypress/pages/gridFillPage.js +18 -2
  93. package/cypress/pages/index.js +1 -1
  94. package/cypress/pages/itemPreviewSettingsPage.js +4 -0
  95. package/cypress/pages/listOrderingPage.js +122 -647
  96. package/cypress/pages/matchingPage.js +1 -1
  97. package/cypress/pages/multipleSelectionPage.js +23 -1
  98. package/cypress/pages/numberLinePage.js +1196 -59
  99. package/cypress/pages/rulerPage.js +6 -2
  100. package/cypress/pages/textSelectionPage.js +460 -22
  101. package/package.json +2 -2
  102. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
  103. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -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(), 3);
65
+ utilities.verifyElementCount(toolSettingsComponent.toolButton(), 5);
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.verifyInnerTextOfLengthOfRulerDropdown(lengthOfRuler[0]);
121
- utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerDropdown(), 'exist');
120
+ rulerPage.steps.verifyLengthOfRulerOptions(lengthOfRuler[0]);
121
+ utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerOptions(), '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.verifyLengthOfRulerDropdownListOptions(lengthOfRuler);
137
+ rulerPage.steps.verifyLengthOfRulerOptions(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 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",
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
- add: {
84
- title: 'Addition',
85
- textElement: null,
86
- ariaLabel: 'Plus 6',
87
- displayText: '+'
88
- },
89
- subtract: {
90
- title: 'Subtraction',
83
+ divide: {
84
+ title: 'Division',
91
85
  textElement: null,
92
- ariaLabel: 'Minus',
93
- displayText: ''
86
+ ariaLabel: 'Division',
87
+ displayText: '÷'
94
88
  },
95
89
  multiply: {
96
90
  title: 'Multiply',
@@ -98,11 +92,17 @@ export const equationEditorCategoriesAndSymbols = {
98
92
  ariaLabel: 'Multiply',
99
93
  displayText: '×'
100
94
  },
101
- divide: {
102
- title: 'Division',
95
+ subtract: {
96
+ title: 'Subtraction',
103
97
  textElement: null,
104
- ariaLabel: 'Division',
105
- displayText: '÷'
98
+ ariaLabel: 'Minus',
99
+ displayText: ''
100
+ },
101
+ add: {
102
+ title: 'Addition',
103
+ textElement: null,
104
+ ariaLabel: 'Plus 6',
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
- clear: {
126
- title: 'Clear',
127
- textElement: null,
128
- ariaLabel: 'Clear',
129
- displayText: null
130
- },
131
125
  clearAll: {
132
126
  title: 'Clear all',
133
127
  textElement: null,
134
128
  ariaLabel: 'ClearAll',
135
129
  displayText: null
130
+ },
131
+ clear: {
132
+ title: 'Clear',
133
+ textElement: null,
134
+ ariaLabel: 'Clear',
135
+ displayText: null
136
136
  }
137
137
  }
138
138
  },
@@ -135,7 +135,9 @@
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)"
138
+ "cellIcon": "rgb(186, 201, 255)",
139
+ "outerBorder": "rgb(186, 201, 255)",
140
+ "playbackTime": "rgb(0, 0, 124)"
139
141
  },
140
142
  "fontSize": {
141
143
  "extraSmall": "10px",
@@ -161,27 +163,25 @@
161
163
  "hoverBackground": "rgba(82, 0, 255, 0.2)",
162
164
  "hoverBorder": "rgba(82, 0, 255, 0.4)"
163
165
  },
164
- "darkGreen":{
165
- "background": "rgb(186, 201, 255)",
166
- "hoverBackground": "rgba(186, 201, 255, 0.4)",
167
- "hoverBorder": "rgb(107, 139, 255)"
166
+ "aqua":{
167
+ "background": "rgb(0, 112, 128)",
168
+ "hoverBackground": "rgba(0, 112, 128, 0.2)",
169
+ "hoverBorder": "rgba(0, 112, 128, 0.4)"
168
170
  },
169
171
  "brown":{
170
- "background": "rgb(128, 239, 255)",
171
- "hoverBackground": "rgba(128, 239, 255, 0.4)",
172
- "hoverBorder": "rgb(0, 156, 179)"
172
+ "background": "rgb(128, 102, 69)",
173
+ "hoverBackground": "rgba(128, 102, 69, 0.2)",
174
+ "hoverBorder": "rgba(128, 102, 69, 0.4)"
173
175
  },
174
176
  "grey":{
175
- "background": "rgb(255, 238, 215)",
176
- "hoverBackground": "rgba(255, 238, 215, 0.4)",
177
- "hoverBorder": "rgb(153, 134, 67)"
177
+ "background": "rgb(102, 102, 102)",
178
+ "hoverBackground": "rgba(102, 102, 102, 0.2)",
179
+ "hoverBorder": "rgba(102, 102, 102, 0.4)"
178
180
  },
179
181
  "black":{
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)"
182
+ "background": "rgb(0, 0, 0)",
183
+ "hoverBackground": "rgba(0, 0, 0, 0.2)",
184
+ "hoverBorder": "rgba(0, 0, 0, 0.4)"
185
185
  }
186
186
  }
187
187
  }