itemengine-cypress-automation 1.0.157 → 1.0.158

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 (56) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +1 -1
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +49 -1
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -8
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +7 -7
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -1
  8. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +11 -8
  9. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +5 -5
  10. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -1
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +1 -1
  12. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +0 -5
  13. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +10 -10
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +0 -5
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
  18. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +3 -3
  19. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -4
  20. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +4 -4
  21. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +1 -0
  22. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +2 -2
  23. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  24. package/cypress/e2e/ILC/Matching/draggableOptions.js +53 -0
  25. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +302 -0
  26. package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettingsBasic.js +146 -0
  27. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +83 -0
  28. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +18 -22
  29. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -2
  30. package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettingsBasic.js +146 -0
  31. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +83 -0
  32. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -1
  33. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -1
  34. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  35. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +6 -0
  36. package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +1 -1
  37. package/cypress/pages/components/autoScoredScoringPreviewTab.js +6 -0
  38. package/cypress/pages/components/commonComponents.js +2 -1
  39. package/cypress/pages/components/createCustomCategoryFlyout.js +0 -1
  40. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -4
  41. package/cypress/pages/components/gridQuestionCommonComponent.js +29 -1
  42. package/cypress/pages/components/imageCanvasComponent.js +3 -3
  43. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  44. package/cypress/pages/dragAndDropIntoCategoriesPage.js +3 -4
  45. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +10 -0
  46. package/cypress/pages/graphingPage.js +4 -4
  47. package/cypress/pages/index.js +0 -3
  48. package/cypress/pages/matchingPage.js +166 -10
  49. package/cypress/pages/multipleSelectionGridPage.js +10 -2
  50. package/cypress/pages/rulerPage.js +12 -12
  51. package/cypress/pages/singleSelectionGridPage.js +10 -2
  52. package/cypress/pages/textEntryMathPage.js +2 -1
  53. package/package.json +1 -1
  54. package/cypress/pages/listMatchingPage.js +0 -1514
  55. package/cypress/pages/listMatchingScoring.js +0 -2547
  56. package/cypress/pages/passagePage.js +0 -436
@@ -16,16 +16,25 @@ const selectors = {
16
16
  ...draggableOptionContainer,
17
17
  //Edit tab
18
18
  promptInputField: () => cy.get('.edit-mcq-stems-wrapper [role="textbox"]'),
19
- promptInputFieldWrapper: () => cy.get('.edit-mcq-stems-wrapper [class*="SingleOptionstyle__EditorBlockWrapper"]'),
20
- optionInputField: () => cy.get('.edit-mcq-options-wrapper').eq(1).find('[data-rbd-draggable-id*="option-draggable"] [role="textbox"]'),
21
- optionWrapper: () => cy.get('.response-options-wrapper [data-rbd-draggable-id*="option-draggable"]'),
22
- optionNumeration: () => cy.get('.response-options-wrapper [class*="SingleOptionstyle__AdornmentDiv"]'),
19
+ promptInputFieldWrapper: () => cy.get('.edit-mcq-stems-wrapper .edit-mcq-option-wrapper'),
20
+ optionInputField: () => cy.get('.edit-mcq-options-wrapper [data-rbd-draggable-id*="option-draggable"] [role="textbox"]'),
21
+ promptNumeration: () => cy.get('[class*="SingleOptionstyle__AdornmentDiv"]'),
22
+ promptLabel: () => cy.get('.match-list-stem-label'),
23
+ promptHeaderLabel: () => cy.get('.prompt-header-container [class*="InlineTextFieldWithDebouncestyles__PropertyLabel"]'),
24
+ promptHeaderInputField: () => cy.get('.prompt-header-container input'),
25
+ promptHeaderSpecifyCorrectAnswerSection: () => cy.get('.MuiAccordion-region [class*="ClozeWithDragAndDropstyles__HeaderContainer"]').eq(0),
26
+ promptHeaderPreviewTab: () => cy.get('.preview-container [class*="ClozeWithDragAndDropstyles__HeaderContainer"]').eq(0),
27
+ dropzoneColumnHeaderLabel: () => cy.get('.response-header-container .text-label'),
28
+ dropzoneColumnHeaderInputField: () => cy.get('.response-header-container input'),
29
+ dropzoneColumnHeaderSpecifyCorrectAnswerSection: () => cy.get('.MuiAccordion-region [class*="ClozeWithDragAndDropstyles__HeaderContainer"]').eq(1),
30
+ dropzoneColumnHeaderPreviewTab: () => cy.get('.preview-container [class*="ClozeWithDragAndDropstyles__HeaderContainer"]').eq(1),
31
+ dropzoneColumnAndPromptHeaderWrapperSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-accordion [class*="ClozeWithDragAndDropstyles__ResponseHeaderWrapper"]'),
23
32
  //Specify correct answer section
24
33
  dropzoneSpecifyCorrectAnswerSection: () => cy.get('.authoring-droppable-hotspot-wrapper'),
25
34
  optionContainerOptionsSpecifyCorrectAnswerSection: () => cy.get('.draggable-selected-item'),
26
35
  optionsLabel: () => cy.get('.cloze-with-drag-and-drop-options-label'),
27
36
  addPromptButton: () => cy.get('.add-option-wrapper-cls button').contains('Add prompt'),
28
- deletePromptButton: () => cy.get('.edit-mcq-stems-wrapper [type="button"]'),
37
+ deletePromptButton: () => cy.get('[aria-label*="Delete prompt "]'),
29
38
  optionsLabel: () => cy.get('.cloze-with-drag-and-drop-options-label'),
30
39
  optionWrapper: () => cy.get('.response-options-wrapper [data-rbd-draggable-id*="option-draggable"]'),
31
40
  optionNumeration: () => cy.get('.response-options-wrapper [class*="SingleOptionstyle__AdornmentDiv"]'),
@@ -38,19 +47,20 @@ const selectors = {
38
47
 
39
48
  //Specify correct answer section
40
49
  dropzoneSpecifyCorrectAnswerSection: () => cy.get('.authoring-droppable-hotspot-wrapper'),
41
- promptSpecifyCorrectAnswerSection: () => cy.get('.stem-container [data-testid="question-instruction-element"]'),
50
+ promptSpecifyCorrectAnswerSection: () => cy.get('.stem-container [data-testid="question-instruction-element"]:visible'),
42
51
  dropzoneSpecifyCorrectAnswerSection: () => cy.get('.authoring-droppable-hotspot-wrapper'),
43
52
  optionContainerOptionsSpecifyCorrectAnswerSection: () => cy.get('.draggable-selected-item'),
44
53
 
45
54
  //Preview tab
46
- promptContainerPreviewTab: () => cy.get('.stem-container'),
55
+ promptContainerPreviewTab: () => cy.get('.stem-container:visible'),
47
56
  dropzonePreviewTab: () => cy.get('.cloze-with-drag-and-drop-preview [class*="MultipleDroppableHotspotstyle__DroppableHotspotWrapper"]'),
48
57
  dropzoneOptionPreviewTab: () => cy.get('[class*="MultipleDroppedItemstyles__FlexWrapper"]'),
49
58
  dropzoneNumeration: () => cy.get('[class*="NumerationDiv"]'),
50
59
  correctAnswersNumeration: () => cy.get('.answer-numeration-number-box'),
51
60
  correctAnswersOptions: () => cy.get('.match-list-drag-and-drop .question-text-wrapper'),
52
61
  correctAnswersOptionContainer: () => cy.get('.draggable-selected-option'),
53
- correctIncorrectAnswerLabel: () => cy.get('[class*="AnswerStatusText"]')
62
+ correctIncorrectAnswerLabel: () => cy.get('[class*="AnswerStatusText"]'),
63
+ dropzoneColumnAndPromptHeaderWrapperPreviewTab: () => cy.get('.edit-question-preview-wrapper [class*="ClozeWithDragAndDropstyles__ResponseHeaderWrapper"]')
54
64
  }
55
65
 
56
66
  const steps = {
@@ -88,6 +98,45 @@ const steps = {
88
98
  .click();
89
99
  },
90
100
 
101
+ /**
102
+ * @param {number} index of the prompt
103
+ * @description verify the enter prompt input field, drag handle, delete button and prompt numeration
104
+ */
105
+ verifyPromptContents: (index) => {
106
+ matchingPage.promptInputFieldWrapper()
107
+ .eq(index)
108
+ .within(() => {
109
+ utilities.verifyElementVisibilityState(commonComponents.dragHandleButton(), 'exist');
110
+ utilities.verifyElementVisibilityState(matchingPage.deletePromptButton(), 'visible');
111
+ matchingPage.promptNumeration()
112
+ .should('have.text', index + 1);
113
+ });
114
+ matchingPage.promptInputField()
115
+ .eq(index)
116
+ .should('have.attr', 'data-cke-editorplaceholder', 'Enter prompt');
117
+ },
118
+
119
+ /**
120
+ * @param {number} index of the prompt input field
121
+ * @description focus in and focus out of the prompt input field
122
+ */
123
+ focusInAndFocusOutOfPromptInputField: (index) => {
124
+ matchingPage.promptInputField()
125
+ .eq(index)
126
+ .click()
127
+ .blur();
128
+ },
129
+
130
+ verifyTooltipText: (element, text, index = 0) => {
131
+ element()
132
+ .eq(index)
133
+ .trigger('mouseover', { force: true });
134
+ utilities.verifyInnerText(commonComponents.tooltipText(), text);
135
+ element()
136
+ .eq(index)
137
+ .trigger('mouseout', { force: true });
138
+ },
139
+
91
140
  /**
92
141
  * Enters text into multiple prompt input fields.
93
142
  * @param {string[]} promptTextArray - Array of text to enter into the prompt input fields.
@@ -97,11 +146,21 @@ const steps = {
97
146
  matchingPage.promptInputField()
98
147
  .eq(index)
99
148
  .clear()
100
- .type(promptText)
149
+ .type(promptText, { delay: 500 })
101
150
  .should('have.text', promptText);
102
151
  });
103
152
  },
104
153
 
154
+ /**
155
+ * @param {number} index Index of prompt input field
156
+ * @description Clear input given to prompt input field
157
+ */
158
+ clearPromptInputField: (index) => {
159
+ matchingPage.promptInputField()
160
+ .eq(index)
161
+ .clear();
162
+ },
163
+
105
164
  /**
106
165
  * This function enters text in an option
107
166
  * @param {number} index of prompt
@@ -722,6 +781,102 @@ const steps = {
722
781
  }
723
782
  steps.enterTextInOptionInputField(optionArray);
724
783
  },
784
+
785
+ /**
786
+ * Verifies the prompt container content in the preview tab.
787
+ * @param {Object[]} optionsArray - Array of objects containing index and optionText.
788
+ * @param {number} optionsArray[].index - The index of the prompt container element.
789
+ * @param {string} optionsArray[].optionText - The expected text to verify against the prompt container element.
790
+ */
791
+ verifyPromptContainerPreviewTab: (optionsArray) => {
792
+ optionsArray.forEach(({ index, optionText }) => {
793
+ utilities.verifyInnerText(utilities.getNthElement(matchingPage.promptContainerPreviewTab(), index), optionText);
794
+ });
795
+ },
796
+
797
+ /**
798
+ * Enters text into the prompt header input field.
799
+ * @param {string} text - The text to enter into the prompt header input field.
800
+ */
801
+ enterTextInPromptHeaderInputField: (text) => {
802
+ matchingPage.promptHeaderInputField()
803
+ .clear()
804
+ .type(text)
805
+ .blur();
806
+ },
807
+
808
+ clearAndFocusOutOfPromptHeaderInputField: () => {
809
+ matchingPage.promptHeaderInputField()
810
+ .clear()
811
+ .blur()
812
+ },
813
+
814
+ /**
815
+ * Verifies the text in the prompt header input field.
816
+ * @param {string} text - The expected text to verify against the prompt header input field.
817
+ */
818
+ verifyTextInPromptHeaderInputField: (text) => {
819
+ matchingPage.promptHeaderInputField()
820
+ .should('have.value', text);
821
+ },
822
+
823
+ /**
824
+ * Verifies the prompt header text in the Specify Correct Answer section.
825
+ * @param {string} text - The expected text to verify against the prompt header.
826
+ */
827
+ verifyPromptHeaderTextSpecifyCorrectAnswerSection: (text) => {
828
+ utilities.verifyInnerText(matchingPage.promptHeaderSpecifyCorrectAnswerSection(), text);
829
+ },
830
+
831
+ /**
832
+ * Verifies the prompt header text in the Preview Tab.
833
+ * @param {string} text - The expected text to verify against the prompt header.
834
+ */
835
+ verifyPromptHeaderTextPreviewTab: (text) => {
836
+ utilities.verifyInnerText(matchingPage.promptHeaderPreviewTab(), text);
837
+ },
838
+
839
+ /**
840
+ * Enters text into the dropzone column header input field.
841
+ * @param {string} text - The text to enter into the dropzone column header input field.
842
+ */
843
+ enterTextInDropzoneColumnHeaderInputField: (text) => {
844
+ matchingPage.dropzoneColumnHeaderInputField()
845
+ .clear()
846
+ .type(text)
847
+ .blur();
848
+ },
849
+
850
+ clearAndFocusOutOfDropzoneColumnHeaderInputField: () => {
851
+ matchingPage.dropzoneColumnHeaderInputField()
852
+ .clear()
853
+ .blur()
854
+ },
855
+
856
+ /**
857
+ * Verifies the text in the dropzone column header input field.
858
+ * @param {string} text - The expected text to verify against the dropzone column header input field.
859
+ */
860
+ verifyTextInDropzoneColumnHeaderInputField: (text) => {
861
+ matchingPage.dropzoneColumnHeaderInputField()
862
+ .should('have.value', text);
863
+ },
864
+
865
+ /**
866
+ * Verifies the dropzone column header text in the Preview Tab.
867
+ * @param {string} text - The expected text to verify against the dropzone column header.
868
+ */
869
+ verifyDropzoneColumnHeaderTextPreviewTab: (text) => {
870
+ utilities.verifyInnerText(matchingPage.dropzoneColumnHeaderPreviewTab(), text);
871
+ },
872
+
873
+ /**
874
+ * Verifies the dropzone column header text in the Specify Correct Answer section.
875
+ * @param {string} text - The expected text to verify against the dropzone column header.
876
+ */
877
+ verifyDropzoneColumnHeaderTextSpecifyCorrectAnswerSection: (text) => {
878
+ utilities.verifyInnerText(matchingPage.dropzoneColumnHeaderSpecifyCorrectAnswerSection(), text);
879
+ }
725
880
  }
726
881
 
727
882
  const tests = {
@@ -734,6 +889,7 @@ const tests = {
734
889
  ...createQuestionBasePage.tests,
735
890
  ...commonComponents.tests,
736
891
  ...draggableOptionsSectionComponent.tests,
892
+ ...questionInstructionsComponent.tests,
737
893
 
738
894
  verifyContentsOfSpecifyCorrectAnswerSection: () => {
739
895
  it('When user selects a scoring type then in the \'Correct\' accordion, all the contents should be displayed', () => {
@@ -751,7 +907,7 @@ const tests = {
751
907
  });
752
908
  });
753
909
  },
754
-
910
+
755
911
  //Need to remove when https://redmine.zeuslearning.com/issues/566720 is resolved
756
912
  /**
757
913
  * Verifies the contents and styling of the 'Options' section.
@@ -1,5 +1,5 @@
1
1
  import utilities from "../support/helpers/utilities";
2
- import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType, studentViewSettingsLabelComponent, randomizeOptionsComponent, commonComponents } from "./components";
2
+ import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType, studentViewSettingsLabelComponent, randomizeOptionsComponent, commonComponents, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent } from "./components";
3
3
  const css = Cypress.env('css');
4
4
 
5
5
  const selectors = {
@@ -10,6 +10,8 @@ const selectors = {
10
10
  ...autoScoredScoringSectionMultiResponseType,
11
11
  ...autoScoredScoringPreviewTab,
12
12
  ...randomizeOptionsComponent,
13
+ ...commonComponents,
14
+ ...additionalSettingsPanel,
13
15
  }
14
16
 
15
17
  const steps = {
@@ -24,6 +26,8 @@ const steps = {
24
26
  ...autoScoredSpecifyCorrectAnswerSection.steps,
25
27
  ...autoScoredScoringSectionMultiResponseType.steps,
26
28
  ...randomizeOptionsComponent.steps,
29
+ ...commonComponents.steps,
30
+ ...additionalSettingsPanel.steps,
27
31
  /**
28
32
  * Modifies the property of an option cell in the grid for checkbox settings.
29
33
  * @param {Object} position - The position of the option cell.
@@ -120,6 +124,10 @@ const tests = {
120
124
  ...autoScoredStudentViewSettings.tests,
121
125
  ...studentViewSettingsLabelComponent.tests,
122
126
  ...randomizeOptionsComponent.tests,
127
+ ...createQuestionBasePage.tests,
128
+ ...commonComponents.tests,
129
+ ...additionalSettingsPanel.tests,
130
+ ...additionalSettingsAccessibilitySectionComponent.tests,
123
131
  /**
124
132
  * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
125
133
  * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
@@ -199,7 +207,7 @@ const tests = {
199
207
  it('Accessibility of \'Correct\' accordion contents', { tags: 'a11y' }, () => {
200
208
  cy.checkAccessibility(gridQuestionCommonComponent.tableCell().parents('.correct-answer-accordion'));
201
209
  });
202
- },
210
+ }
203
211
  }
204
212
 
205
213
  export const multipleSelectionGridPage = {
@@ -15,7 +15,7 @@ const selectors = {
15
15
  ...measuringToolComponent,
16
16
  ...opacityComponent,
17
17
  ...imageActionsComponent,
18
- alternativeTextLabel: () => cy.get('.alternative-text'),
18
+ alternativeTextLabel: () => cy.get('[class*="Rulerstyles__AlternativeTextWrapper"] .alternative-text'),
19
19
  rotationDropdownListOption: (ariaLabel = null) => {
20
20
  if (ariaLabel) {
21
21
  return cy.get(`[aria-labelledby*="Rotation-dropdown-label"][aria-labelledby*="dropdown-label"] li[role="option"][aria-label*="${ariaLabel}"]`)
@@ -34,8 +34,7 @@ const selectors = {
34
34
  }
35
35
  },
36
36
  lengthOfRulerLabel: () => cy.get('[class*="LenghtOfRulerWrapper"] .alternative-text'),
37
- lengthOfRulerDropdown: () => cy.get('#Length-of-ruler-select'),
38
- lengthOfRulerDropdownListOptions: (ariaLabel = null) => {
37
+ lengthOfRulerOptions: (ariaLabel = null) => {
39
38
  if (ariaLabel) {
40
39
  return cy.get(`[class*="LenghtOfRulerWrapper"] [type="button"][aria-label*="${ariaLabel}"]`)
41
40
  } else {
@@ -105,12 +104,12 @@ const steps = {
105
104
  },
106
105
 
107
106
  /**
108
- * @param {string[]} dropdownOptionsArray array containing options of dropdown list
107
+ * @param {string[]} optionsArray array containing options of dropdown list
109
108
  * @description this function is used to verify inner text of expanded dropdown list options
110
109
  */
111
- verifyLengthOfRulerDropdownListOptions: (dropdownOptionsArray) => {
112
- dropdownOptionsArray.forEach((option, count) => {
113
- rulerPage.lengthOfRulerDropdownListOptions()
110
+ verifyLengthOfRulerOptions: (optionsArray) => {
111
+ optionsArray.forEach((option, count) => {
112
+ rulerPage.lengthOfRulerOptions()
114
113
  .eq(count)
115
114
  .should('have.text', option);
116
115
  });
@@ -120,8 +119,8 @@ const steps = {
120
119
  * @param {string} option option to be selected from the dropdown list
121
120
  * @description function selects option from expanded dropdown list
122
121
  */
123
- selectOptionFromLengthOfRulerDropdown: (option) => {
124
- rulerPage.lengthOfRulerDropdownListOptions(option)
122
+ selectOptionFromLengthOfRulerOptions: (option) => {
123
+ rulerPage.lengthOfRulerOptions(option)
125
124
  .click();
126
125
  },
127
126
 
@@ -256,8 +255,9 @@ const steps = {
256
255
  * @param {string} unitOfMeasurement is the length of ruler
257
256
  * @description function verifies inner text of the element
258
257
  */
259
- verifyInnerTextOfLengthOfRulerDropdown: (lengthOfRuler) => {
260
- utilities.verifyInnerText(rulerPage.lengthOfRulerDropdown(), lengthOfRuler);
258
+ verifySelectedLengthOfRulerOption: (lengthOfRuler) => {
259
+ rulerPage.lengthOfRulerOptions(lengthOfRuler)
260
+ .should('have.class', 'ngie-toggle-button-selected')
261
261
  },
262
262
 
263
263
  /**
@@ -400,7 +400,7 @@ const steps = {
400
400
 
401
401
  verifyRulerUploadedImageNotExistPreviewTab: () => {
402
402
  rulerPage.rulerUploadedImagePreviewTab()
403
- .should('have.attr', 'src', '');
403
+ .should('have.attr', 'src', '');
404
404
  }
405
405
  }
406
406
 
@@ -1,5 +1,5 @@
1
1
  import utilities from "../support/helpers/utilities";
2
- import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredScoringSectionMultiResponseType, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, randomizeOptionsComponent, studentViewSettingsLabelComponent, commonComponents} from "./components";
2
+ import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredScoringSectionMultiResponseType, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, randomizeOptionsComponent, studentViewSettingsLabelComponent, commonComponents, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent } from "./components";
3
3
  const css = Cypress.env('css');
4
4
 
5
5
  const selectors = {
@@ -13,6 +13,8 @@ const selectors = {
13
13
  ...autoScoredScoringSectionMultiResponseType,
14
14
  ...autoScoredSpecifyCorrectAnswerSection,
15
15
  ...randomizeOptionsComponent,
16
+ ...commonComponents,
17
+ ...additionalSettingsPanel,
16
18
  }
17
19
 
18
20
  const steps = {
@@ -29,6 +31,8 @@ const steps = {
29
31
  ...specifyRowsAndColumnsComponent.steps,
30
32
  ...autoScoredSpecifyCorrectAnswerSection.steps,
31
33
  ...randomizeOptionsComponent.steps,
34
+ ...commonComponents.steps,
35
+ ...additionalSettingsPanel.steps,
32
36
  /**
33
37
  * Modifies the property of an option cell in the grid for radio button settings.
34
38
  * @param {Object} position - The position of the option cell.
@@ -125,6 +129,10 @@ const tests = {
125
129
  ...randomizeOptionsComponent.tests,
126
130
  ...studentViewSettingsLabelComponent.tests,
127
131
  ...autoScoredStudentViewSettings.tests,
132
+ ...commonComponents.tests,
133
+ ...createQuestionBasePage.tests,
134
+ ...additionalSettingsPanel.tests,
135
+ ...additionalSettingsAccessibilitySectionComponent.tests,
128
136
  /**
129
137
  * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
130
138
  * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
@@ -180,7 +188,7 @@ const tests = {
180
188
  it(`Accessibility of ${accordionName} accordion contents`, { tags: 'a11y' }, () => {
181
189
  cy.checkAccessibility(gridQuestionCommonComponent.tableCell().parents('.correct-answer-accordion'));
182
190
  });
183
- },
191
+ }
184
192
  }
185
193
 
186
194
  export const singleSelectionGridPage = {
@@ -1,7 +1,7 @@
1
1
  import { equationEditorCategoriesAndSymbols } from "../fixtures/equationEditorCategoriesAndSymbols ";
2
2
  import { decimalSeparator, evaluationMethods } from "../fixtures/evaluationMethodsAndCustomSettings"
3
3
  import utilities from "../support/helpers/utilities"
4
- import { questionInstructionsComponent, questionInputFieldComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, autoScoredScoringPreviewTab, equationEditorFlyout, autoScoredStudentViewSettings, correctIncorrectAnswerLabelComponent, ckEditorToolbar } from "./components"
4
+ import { questionInstructionsComponent, questionInputFieldComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, autoScoredScoringPreviewTab, equationEditorFlyout, autoScoredStudentViewSettings, correctIncorrectAnswerLabelComponent, ckEditorToolbar, colorPopupComponent } from "./components"
5
5
  const css = Cypress.env('css');
6
6
 
7
7
  const selectors = {
@@ -115,6 +115,7 @@ const steps = {
115
115
  ...equationEditorFlyout.steps,
116
116
  ...correctIncorrectAnswerLabelComponent.steps,
117
117
  ...ckEditorToolbar.steps,
118
+ ...colorPopupComponent.steps,
118
119
 
119
120
  verifyAddStructureTabIsSelected: () => {
120
121
  textEntryMathPage.addStructureTab()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.157",
3
+ "version": "1.0.158",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {