itemengine-cypress-automation 1.0.198 → 1.0.199

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/AudioPlayerNew/allSupportedFileTypes.js +3 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +348 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +346 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +401 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingPenaltyScoring.js +53 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +251 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +251 -0
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
  10. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  11. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +367 -0
  12. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +3 -3
  13. package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +134 -0
  14. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +88 -0
  15. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +3 -3
  17. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
  18. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -0
  19. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
  20. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +3 -3
  21. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +1 -1
  22. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +5 -5
  23. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  24. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  25. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  26. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
  27. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +4 -4
  28. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
  29. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +4 -4
  30. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +4 -4
  31. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +4 -4
  32. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
  33. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -16
  34. package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
  35. package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +223 -0
  36. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +110 -0
  37. package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +199 -0
  38. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +375 -0
  39. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +382 -0
  40. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +422 -0
  41. package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +159 -0
  42. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +233 -0
  43. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +380 -0
  44. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +293 -0
  45. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +382 -0
  46. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +184 -0
  47. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +76 -0
  48. package/cypress/pages/chartsBarPage.js +23 -15
  49. package/cypress/pages/chartsDotPlotPage.js +130 -7
  50. package/cypress/pages/chartsLinePage.js +11 -11
  51. package/cypress/pages/compassPage.js +57 -0
  52. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  53. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  54. package/cypress/pages/components/barAndLineChartComponent.js +7 -7
  55. package/cypress/pages/components/chartsCommonComponent.js +55 -7
  56. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  57. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  58. package/cypress/pages/components/questionInputFieldComponent.js +2 -2
  59. package/cypress/pages/feedbackScalePage.js +3 -1
  60. package/cypress/pages/graphingPage.js +1 -1
  61. package/cypress/pages/imageHighlightPage.js +4 -434
  62. package/cypress/pages/index.js +2 -1
  63. package/cypress/pages/listOrderingPage.js +9 -9
  64. package/cypress/pages/textEntryMathPage.js +16 -16
  65. package/package.json +1 -1
@@ -16,15 +16,15 @@ const selectors = {
16
16
  ...autoScoredSpecifyCorrectAnswerSection,
17
17
  ...enableOuterBorderComponent,
18
18
  //Specify correct answer section
19
- optionSpecifyCorrectAnswerSection: () => cy.get('.list-ordering-set-correct-answer .draggable-item-wrapper[role="button"]'),
19
+ optionSpecifyCorrectAnswerSection: () => cy.get('.list-ordering-set-correct-answer [class*="AnswerWrapper"][role="button"]'),
20
20
  optionWrapperSpecifyCorrectAnswerSection: () => cy.get('[class*="ListOrderingResponsestyles__DroppableWrapper"]'),
21
21
  partialDifferentWeightsPointsLabel: () => cy.get('.partial-points-per-response-label'),
22
22
  pointsPerResponseValue: () => cy.get('.alternate-points-points-per-value-span'),
23
23
  draggableOptionDragIcon: () => cy.get('.drag-indicator-icon'),
24
24
  //Preview Tab
25
- optionPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .draggable-item-wrapper[role="button"]'),
25
+ optionPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="AnswerWrapper"][role="button"]'),
26
26
  optionWrapperPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .orderlist-option-wrapper'),
27
- correctAnswersLabel: () => cy.get('[class*="CorrectAnswerstyles__CorrectAnswerLabel"]'),
27
+ correctAnswersLabel: () => cy.get('[class*="question-preview-wrapper"] [class*="__CorrectAnswerLabel"]'),
28
28
  correctAnswerSectionAnswerWrapper: () => cy.get('[class*="CorrectAnswers"] [class*="__OptionsWrapper"]'),
29
29
  correctAnswerSectionWrapper: () => cy.get('[class*="ListOrderingResponsestyles__CorrectAnswers"]'),
30
30
  correctAnswerSectionAnswerText: () => cy.get('.question-text-wrapper'),
@@ -163,7 +163,7 @@ const steps = {
163
163
  * @description this function verifies options text content
164
164
  */
165
165
  verifyTextContentOfOptionInPreviewTab: (optionsText, index) => {
166
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionPreviewTab(), index), optionsText);
166
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionPreviewTab(), index), optionsText);
167
167
  },
168
168
 
169
169
  /**
@@ -171,7 +171,7 @@ const steps = {
171
171
  * @description this function verifies options text content
172
172
  */
173
173
  verifyTextContentOfOptionInSpecifyCorrectAnswerSection: (optionsText, index) => {
174
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionSpecifyCorrectAnswerSection(), index), optionsText);
174
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionSpecifyCorrectAnswerSection(), index), optionsText);
175
175
  },
176
176
 
177
177
  /**
@@ -281,7 +281,7 @@ const steps = {
281
281
  */
282
282
  verifyOptionsOrderInSpecifyCorrectAnswerSection: (optionsTextArray) => {
283
283
  optionsTextArray.forEach((option, index) => {
284
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionSpecifyCorrectAnswerSection(), index), option);
284
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionSpecifyCorrectAnswerSection(), index), option);
285
285
  });
286
286
  },
287
287
 
@@ -291,7 +291,7 @@ const steps = {
291
291
  */
292
292
  verifyOptionsOrderInPreviewTab: (optionsTextArray) => {
293
293
  optionsTextArray.forEach((option, index) => {
294
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionPreviewTab(), index), option);
294
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionPreviewTab(), index), option);
295
295
  });
296
296
  },
297
297
 
@@ -577,7 +577,7 @@ const steps = {
577
577
  * @description this function verifies options text content
578
578
  */
579
579
  verifyTextContentOfOptionDropdownLayoutInGradingView: (optionsText, index) => {
580
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.dropdownOptionWrapperGradingView(), index), optionsText);
580
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.dropdownOptionWrapperGradingView(), index), optionsText);
581
581
  },
582
582
 
583
583
  verifyCorrectOptionIconsDropdownLayoutCorrectAnswersSectionNotExists: () => {
@@ -612,7 +612,7 @@ const steps = {
612
612
  });
613
613
  });
614
614
  positionArray.forEach((position, dropdownIndex) => {
615
- utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.positionDropdownCorrectAnswerSection(), dropdownIndex), position);
615
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownCorrectAnswerSection(), dropdownIndex), position);
616
616
  });
617
617
  },
618
618
 
@@ -67,9 +67,9 @@ const selectors = {
67
67
  decimalPlacesToBeComparedInputField: () => cy.get('input[id*="dec-places-label"]'),
68
68
  toleranceLabel: () => cy.get('label[class*="CustomSettingsstyles__TextFieldLabel"]').eq(1),
69
69
  toleranceInputField: () => cy.get('input[id*="tolerance-label"]'),
70
- typeOfExpressionLabel: () => cy.get('#Type-dropdown-label'),
71
- typeOfExpressionDropdown: () => cy.get('#Type-select'),
72
- typeOfExpressionDropdownOption: () => cy.get('[aria-labelledby*="Type-dropdown-label"] li'),
70
+ typeOfExpressionLabel: () => cy.get('#Type-of-expression-dropdown-label'),
71
+ typeOfExpressionDropdown: () => cy.get('#Type-of-expression-select'),
72
+ typeOfExpressionDropdownOption: () => cy.get('[aria-labelledby*="Type-of-expression-dropdown-label"] li'),
73
73
  syntaxLabel: () => cy.get('#Syntax-dropdown-label'),
74
74
  syntaxDropdown: () => cy.get('#Syntax-select'),
75
75
  syntaxDropdownOption: (ariaLabel) => {
@@ -864,8 +864,8 @@ const tests = {
864
864
  });
865
865
 
866
866
  it('When user adds response tokens in the question section they should be displayed in the \'Specify correct answer\' section in collapsed state', () => {
867
- textEntryMathPage.steps.addResponseToken();
868
- textEntryMathPage.steps.addResponseToken();
867
+ textEntryMathPage.steps.addResponseArea();
868
+ textEntryMathPage.steps.addResponseArea();
869
869
  utilities.verifyElementCount(textEntryMathPage.responseAccordion(), 2);
870
870
  textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
871
871
  textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
@@ -874,15 +874,6 @@ const tests = {
874
874
  });
875
875
  }
876
876
 
877
- it('User should be able to expand and collapse the accordions', () => {
878
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
879
- textEntryMathPage.steps.verifyResponseAccordionIsExpanded(0);
880
- textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
881
- textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
882
- textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
883
- textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
884
- });
885
-
886
877
  it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
887
878
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
888
879
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
@@ -916,6 +907,15 @@ const tests = {
916
907
  it(`Accessibility of ${accordionName} accordion contents`, { tags: 'a11y' }, () => {
917
908
  cy.checkAccessibility(utilities.getNthElement(textEntryMathPage.responseAccordion(), 0).parents('[aria-label="Specify correct answer section"]'));
918
909
  });
910
+
911
+ it('User should be able to expand and collapse the accordions', () => {
912
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
913
+ textEntryMathPage.steps.verifyResponseAccordionIsExpanded(0);
914
+ textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
915
+ textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
916
+ textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
917
+ textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
918
+ });
919
919
  },
920
920
 
921
921
  verifyContentsOfSpecifyCorrectAnswerSection: () => {
@@ -924,8 +924,8 @@ const tests = {
924
924
  });
925
925
 
926
926
  it('When user adds response tokens in question input field, then response accordions should be displayed in collapsed state in the \'Specify correct answer section\' with appropriate numeration', () => {
927
- textEntryMathPage.steps.addResponseToken();
928
- textEntryMathPage.steps.addResponseToken();
927
+ textEntryMathPage.steps.addResponseArea();
928
+ textEntryMathPage.steps.addResponseArea();
929
929
  utilities.verifyElementCount(textEntryMathPage.responseAccordion(), 2);
930
930
  textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
931
931
  textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {