itemengine-cypress-automation 1.0.167-repoUpdate10April-1465c8c.0 → 1.0.169-uploadResponseMigration-83ab996.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +11 -22
  3. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +7 -18
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +6 -11
  5. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +1 -0
  6. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +36 -2
  7. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +34 -22
  8. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +24 -8
  9. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +25 -5
  10. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +114 -68
  11. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +111 -67
  12. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +123 -71
  13. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +63 -41
  14. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +25 -21
  15. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +85 -50
  16. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -68
  17. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +98 -54
  18. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +120 -72
  19. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
  20. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  21. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
  22. package/cypress/fixtures/theme/ilc.json +26 -14
  23. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
  24. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +0 -3
  25. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  26. package/cypress/pages/components/colorPopupComponent.js +2 -2
  27. package/cypress/pages/components/gridQuestionCommonComponent.js +2 -629
  28. package/cypress/pages/components/index.js +0 -3
  29. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  30. package/cypress/pages/components/measuringToolComponent.js +2 -2
  31. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  32. package/cypress/pages/components/setPointsPopupBase.js +4 -6
  33. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +3 -60
  34. package/cypress/pages/components/toolSettingsComponent.js +12 -80
  35. package/cypress/pages/dragAndDropIntoCategoriesPage.js +8 -0
  36. package/cypress/pages/feedbackScalePage.js +449 -591
  37. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +1 -3
  38. package/cypress/pages/graphingPage.js +145 -9
  39. package/cypress/pages/gridFillPage.js +120 -135
  40. package/cypress/pages/highlightPage.js +394 -0
  41. package/cypress/pages/index.js +2 -5
  42. package/cypress/pages/matchingPage.js +20 -78
  43. package/cypress/pages/multipleSelectionGridPage.js +1 -88
  44. package/cypress/pages/singleSelectionGridPage.js +0 -86
  45. package/cypress/support/migrationHelpers/extractLrnQuestionData.js +38 -1
  46. package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +1 -0
  47. package/cypress/support/migrationHelpers/migrationScript.js +4 -0
  48. package/cypress/support/migrationHelpers/verifyIeQuestionData.js +34 -2
  49. package/package.json +1 -1
  50. package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +0 -83
  51. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +0 -200
  52. package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +0 -56
  53. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -95
  54. package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +0 -71
  55. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +0 -72
  56. package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +0 -71
  57. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
  58. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
  59. package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +0 -161
  60. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +0 -308
  61. package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +0 -216
  62. package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +0 -336
  63. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +0 -570
  64. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +0 -214
  65. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -356
  66. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +0 -299
  67. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -355
  68. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +0 -309
  69. package/cypress/e2e/ILC/Matching/toolSettings.js +0 -72
  70. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +0 -1033
  71. package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +0 -28
  72. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -236
  73. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -239
  74. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -278
  75. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +0 -178
  76. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +0 -407
  77. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +0 -273
  78. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +0 -278
  79. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +0 -228
  80. package/cypress/e2e/ILC/NumberLine/additionalSettings.js +0 -120
  81. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -659
  82. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +0 -149
  83. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +0 -151
  84. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -171
  85. package/cypress/e2e/ILC/NumberLine/headerSection.js +0 -76
  86. package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -54
  87. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +0 -200
  88. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +0 -67
  89. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +0 -135
  90. package/cypress/e2e/ILC/NumberLine/toolSettings.js +0 -73
  91. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +0 -372
  92. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +0 -1014
  93. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -235
  94. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -235
  95. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -235
  96. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +0 -457
  97. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -342
  98. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -342
  99. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -342
  100. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +0 -155
  101. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -314
  102. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -275
  103. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -314
  104. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -290
  105. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +0 -142
  106. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +0 -137
  107. package/cypress/pages/brainingCampManipulativePage.js +0 -122
  108. package/cypress/pages/components/defaultToolDropdown.js +0 -77
  109. package/cypress/pages/components/resetPopupComponent.js +0 -74
  110. package/cypress/pages/components/toolsAndControlsComponent.js +0 -69
  111. package/cypress/pages/feedbackScalePage copy.js +0 -716
  112. package/cypress/pages/numberLinePage.js +0 -723
  113. package/cypress/pages/textSelectionPage.js +0 -582
@@ -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'];
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'];
@@ -18,7 +18,7 @@ describe('Create Item page: Tool settings', () => {
18
18
  describe('Tool settings: Contents', () => {
19
19
  abortEarlySetup();
20
20
  before(() => {
21
- multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
21
+ multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
22
22
  });
23
23
 
24
24
  it('By default \'Tool settings\' accordion should be collapsed and by clicking on the \'Tool settings\' accordion, user should be able to expand the accordion', () => {
@@ -87,7 +87,7 @@ describe('Create Item page: Tool settings', () => {
87
87
  describe('Tool settings: Ruler tool popup content', () => {
88
88
  abortEarlySetup();
89
89
  before(() => {
90
- multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
90
+ multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
91
91
  toolSettingsComponent.steps.expandToolSettingsAccordion();
92
92
  });
93
93
 
@@ -230,7 +230,7 @@ describe('Create Item page: Tool settings', () => {
230
230
  describe('Tool settings: Edit tool settings', () => {
231
231
  abortEarlySetup();
232
232
  before(() => {
233
- multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
233
+ multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
234
234
  toolSettingsComponent.steps.expandToolSettingsAccordion();
235
235
  });
236
236
 
@@ -132,10 +132,7 @@
132
132
  "gridCellHiddenStateBorder": "rgb(117, 117, 154)",
133
133
  "gridCellIcon": "rgb(41, 0, 128)",
134
134
  "gridBorder": "rgb(0, 0, 124)",
135
- "uploadedFileName": "rgb(0, 0, 124)",
136
- "feedbackHeart": "rgb(255, 56, 0)",
137
- "manipulativeOptionContainerBorder": "rgb(186, 201, 255)",
138
- "cellIcon": "rgb(186, 201, 255)"
135
+ "uploadedFileName": "rgb(0, 0, 124)"
139
136
  },
140
137
  "fontSize": {
141
138
  "extraSmall": "10px",
@@ -155,33 +152,48 @@
155
152
  "semibold": "600",
156
153
  "bold": "700"
157
154
  },
158
- "textSelectionColorLibrary": {
159
- "blue": {
160
- "background": "rgb(82, 0, 255)",
161
- "hoverBackground": "rgba(82, 0, 255, 0.2)",
162
- "hoverBorder": "rgba(82, 0, 255, 0.4)"
155
+ "highlightColorLibrary": [
156
+ {
157
+ "title": "aliceBlue",
158
+ "background": "rgb(245, 248, 255)",
159
+ "border": "rgb(82, 0, 255)",
160
+ "hoverBackground": "rgba(245, 248, 255, 0.4)",
161
+ "hoverBorder": "rgb(107, 139, 255)"
163
162
  },
164
- "darkGreen":{
163
+ {
164
+ "title": "purple",
165
165
  "background": "rgb(186, 201, 255)",
166
+ "border": "rgb(82, 0, 255)",
166
167
  "hoverBackground": "rgba(186, 201, 255, 0.4)",
167
168
  "hoverBorder": "rgb(107, 139, 255)"
168
169
  },
169
- "brown":{
170
+ {
171
+ "title": "lightBlue",
170
172
  "background": "rgb(128, 239, 255)",
173
+ "border": "rgb(0, 112, 128)",
171
174
  "hoverBackground": "rgba(128, 239, 255, 0.4)",
172
175
  "hoverBorder": "rgb(0, 156, 179)"
173
176
  },
174
- "grey":{
177
+ {
178
+ "title": "orange",
175
179
  "background": "rgb(255, 238, 215)",
180
+ "border": "rgb(128, 102, 69)",
176
181
  "hoverBackground": "rgba(255, 238, 215, 0.4)",
177
182
  "hoverBorder": "rgb(153, 134, 67)"
178
183
  },
179
- "black":{
184
+ {
180
185
  "title": "yellow",
181
186
  "background": "rgb(255, 238, 78)",
182
187
  "border": "rgb(64, 59, 20)",
183
188
  "hoverBackground": "rgba(255, 238, 78, 0.4)",
184
189
  "hoverBorder": "rgb(153, 141, 32)"
190
+ },
191
+ {
192
+ "title": "grey",
193
+ "background": "rgb(220, 223, 230)",
194
+ "border": "rgb(61, 62, 64)",
195
+ "hoverBackground": "rgba(220, 223, 230, 0.4)",
196
+ "hoverBorder": "rgb(122, 124, 128)"
185
197
  }
186
- }
198
+ ]
187
199
  }
@@ -31,7 +31,7 @@ const selectors = {
31
31
  totalPenaltyPointsInputField: () => cy.get('input[aria-label="total penalty points"]'),
32
32
  specifyPointsForEachIncorrectOptionRadioButton: () => cy.get('input[aria-label*="Specify points for each incorrect"]'),
33
33
  specifyPointsForEachIncorrectOptionRadioButtonLabel: () => cy.get('label[aria-label*="Specify points for each incorrect"]'),
34
- penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label*="Penalty points for each incorrect"]'),
34
+ penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label="penalty points for each incorrect option"]'),
35
35
  penaltyPointsDetailsSectionInputFieldLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__PointsLabel"]'),
36
36
  penaltyPointsDetailsSectionAllottedPointsLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__LabelFieldWrapper"]'),
37
37
  roundingLabel: () => cy.get('#rounding-dropdown-label'),
@@ -207,9 +207,6 @@ const tests = {
207
207
  case 'grid fill':
208
208
  helpText = 'You can set the correct answer by selecting the correct cell(s) in the grid.';
209
209
  break;
210
- case 'number line':
211
- helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
212
- break;
213
210
  default:
214
211
  throw new Error('Invalid question type');
215
212
  }
@@ -115,7 +115,7 @@ const tests = {
115
115
  'font-size': css.fontSize.normal,
116
116
  'font-weight': css.fontWeight.regular
117
117
  });
118
- utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-students-to-check-answer-checkbox"]').find('g').eq(1), {
118
+ utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-student-to-check-answer-checkbox"]').find('g').eq(1), {
119
119
  'fill': css.color.activeButtons
120
120
  });
121
121
  utilities.verifyCSS(autoScoredStudentViewSettings.maximumCheckAnswerAttemptsDropdownLabel(), {
@@ -14,8 +14,8 @@ const selectors = {
14
14
  hexLabel: () => cy.get('.hex-settings-wrapper .inline-text-property-label'),
15
15
  hexInputField: () => cy.get('.hex-settings-wrapper input'),
16
16
  setToNoColorButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
17
- cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').contains('Cancel'),
18
- okButton: () => cy.get('.compact-popup-action-button-wrapper button').contains('OK'),
17
+ cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
18
+ okButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(2),
19
19
  dialogBoxTitle: () => cy.get('#alert-dialog-title'),
20
20
  opacityGradientHue: () => cy.get('.react-colorful__last-control [class="react-colorful__interactive"]'),
21
21
  opacityGradientPicker: () => cy.get('.react-colorful__last-control .react-colorful__pointer-fill'),