itemengine-cypress-automation 1.0.226 → 1.0.228-updatedPackage-8a5fd6c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +3 -3
  2. package/cypress/e2e/ILC/ChartsLine/Scoring/addAndDeletePointAllOrNothingScoring.js +2 -2
  3. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -2
  4. package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +2 -3
  5. package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +10 -10
  6. package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +7 -6
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +2 -2
  9. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +1 -1
  10. package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +2 -3
  11. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +0 -2
  12. package/cypress/e2e/ILC/ImageHighlight/toolFunctionalityPreviewTab.js +1 -2
  13. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +34 -34
  14. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +46 -46
  15. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +46 -46
  16. package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +7 -2
  17. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +4 -2
  18. package/cypress/e2e/ILC/ToolAudioPlayerNew/allSupportedFileTypes.js +2 -4
  19. package/cypress/e2e/ILC/ToolAudioPlayerNew/compactAudioPlayerStyle.js +1 -1
  20. package/cypress/e2e/ILC/ToolAudioPlayerNew/customizePlayerLayoutSettings.js +2 -2
  21. package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -2
  22. package/cypress/e2e/ILC/ToolAudioPlayerNew/studentViewSettings.js +2 -2
  23. package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  24. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -4
  25. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  26. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  27. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +16 -22
  28. package/cypress/pages/audioPlayerPage.js +0 -5
  29. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  30. package/cypress/pages/components/colorPopupComponent.js +0 -1
  31. package/cypress/pages/components/layoutSectionComponent.js +15 -3
  32. package/cypress/pages/components/numberLineCommonComponent.js +30 -6
  33. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  34. package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -18
  35. package/cypress/pages/essayResponsePage.js +8 -10
  36. package/cypress/pages/gridFillPage.js +1 -4
  37. package/cypress/pages/itemPreviewSettingsPage.js +1 -1
  38. package/package.json +2 -2
@@ -283,10 +283,10 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
283
283
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
284
284
  chartsDotPlotPage.steps.switchToGradingView();
285
285
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
286
- chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
286
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
287
287
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
288
- chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
289
- chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
288
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
289
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
290
290
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
291
291
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
292
292
  chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
@@ -38,8 +38,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
38
38
  chartsDotPlotPage.steps.switchToPreviewTab();
39
39
  });
40
40
 
41
- //Need to remove skip once https://redmine.zeuslearning.com/issues/577535 is resolved
42
- it.skip('When the user selects \'Grading\' view without attempting the question, locked bar should not have icon, incorrect dot columns should have incorrect icons, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the alternate accordion', () => {
41
+ //Need to remove skip once https://redmine.zeuslearning.com/issues/577535 is resolved
42
+ it.skip('When the user selects \'Grading\' view without attempting the question, locked bar should not have icon, incorrect dot columns should have incorrect icons, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the alternate accordion', () => {
43
43
  chartsDotPlotPage.steps.switchToGradingView();
44
44
  //preview chart
45
45
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -74,7 +74,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
74
74
  chartsDotPlotPage.steps.resetQuestionPreview();
75
75
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
76
76
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
77
- chartsDotPlotPage.steps.verifyPreviewScore(23, 30);
77
+ chartsDotPlotPage.steps.verifyPreviewScore(27, 30);
78
78
  chartsDotPlotPage.steps.switchToGradingView();
79
79
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
80
80
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
@@ -351,7 +351,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
351
351
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
352
352
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
353
353
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
354
- chartsDotPlotPage.steps.verifyPreviewScore(8.4, 42);
354
+ chartsDotPlotPage.steps.verifyPreviewScore(14, 42);
355
355
  chartsDotPlotPage.steps.switchToGradingView();
356
356
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
357
357
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
@@ -2,12 +2,6 @@ export const equationEditorCategoriesAndSymbols = {
2
2
  numPad: {
3
3
  displayName: 'Numpad',
4
4
  symbols: {
5
- zero: {
6
- title: 'Zero',
7
- textElement: '0',
8
- ariaLabel: 'Zero 1 of 11',
9
- displayText: '0'
10
- },
11
5
  one: {
12
6
  title: 'One',
13
7
  textElement: '1',
@@ -62,17 +56,17 @@ export const equationEditorCategoriesAndSymbols = {
62
56
  ariaLabel: 'Nine',
63
57
  displayText: '9'
64
58
  },
65
- questionmark: {
66
- title: 'Question Mark',
67
- textElement: null,
68
- ariaLabel: 'QuestionMark 11 of 11',
69
- displayText: '?'
59
+ zero: {
60
+ title: 'Zero',
61
+ textElement: '0',
62
+ ariaLabel: 'Zero',
63
+ displayText: '0'
70
64
  },
71
- dot: {
72
- title: 'Decimal',
65
+ percent: {
66
+ title: 'Percentage',
73
67
  textElement: null,
74
- ariaLabel: 'Decimal 1 of 11',
75
- displayText: '.'
68
+ ariaLabel: 'Percentage',
69
+ displayText: '%'
76
70
  },
77
71
  comma: {
78
72
  title: 'Comma',
@@ -131,7 +125,7 @@ export const equationEditorCategoriesAndSymbols = {
131
125
  clear: {
132
126
  title: 'Clear',
133
127
  textElement: null,
134
- ariaLabel: 'Clear 11 of 11',
128
+ ariaLabel: 'Clear',
135
129
  displayText: null
136
130
  }
137
131
  }
@@ -632,18 +626,18 @@ export const equationEditorCategoriesAndSymbols = {
632
626
  geo: {
633
627
  displayName: 'Geo',
634
628
  symbols: {
635
- square: {
636
- title: 'Square',
637
- textElement: null,
638
- ariaLabel: 'SquareShape',
639
- displayText: '□'
640
- },
641
629
  circle: {
642
630
  title: 'Circle',
643
631
  textElement: null,
644
632
  ariaLabel: 'BigCircle',
645
633
  displayText: '◯'
646
634
  },
635
+ square: {
636
+ title: 'Square',
637
+ textElement: null,
638
+ ariaLabel: 'SquareShape',
639
+ displayText: '□'
640
+ },
647
641
  triangle: {
648
642
  title: 'Triangle',
649
643
  textElement: null,
@@ -1062,11 +1062,6 @@ const steps = {
1062
1062
 
1063
1063
  verifyUnmutedVolumeIconIsDisplayedInPreviewTab: () => {
1064
1064
  utilities.verifyElementVisibilityState(audioPlayerPage.unmutedVolumeIcon(), 'visible');
1065
- },
1066
-
1067
- realHoverOnPlaybackSpeedButton: () => {
1068
- audioPlayerPage.playbackSpeedButton()
1069
- .realHover();
1070
1065
  }
1071
1066
  }
1072
1067
 
@@ -11,7 +11,7 @@ const selectors = {
11
11
  fileNameLabel: () => cy.get('[class*="__LabelWrapper"][class*="Upload"]').eq(1),
12
12
  fileUploadSection: () => cy.get('.file-input-wrapper'),
13
13
  chooseFileButton: () => cy.get('.choose-file-button'),
14
- noFileChosenLabel: () => cy.get('[class*="styles__SelectedFile"] [aria-label="No file chosen"], [class*="UploadImagestyles__FileLabelWrapper"]'),
14
+ noFileChosenLabel: () => cy.get('[class*="styles__SelectedFile"] [aria-label="No file chosen"]'),
15
15
  uploadImageProgressBar: () => cy.get('[class*="ProgressBar"]'),
16
16
  uploadedFileNameLabel: () => cy.get('[class*="styles__SelectedFileWithIcon"][class*="Upload"]'),
17
17
  deleteImageIcon: () => cy.get('[aria-label*="Delete image"]'),
@@ -133,7 +133,6 @@ const steps = {
133
133
  cy.wait(2000);
134
134
  colorPopupComponent.opacityInputField()
135
135
  .type(value, { delay: 0 })
136
- cy.wait(2000);
137
136
  },
138
137
 
139
138
  clickOnCancelButton: () => {
@@ -517,15 +517,27 @@ const steps = {
517
517
  layoutSectionComponent.numberLineNumberLineSection()
518
518
  .parents('.ngie-jxgbox')
519
519
  .find('.number-line-tick-font')
520
- .its('length').then((length) => {
520
+ .its('length').then((len) => {
521
+ const length = len - 3;
522
+ let value = min + interval;
521
523
  for (let index = 0; index < length; index++) {
522
524
  layoutSectionComponent.numberLineNumberLineSection()
523
525
  .parents('.ngie-jxgbox')
524
526
  .find('.number-line-tick-font')
525
527
  .eq(index)
526
- .should('have.text', min);
527
- min += interval;
528
+ .should('have.text', value);
529
+ value += interval;
528
530
  }
531
+ layoutSectionComponent.numberLineNumberLineSection()
532
+ .parents('.ngie-jxgbox')
533
+ .find('.number-line-tick-font')
534
+ .eq(len - 2)
535
+ .should('have.text', min);
536
+ layoutSectionComponent.numberLineNumberLineSection()
537
+ .parents('.ngie-jxgbox')
538
+ .find('.number-line-tick-font')
539
+ .eq(len - 1)
540
+ .should('have.text', `${value + 1}`);
529
541
  });
530
542
  },
531
543
 
@@ -137,15 +137,27 @@ const steps = {
137
137
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
138
138
  .parents('.ngie-jxgbox')
139
139
  .find('.number-line-tick-font')
140
- .its('length').then((length) => {
140
+ .its('length').then((len) => {
141
+ const length = len - 3;
142
+ let value = min + interval;
141
143
  for (let index = 0; index < length; index++) {
142
144
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
143
145
  .parents('.ngie-jxgbox')
144
146
  .find('.number-line-tick-font')
145
147
  .eq(index)
146
- .should('have.text', min);
147
- min += interval;
148
+ .should('have.text', value);
149
+ value += interval;
148
150
  }
151
+ numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
152
+ .parents('.ngie-jxgbox')
153
+ .find('.number-line-tick-font')
154
+ .eq(len - 2)
155
+ .should('have.text', min);
156
+ numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
157
+ .parents('.ngie-jxgbox')
158
+ .find('.number-line-tick-font')
159
+ .eq(len - 1)
160
+ .should('have.text', `${value + 1}`);
149
161
  });
150
162
  },
151
163
 
@@ -233,15 +245,27 @@ const steps = {
233
245
  numberLineCommonComponent.numberLinePreviewTab()
234
246
  .parents('.ngie-jxgbox')
235
247
  .find('.number-line-tick-font')
236
- .its('length').then((length) => {
248
+ .its('length').then((len) => {
249
+ const length = len - 3;
250
+ let value = min + interval;
237
251
  for (let index = 0; index < length; index++) {
238
252
  numberLineCommonComponent.numberLinePreviewTab()
239
253
  .parents('.ngie-jxgbox')
240
254
  .find('.number-line-tick-font')
241
255
  .eq(index)
242
- .should('have.text', min);
243
- min += interval;
256
+ .should('have.text', value);
257
+ value += interval;
244
258
  }
259
+ numberLineCommonComponent.numberLinePreviewTab()
260
+ .parents('.ngie-jxgbox')
261
+ .find('.number-line-tick-font')
262
+ .eq(len - 2)
263
+ .should('have.text', min);
264
+ numberLineCommonComponent.numberLinePreviewTab()
265
+ .parents('.ngie-jxgbox')
266
+ .find('.number-line-tick-font')
267
+ .eq(len - 1)
268
+ .should('have.text', `${value + 1}`);
245
269
  });
246
270
  },
247
271
 
@@ -41,7 +41,7 @@ const steps = {
41
41
  scoringSectionBaseEditTab.pointsInputField()
42
42
  .clear();
43
43
  scoringSectionBaseEditTab.pointsInputField()
44
- .type(`${points}`);
44
+ .type(`${points}`, { delay: 500 });
45
45
  cy.wait(2000);
46
46
  scoringSectionBaseEditTab.pointsInputField()
47
47
  .should('have.value', points);
@@ -2247,24 +2247,6 @@ const steps = {
2247
2247
  });
2248
2248
  });
2249
2249
  },
2250
-
2251
- /**
2252
- * @param {number} points - The points to be allotted.
2253
- * @description - Allots points in the scoring section.
2254
- */
2255
- allotPoints: (points) => {
2256
- scoringSectionBaseEditTab.pointsInputField()
2257
- .clear();
2258
- scoringSectionBaseEditTab.pointsInputField()
2259
- .type(`${points}`, { delay: 500 });
2260
- cy.wait(2000);
2261
- scoringSectionBaseEditTab.pointsInputField()
2262
- .should('have.value', points);
2263
- scoringSectionBaseEditTab.pointsInputField()
2264
- .click()
2265
- scoringSectionBaseEditTab.pointsInputField()
2266
- .blur();
2267
- },
2268
2250
  }
2269
2251
 
2270
2252
  const tests = {
@@ -1224,16 +1224,14 @@ const tests = {
1224
1224
  });
1225
1225
  });
1226
1226
  equationEditorFlyout.tests.verifyCSSAnda11yOfEquationEditorInputField(categoryName);
1227
- //Uncomment once https://redmine.zeuslearning.com/issues/525213 is resolved
1228
-
1229
- // if (categoryName === 'setNotation') {
1230
- // essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('∈∉∋∌⊂⊃⊆⊇⊄⊅∅∪∩!,:\\/≺≻≼≽({[(])})', wordCount);
1231
- // } else if (categoryName === 'otherSymbols') {
1232
- // essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount(')ℝ|∝•ababc∀ι∞°/', wordCount);
1233
- // }
1234
- // else {
1235
- // essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount(mappedArr.toString().replaceAll(',', ''), wordCount)
1236
- // }
1227
+ if (categoryName === 'setNotation') {
1228
+ essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('∈∉∋∌⊂⊃⊆⊇⊄⊅∅∪∩!,:\\/≺≻≼≽({[(])})', wordCount);
1229
+ } else if (categoryName === 'otherSymbols') {
1230
+ essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount(')ℝ|∝•ababc∀ι∞°/', wordCount);
1231
+ }
1232
+ else {
1233
+ essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount(mappedArr.toString().replaceAll(',', ''), wordCount)
1234
+ }
1237
1235
  }
1238
1236
  }
1239
1237
 
@@ -192,7 +192,6 @@ const selectors = {
192
192
  correctAnswerLabel: () => cy.get('[class*="GridFillResponsestyles__CorrectAnswerLabel"]'),
193
193
  warningMessageContainer: () => cy.get('.disabled-wrapper-cls'),
194
194
  warningMessage: () => cy.get('.disabled-wrapper-cls [class*="DisabledTextWrapper"]'),
195
- resetButton: () => cy.get('[class*="reset-color-wrapper"] button'),
196
195
  }
197
196
 
198
197
  const steps = {
@@ -2090,7 +2089,6 @@ const steps = {
2090
2089
  'background-color': `${fillColor}`,
2091
2090
  'border-color': `${BorderColor}`
2092
2091
  });
2093
- utilities.triggerMouseout(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 0));
2094
2092
  utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 14), {
2095
2093
  'background-color': `${fillColor}`,
2096
2094
  'border-color': `${BorderColor}`
@@ -2156,7 +2154,7 @@ const steps = {
2156
2154
  */
2157
2155
  verifyFilledStateCSSForGridInPreviewTab: (fillColor, BorderColor) => {
2158
2156
  gridFillPage.steps.selectCellPreviewTab(1, 1);
2159
- utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 6), {
2157
+ utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInCustomizeLayout(), 6), {
2160
2158
  'background-color': `${fillColor}`,
2161
2159
  'border-color': `${BorderColor}`
2162
2160
  });
@@ -2269,7 +2267,6 @@ const steps = {
2269
2267
  clickOnOkButton: () => {
2270
2268
  gridFillPage.okButton()
2271
2269
  .click();
2272
- cy.wait(1000);
2273
2270
  },
2274
2271
 
2275
2272
  selectImageRadioButton: () => {
@@ -274,7 +274,7 @@ const steps = {
274
274
  .should('be.checked');
275
275
  },
276
276
 
277
- verifySectionsNavigationAlignmentSectionIsDisabled: () => {
277
+ verifySectionsNavigationStyleSectionIsDisabled: () => {
278
278
  const sectionNavigationAlignmentOptionsLabel = [itemPreviewSettingsPage.leftAlignedLabel, itemPreviewSettingsPage.centerAlignedLabel, itemPreviewSettingsPage.rightAlignedLabel];
279
279
  const sectionNavigationAlignmentOptionsRadioButton = [itemPreviewSettingsPage.leftAlignedRadioButton, itemPreviewSettingsPage.centerAlignedRadioButton, itemPreviewSettingsPage.rightAlignedRadioButton];
280
280
  sectionNavigationAlignmentOptionsRadioButton.forEach((option) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.226",
3
+ "version": "1.0.228-updatedPackage-8a5fd6c.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,4 +35,4 @@
35
35
  "node-fetch": "^3.3.2",
36
36
  "react-uuid": "^2.0.0"
37
37
  }
38
- }
38
+ }