itemengine-cypress-automation 1.0.94 → 1.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -0
  2. package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +1 -0
  3. package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -0
  4. package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -0
  5. package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -0
  6. package/cypress/e2e/ILC/DesmosGraphing/editTabBasic.js +1 -0
  7. package/cypress/e2e/ILC/DesmosGraphing/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
  8. package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +1 -0
  9. package/cypress/e2e/ILC/DesmosGraphing/studentViewSettings.js +3 -2
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +13 -13
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +0 -3
  12. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +21 -21
  13. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -3
  14. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -7
  15. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +3 -3
  16. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +9 -6
  17. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
  18. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
  19. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.js +24 -43
  21. package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -0
  22. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -6
  23. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +1 -1
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +5 -2
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -1
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -1
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +4 -1
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +1 -1
  35. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +2 -0
  36. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +2 -0
  37. package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +1 -1
  38. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +12 -7
  39. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +8 -9
  40. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
  41. package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +1 -1
  42. package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -1
  43. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +6 -7
  44. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -2
  45. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +7 -7
  46. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
  47. package/cypress/pages/components/additionalSettingsPanel.js +2 -2
  48. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  49. package/cypress/pages/components/createCustomCategoryFlyout.js +1 -1
  50. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  51. package/cypress/pages/components/essayResponseCommonComponents.js +5 -2
  52. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  53. package/cypress/pages/components/measuringToolComponent.js +2 -1
  54. package/cypress/pages/desmosGraphingPage.js +3 -3
  55. package/cypress/pages/desmosToolPage.js +8 -6
  56. package/cypress/pages/dragAndDropIntoCategoriesPage.js +16 -9
  57. package/cypress/pages/drawingResponsePage.js +21 -38
  58. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +9 -10
  59. package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -2
  60. package/cypress/pages/multipleSelectionPage.js +1 -0
  61. package/cypress/pages/protractorPage.js +3 -4
  62. package/cypress/pages/rulerPage.js +9 -5
  63. package/cypress/pages/singleSelectionPage.js +5 -1
  64. package/package.json +1 -1
  65. package/scripts/sorry-cypress.mjs +1 -1
@@ -26,7 +26,6 @@ const selectors = {
26
26
  allowStudentToResizeProtractorCheckbox: () => cy.get('[data-ngie-testid="allow-student-to-resize-protractor-checkbox"] input'),
27
27
  allowStudentToResizeProtractorLabel: () => cy.get('[data-ngie-testid="allow-student-to-resize-protractor-checkbox"] .MuiFormControlLabel-label'),
28
28
  alternativeTextLabel: () => cy.get('.text-label'),
29
- protractorColorLabel: () => cy.get('[class*="Protractorstyle__ProtractorColorWrapper"] [class*="Protractorstyle__PropertyLabel"]'),
30
29
  protractorVisibilityLabel: () => cy.get('[class*="Protractorstyle__PropertyVisibilityLabel"]'),
31
30
  displayPointerForAngleMeasurementLabel: () => cy.get('[data-ngie-testid="display-pointer-for-angle-measurement-checkbox"] .MuiFormControlLabel-label'),
32
31
  displayPointerForAngleMeasurementCheckbox: () => cy.get('[data-ngie-testid="display-pointer-for-angle-measurement-checkbox"] input'),
@@ -36,7 +35,7 @@ const selectors = {
36
35
  enlargeProtractorIconInPreviewTab: () => cy.get('[class*="ProtractorComponentstyles__ControlBtn"] #Resize_to_large'),
37
36
  reduceProtractorIconInPreviewTab: () => cy.get('[class*="ProtractorComponentstyles__ControlBtn"] #Resize_to_small'),
38
37
  protractorVisibilityButtonPreviewTab: () => cy.get('.protractor-button:visible'),
39
- protractorVisibleImagePreviewTab: () => cy.get('.protractor-button #eye'),
38
+ protractorVisibleImagePreviewTab: () => cy.get('.protractor-button g'),
40
39
  protractorHideImagePreviewTab: () => cy.get('.protractor-button #Hide_cell'),
41
40
  pointerForAngleMeasurementInPreviewTab: () => cy.get('.icon-pointer'),
42
41
  showHideButtonForAngleMeasurementPointerInPreviewTab: () => cy.get('[aria-label*=pointer][class*="ProtractorComponentstyles__ControlBtn"]'),
@@ -184,7 +183,7 @@ const steps = {
184
183
  },
185
184
 
186
185
  verifyProtractorVisibleInPreviewTab: () => {
187
- utilities.verifyElementVisibilityState(protractorPage.protractorInPreviewTab(), 'visible');
186
+ utilities.verifyElementVisibilityState(protractorPage.protractorInPreviewTab(), 'exist');
188
187
  },
189
188
 
190
189
  verifyProtractorNotExistInPreviewTab: () => {
@@ -204,7 +203,7 @@ const steps = {
204
203
  }
205
204
  },
206
205
 
207
- /**
206
+ /**
208
207
  * @param {("Small"|"Large")} size indicates size of protractor
209
208
  * @description function verifies size of protractor
210
209
  */
@@ -23,7 +23,6 @@ const selectors = {
23
23
  return cy.get('[aria-labelledby*="Rotation-dropdown-label"][aria-labelledby*="dropdown-label"] li[role="option"]')
24
24
  }
25
25
  },
26
- rulerColorLabel: () => cy.get('[class*="ColorPalletestyles__ColorPalleteLabel"]'),
27
26
  rulerVisibilityLabel: () => cy.get('[class*="Rulerstyles__VisibilityLabelWrapper"]'),
28
27
  unitOfMeasurementLabel: () => cy.get('#Unit-of-measurement-dropdown-label'),
29
28
  unitOfMeasurementDropdown: () => cy.get('#Unit-of-measurement-select'),
@@ -73,8 +72,8 @@ const selectors = {
73
72
  flipRulerButton: () => cy.get('.flip-button'),
74
73
  rotationButtonWithDegreeInPreviewTab: () => cy.get('.icon-rotate-with-angle'),
75
74
  rotationButtonDegreeText: () => cy.get('.ruler-rotation .moveable-rotation-control .angle-measurement'),
76
- rulerVisibilityButtonPreviewTab: () => cy.get('.ngie-icon-with-label-btn:visible'),
77
- rulerVisibleImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn #eye'),
75
+ rulerVisibilityButtonPreviewTab: () => cy.get('.ruler-button:visible'),
76
+ rulerVisibleImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn g'),
78
77
  rulerHideImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn #Hide_cell'),
79
78
  previewWrapper: () => cy.get('[class*="TabsComponentstyles__PreviewWrapper"]')
80
79
  }
@@ -297,7 +296,7 @@ const steps = {
297
296
  const fillColor = () => {
298
297
  switch (colorIndex) {
299
298
  case 0:
300
- return 'rgba(255, 255, 255, 1)';
299
+ return 'rgb(255, 255, 255)';
301
300
  case 1:
302
301
  return 'rgb(186, 201, 255)';
303
302
  case 2:
@@ -404,7 +403,12 @@ const steps = {
404
403
  },
405
404
 
406
405
  verifyRulerVisible: () => {
407
- utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
406
+ utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'exist');
407
+ },
408
+
409
+ verifyRulerUploadedImageNotExistPreviewTab: () => {
410
+ rulerPage.rulerUploadedImagePreviewTab()
411
+ .should('have.attr', 'src', '');
408
412
  }
409
413
  }
410
414
 
@@ -142,7 +142,11 @@ const steps = {
142
142
  singleSelectionPage.optionRadioButtonPreviewTab()
143
143
  .eq(optionIndex)
144
144
  .click()
145
- .should('be.checked');
145
+ .then(() => {
146
+ singleSelectionPage.optionRadioButtonPreviewTab()
147
+ .eq(optionIndex)
148
+ .should('be.checked');
149
+ });
146
150
  },
147
151
 
148
152
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -82,6 +82,6 @@ export function runSorryCypressSpinnaker() {
82
82
  startTime = process.env.START_TIME;
83
83
  ciBuildId = setCiBuildId("spinnaker", startTime);
84
84
  const envArgs = setCommandLineEnvArgs()
85
- let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.js"`;
85
+ let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.smoke.js"`;
86
86
  execSync(command, { stdio: "inherit" });
87
87
  }