itemengine-cypress-automation 1.0.225-activeDeadlineSecondsUpdated-34c7d0c.0 → 1.0.225
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +9 -5
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -6
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -3
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/editTabScoringSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +11 -10
- package/cypress/e2e/ILC/ChartsLine/Scoring/addAndDeletePointAllOrNothingScoring.js +307 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/manuallyAndNonScored.js +282 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +387 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +280 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +280 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +340 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +255 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +230 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +354 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/toleranceThresholdScoring.js +143 -0
- package/cypress/e2e/ILC/ChartsLine/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +1 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +5 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +50 -126
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +2 -2
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +8 -6
- package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +6 -7
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +10 -8
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +7 -5
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +32 -21
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +4 -3
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/editTabScoring.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +6 -6
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -6
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +5 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/setPointsPopup.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +1 -3
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +4 -3
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +11 -11
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +3 -3
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +15 -15
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +7 -7
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +2 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +14 -14
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +3 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +17 -2
- package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +8 -8
- package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +15 -28
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +28 -42
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +5 -5
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +6 -4
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +2 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +113 -112
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +66 -65
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +1 -0
- package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -4
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +2 -1
- package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsStandardRecorderStyle.js +3 -2
- package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +4 -3
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +14 -7
- package/cypress/pages/audioResponsePage.js +14 -2
- package/cypress/pages/chartsDotPlotPage.js +28 -1
- package/cypress/pages/chartsLinePage.js +16 -3
- package/cypress/pages/components/additionalSettingsPanel.js +0 -3
- package/cypress/pages/components/chartsCommonComponent.js +5 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +47 -12
- package/cypress/pages/components/customizeMathCharacterComponent.js +1 -1
- package/cypress/pages/components/equationEditorFlyout.js +12 -13
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
- package/cypress/pages/components/playbackControlsBaseComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -2
- package/cypress/pages/essayResponseMathPage.js +19 -10
- package/cypress/pages/essayResponsePage.js +16 -10
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +9 -5
- package/cypress/pages/imageHighlightPage.js +46 -29
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/numberLineLabelPage.js +25 -28
- package/cypress/pages/numberLinePage.js +9 -2
- package/cypress/pages/shortTextResponsePage.js +33 -9
- package/package.json +2 -2
@@ -37,7 +37,13 @@ const selectors = {
|
|
37
37
|
specialCharactersPopupTitle: () => cy.get('#alert-dialog-title'),
|
38
38
|
specialCharactersPopupCloseButton: () => cy.get('[class*="close-button"]'),
|
39
39
|
specialCharactersPopupCharactersCategoryWrapper: () => cy.get('.special-character-accordion'),
|
40
|
-
specialCharactersPopupCharacterSymbol: () =>
|
40
|
+
specialCharactersPopupCharacterSymbol: (ariaLabel = null) => {
|
41
|
+
if (ariaLabel) {
|
42
|
+
return cy.get(`.characters-button[aria-label*="${ariaLabel}"]`)
|
43
|
+
} else {
|
44
|
+
return cy.get('.characters-button')
|
45
|
+
}
|
46
|
+
},
|
41
47
|
specialCharactersPopupCategoryTitle: () => cy.get('.char-accordion-label'),
|
42
48
|
specialCharactersPopupCategoryAccordionIcon: () => cy.get('.special-math-content [class*="expandIconWrapper"]'),
|
43
49
|
|
@@ -169,7 +175,7 @@ const steps = {
|
|
169
175
|
},
|
170
176
|
|
171
177
|
/**
|
172
|
-
* @description Verify symbols displayed
|
178
|
+
* @description Verify symbols displayed for a category in special characters popup
|
173
179
|
* @param {number} categoryIndex Index of the category
|
174
180
|
* @param {string[]} categorySymbolsArray Array of the symbols of the category
|
175
181
|
*/
|
@@ -177,11 +183,11 @@ const steps = {
|
|
177
183
|
essayResponsePage.specialCharactersPopupCharactersCategoryWrapper()
|
178
184
|
.eq(categoryIndex)
|
179
185
|
.within(() => {
|
180
|
-
categorySymbolsArray
|
186
|
+
categorySymbolsArray.forEach((symbolARIALabel, index) => {
|
181
187
|
essayResponsePage.specialCharactersPopupCharacterSymbol()
|
182
188
|
.eq(index)
|
183
|
-
.
|
184
|
-
.
|
189
|
+
.should('have.attr', 'aria-label')
|
190
|
+
.and('include', symbolARIALabel);
|
185
191
|
});
|
186
192
|
});
|
187
193
|
},
|
@@ -191,8 +197,7 @@ const steps = {
|
|
191
197
|
* @param {string} ariaLabel Aria-label of the symbol
|
192
198
|
*/
|
193
199
|
clickOnCharacterPopupSymbol: (ariaLabel) => {
|
194
|
-
essayResponsePage.specialCharactersPopupCharacterSymbol()
|
195
|
-
.find(`svg[aria-label="${ariaLabel}"]`)
|
200
|
+
essayResponsePage.specialCharactersPopupCharacterSymbol(ariaLabel)
|
196
201
|
.click();
|
197
202
|
},
|
198
203
|
|
@@ -251,9 +256,10 @@ const steps = {
|
|
251
256
|
createCustomCategoryWithMultipleCategoryCharacters: () => {
|
252
257
|
cy.log('Creating a custom category by selecting \'Keypad\' category, partially selecting \'Basic\' and \'Greek\' categories')
|
253
258
|
createCustomCategoryFlyout.steps.openCreateCustomCategoryFlyout();
|
254
|
-
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
259
|
+
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['primary'].displayName}`);
|
260
|
+
cy.wait(2000);
|
255
261
|
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['matrices'].displayName}`);
|
256
|
-
createCustomCategoryFlyout.steps.expandCategoryAccordion(
|
262
|
+
createCustomCategoryFlyout.steps.expandCategoryAccordion(`Greek Symbols`);
|
257
263
|
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols.greek.symbols.gamma.ariaLabel}`);
|
258
264
|
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols.greek.symbols.delta.ariaLabel}`);
|
259
265
|
createCustomCategoryFlyout.steps.addInputToCustomCategoryNameInputField('Custom category with name.');
|
@@ -1041,7 +1047,7 @@ const steps = {
|
|
1041
1047
|
essayResponsePage.responseField()
|
1042
1048
|
.should('have.prop', 'spellcheck', true);
|
1043
1049
|
},
|
1044
|
-
|
1050
|
+
|
1045
1051
|
verifyPlaceholderInputFieldIsEmpty: () => {
|
1046
1052
|
essayResponseCommonComponents.placeholderTextInputField()
|
1047
1053
|
.should('have.value', '');
|
@@ -34,6 +34,7 @@ const selectors = {
|
|
34
34
|
connectorEndPointShapeOptions: (shapeOption) => cy.get(`.dropzone-connector-option button[aria-label*="${shapeOption}"]`),
|
35
35
|
previewTabCanvas: () => cy.get('.drag-and-drop-canvas'),
|
36
36
|
tooltipText: () => cy.get('[class*="MuiTooltip-tooltip"]'),
|
37
|
+
dropdownPointer: () => cy.get('.canvas-pointer-wrapper'),
|
37
38
|
}
|
38
39
|
|
39
40
|
const steps = {
|
@@ -126,7 +127,7 @@ const steps = {
|
|
126
127
|
case 'bottom':
|
127
128
|
return { top: '-31px', left: '-35px' };
|
128
129
|
case 'bottom right':
|
129
|
-
return { top: '-
|
130
|
+
return { top: '-26px', left: '-43px' };
|
130
131
|
case 'right':
|
131
132
|
return { top: '-21px', left: '-36.5px' };
|
132
133
|
case 'top right':
|
@@ -143,7 +144,7 @@ const steps = {
|
|
143
144
|
}
|
144
145
|
const expectedPosition = getPosition(style);
|
145
146
|
if (style == 'left' || style == 'bottom left') {
|
146
|
-
fillInTheGapsOverImageDropdownPage.
|
147
|
+
fillInTheGapsOverImageDropdownPage.dropdownPointer()
|
147
148
|
.eq(dropzoneIndex)
|
148
149
|
.should('have.css', 'bottom', expectedPosition.bottom)
|
149
150
|
.and('have.css', 'left', expectedPosition.left);
|
@@ -151,11 +152,14 @@ const steps = {
|
|
151
152
|
else if (style == 'none') {
|
152
153
|
fillInTheGapsOverImageDropdownPage.dropdownPreviewTab()
|
153
154
|
.eq(dropzoneIndex)
|
154
|
-
.
|
155
|
-
.
|
155
|
+
.parents('[class*="Canvasstyle__ResponseDiv"]')
|
156
|
+
.within(() => {
|
157
|
+
fillInTheGapsOverImageDropdownPage.dropdownPointer()
|
158
|
+
.should('not.exist');
|
159
|
+
});
|
156
160
|
}
|
157
161
|
else {
|
158
|
-
fillInTheGapsOverImageDropdownPage.
|
162
|
+
fillInTheGapsOverImageDropdownPage.dropdownPointer()
|
159
163
|
.eq(dropzoneIndex)
|
160
164
|
.should('have.css', 'top', expectedPosition.top)
|
161
165
|
.and('have.css', 'left', expectedPosition.left);
|
@@ -1122,11 +1122,13 @@ const steps = {
|
|
1122
1122
|
* @description this function verifies the fillInHighlight of selected highlight in preview tab.
|
1123
1123
|
*/
|
1124
1124
|
verifyFillInHighlightRegionPreviewTabSection: (index) => {
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1125
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1126
|
+
.within(() => {
|
1127
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon().eq(index), {
|
1128
|
+
'fill-opacity': '1',
|
1129
|
+
'stroke': css.color.activeHighlightBorder
|
1130
|
+
});
|
1131
|
+
});
|
1130
1132
|
},
|
1131
1133
|
|
1132
1134
|
/**
|
@@ -1134,10 +1136,13 @@ const steps = {
|
|
1134
1136
|
* @description this function verifies the outLineHighlight of selected highlight in preview tab.
|
1135
1137
|
*/
|
1136
1138
|
verifyOutlineHighlightRegionPreviewTabSection: (index) => {
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1139
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1140
|
+
.within(() => {
|
1141
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon().eq(index), {
|
1142
|
+
'stroke-width': '2px',
|
1143
|
+
'stroke': css.color.activeHighlightBorder
|
1144
|
+
});
|
1145
|
+
});
|
1141
1146
|
},
|
1142
1147
|
|
1143
1148
|
/**
|
@@ -1145,10 +1150,13 @@ const steps = {
|
|
1145
1150
|
* @description this function verifies the patternHighlight of selected highlight in preview tab.
|
1146
1151
|
*/
|
1147
1152
|
verifyPatternHighlightRegionPreviewTabSection: (index) => {
|
1148
|
-
imageHighlightPage.
|
1149
|
-
.eq(index)
|
1153
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1150
1154
|
.within(() => {
|
1151
|
-
|
1155
|
+
imageHighlightPage.previewSectionPatterntPolygon()
|
1156
|
+
.eq(index)
|
1157
|
+
.within(() => {
|
1158
|
+
utilities.verifyElementVisibilityState(imageHighlightPage.specifyCorrectAnswerDiamondPattern().eq(1), 'exist');
|
1159
|
+
});
|
1152
1160
|
});
|
1153
1161
|
},
|
1154
1162
|
|
@@ -1318,12 +1326,15 @@ const steps = {
|
|
1318
1326
|
* @description this function verifiies the fill color of highlight regions in preview tab.
|
1319
1327
|
*/
|
1320
1328
|
verifyEditedFillColorInPreviewtabSection: (index, color) => {
|
1321
|
-
imageHighlightPage.
|
1322
|
-
.eq(index)
|
1329
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1323
1330
|
.within(() => {
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1331
|
+
imageHighlightPage.specifyCorrectAnswerSectionCustomizedPolygon()
|
1332
|
+
.eq(index)
|
1333
|
+
.within(() => {
|
1334
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerDiamondPattern(), {
|
1335
|
+
'fill': color
|
1336
|
+
});
|
1337
|
+
});
|
1327
1338
|
});
|
1328
1339
|
},
|
1329
1340
|
|
@@ -1345,15 +1356,18 @@ const steps = {
|
|
1345
1356
|
/**
|
1346
1357
|
* @param {number} index index of highlight region
|
1347
1358
|
* @param {string} color color to be checked in rgb/rgba format
|
1348
|
-
* @description this function
|
1359
|
+
* @description this function verifies the border color of highlight regions in preview tab.
|
1349
1360
|
*/
|
1350
1361
|
verifyEditedBorderColorInPreviewtabSection: (index, color) => {
|
1351
|
-
imageHighlightPage.
|
1352
|
-
.eq(index)
|
1362
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1353
1363
|
.within(() => {
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1364
|
+
imageHighlightPage.previewSectionHighlight()
|
1365
|
+
.eq(index)
|
1366
|
+
.within(() => {
|
1367
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
|
1368
|
+
'stroke': color
|
1369
|
+
});
|
1370
|
+
});
|
1357
1371
|
});
|
1358
1372
|
},
|
1359
1373
|
|
@@ -1388,13 +1402,16 @@ const steps = {
|
|
1388
1402
|
* @description this function verifiies the border style of highlight regions in preview tab.
|
1389
1403
|
*/
|
1390
1404
|
verifyEditedBorderStyleInPreviewTabSection: (index, strokeDasharray, strokWidth) => {
|
1391
|
-
imageHighlightPage.
|
1392
|
-
.eq(index)
|
1405
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1393
1406
|
.within(() => {
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1407
|
+
imageHighlightPage.previewSectionHighlight()
|
1408
|
+
.eq(index)
|
1409
|
+
.within(() => {
|
1410
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
|
1411
|
+
'stroke-dasharray': strokeDasharray,
|
1412
|
+
'stroke-width': strokWidth
|
1413
|
+
});
|
1414
|
+
});
|
1398
1415
|
});
|
1399
1416
|
},
|
1400
1417
|
|
@@ -15,8 +15,8 @@ const selectors = {
|
|
15
15
|
...randomizeOptionsComponent,
|
16
16
|
...additionalSettingsPanel,
|
17
17
|
partialEqualWeightsPointsPerResponseScore: () => cy.get('.alternate-points-points-per-value-span'),
|
18
|
-
snapToTicksCheckbox: () => cy.get('[data-ngie-testid="snap-to-
|
19
|
-
snapToTicksLabel: () => cy.get('[data-ngie-testid="snap-to-
|
18
|
+
snapToTicksCheckbox: () => cy.get('[data-ngie-testid="snap-to-grid-nodes-checkbox"] input'),
|
19
|
+
snapToTicksLabel: () => cy.get('[data-ngie-testid="snap-to-grid-nodes-checkbox"] .MuiFormControlLabel-label'),
|
20
20
|
//Label section
|
21
21
|
labelInputField: () => cy.get('.edit-question-enter-option-form-element [role="textbox"]'),
|
22
22
|
addLabelButton: () => cy.get('.inline-add-option-button-wrapper button'),
|
@@ -266,7 +266,7 @@ const steps = {
|
|
266
266
|
const graphWidth = 642;
|
267
267
|
let graphHeight = $graphElement[0].clientHeight;
|
268
268
|
let containerHeight = $element[0].clientHeight;
|
269
|
-
graphHeight = graphHeight - containerHeight -
|
269
|
+
graphHeight = graphHeight - containerHeight - 32;
|
270
270
|
const originX = graphWidth / 2;
|
271
271
|
const originY = graphHeight / 2;
|
272
272
|
const yPixel = originY - coordinate * (graphHeight / range);
|
@@ -657,7 +657,7 @@ const steps = {
|
|
657
657
|
numberLineLabelPage.labelContainerSpecifyCorrectAnswer()
|
658
658
|
.then(($element) => {
|
659
659
|
let containerHeight = $element[0].clientHeight;
|
660
|
-
let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) +
|
660
|
+
let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 32;
|
661
661
|
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
662
662
|
.should('have.attr', 'height', graphHeight.toString());
|
663
663
|
});
|
@@ -672,7 +672,7 @@ const steps = {
|
|
672
672
|
numberLineLabelPage.labelContainerPreviewTab()
|
673
673
|
.then(($element) => {
|
674
674
|
let containerHeight = $element[0].clientHeight;
|
675
|
-
let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) +
|
675
|
+
let graphHeight = parseInt(height, 10) + parseInt(containerHeight, 10) + 32;
|
676
676
|
numberLineCommonComponent.numberLinePreviewTab()
|
677
677
|
.should('have.attr', 'height', graphHeight.toString());
|
678
678
|
});
|
@@ -680,14 +680,14 @@ const steps = {
|
|
680
680
|
|
681
681
|
/**
|
682
682
|
* Verifies the display numbers orientation in the specify correct answer section of the number line.
|
683
|
-
* @param {string} numberLineOrientation - The orientation of the number line ('
|
683
|
+
* @param {string} numberLineOrientation - The orientation of the number line ('Sideways' or 'Upright').
|
684
684
|
* @param {string} numberOrientation - The orientation of the numbers ('Below' or 'Left').
|
685
685
|
* @throws {Error} Thrown if the number line orientation is invalid.
|
686
686
|
*/
|
687
687
|
verifyDisplayNumbersOrientationSpecifyCorrectAnswerSection: (numberLineOrientation, numberOrientation) => {
|
688
688
|
let property, value;
|
689
689
|
switch (numberLineOrientation) {
|
690
|
-
case '
|
690
|
+
case 'Sideways':
|
691
691
|
if (numberOrientation === 'Below') {
|
692
692
|
property = 'top';
|
693
693
|
value = '113px';
|
@@ -696,7 +696,7 @@ const steps = {
|
|
696
696
|
value = '207px';
|
697
697
|
}
|
698
698
|
break;
|
699
|
-
case '
|
699
|
+
case 'Upright':
|
700
700
|
property = numberOrientation === 'Left of' ? 'right' : 'left';
|
701
701
|
value = '346px';
|
702
702
|
break;
|
@@ -712,14 +712,14 @@ const steps = {
|
|
712
712
|
|
713
713
|
/**
|
714
714
|
* Verifies the display numbers orientation in the number line section.
|
715
|
-
* @param {string} numberLineOrientation - The orientation of the number line ('
|
715
|
+
* @param {string} numberLineOrientation - The orientation of the number line ('Sideways' or 'Upright').
|
716
716
|
* @param {string} numberOrientation - The orientation of the numbers ('Below' or 'Left').
|
717
717
|
* @throws {Error} Thrown if the number line orientation is invalid.
|
718
718
|
*/
|
719
719
|
verifyDisplayNumbersOrientationPreviewTab: (numberLineOrientation, numberOrientation) => {
|
720
720
|
let property, value;
|
721
721
|
switch (numberLineOrientation) {
|
722
|
-
case '
|
722
|
+
case 'Sideways':
|
723
723
|
if (numberOrientation === 'Below') {
|
724
724
|
property = 'top';
|
725
725
|
value = '113px';
|
@@ -728,7 +728,7 @@ const steps = {
|
|
728
728
|
value = '207px';
|
729
729
|
}
|
730
730
|
break;
|
731
|
-
case '
|
731
|
+
case 'Upright':
|
732
732
|
property = numberOrientation === 'Left of' ? 'right' : 'left';
|
733
733
|
value = '346px';
|
734
734
|
break;
|
@@ -745,18 +745,18 @@ const steps = {
|
|
745
745
|
|
746
746
|
/**
|
747
747
|
* Verifies the display numbers orientation in the number line section.
|
748
|
-
* @param {string} numberLineOrientation - The orientation of the number line ('
|
748
|
+
* @param {string} numberLineOrientation - The orientation of the number line ('Sideways' or 'Upright').
|
749
749
|
* @param {string} numberOrientation - The orientation of the numbers ('Below' or 'Left').
|
750
750
|
* @throws {Error} Thrown if the number line orientation is invalid.
|
751
751
|
*/
|
752
752
|
verifyDisplayNumbersOrientationNumberLineSection: (numberLineOrientation, numberOrientation) => {
|
753
753
|
let property, value;
|
754
754
|
switch (numberLineOrientation) {
|
755
|
-
case '
|
755
|
+
case 'Sideways':
|
756
756
|
property = numberOrientation === 'Below' ? 'top' : 'bottom';
|
757
757
|
value = '83px';
|
758
758
|
break;
|
759
|
-
case '
|
759
|
+
case 'Upright':
|
760
760
|
property = numberOrientation === 'Left of' ? 'right' : 'left';
|
761
761
|
value = '346px';
|
762
762
|
break;
|
@@ -787,9 +787,6 @@ const steps = {
|
|
787
787
|
graphHeight = graphHeight - containerHeight - 32;
|
788
788
|
const originY = graphHeight / 2 - tolerance / 2;
|
789
789
|
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
790
|
-
cy.log(yPixel)
|
791
|
-
cy.log(graphHeight)
|
792
|
-
cy.log(originY)
|
793
790
|
cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
|
794
791
|
.should('exist');
|
795
792
|
});
|
@@ -811,7 +808,7 @@ const steps = {
|
|
811
808
|
let graphHeight = $graphElement[0].clientHeight;
|
812
809
|
let containerHeight = $element[0].clientHeight;
|
813
810
|
graphHeight = graphHeight - containerHeight - 32;
|
814
|
-
const originY = graphHeight / 2 - tolerance/2;
|
811
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
815
812
|
const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
|
816
813
|
cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
|
817
814
|
.should('not.exist');
|
@@ -834,7 +831,7 @@ const steps = {
|
|
834
831
|
let graphHeight = $graphElement[0].clientHeight;
|
835
832
|
let containerHeight = $element[0].clientHeight;
|
836
833
|
graphHeight = graphHeight - containerHeight - 32;
|
837
|
-
const originY = graphHeight / 2 - tolerance/2;
|
834
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
838
835
|
const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
|
839
836
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
|
840
837
|
.should('not.exist');
|
@@ -857,7 +854,7 @@ const steps = {
|
|
857
854
|
let graphHeight = $graphElement[0].clientHeight;
|
858
855
|
let containerHeight = $element[0].clientHeight;
|
859
856
|
graphHeight = graphHeight - containerHeight - 32;
|
860
|
-
const originY = graphHeight / 2 - tolerance/2;
|
857
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
861
858
|
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
862
859
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
|
863
860
|
.should('exist');
|
@@ -1043,18 +1040,18 @@ const tests = {
|
|
1043
1040
|
|
1044
1041
|
/**
|
1045
1042
|
* Verifies the functionality of the number line section in the edit tab.
|
1046
|
-
* @param {string} orientation - The orientation of the number line ('
|
1043
|
+
* @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
|
1047
1044
|
*/
|
1048
1045
|
verifyDisplayNumberSettingsFunctionalitySpecifyCorrectAnswerSection: (orientation) => {
|
1049
|
-
const displayNumbersOptions = (orientation === "
|
1050
|
-
const direction = (orientation === "
|
1046
|
+
const displayNumbersOptions = (orientation === "Sideways") ? ["Below line", "Above line"] : ["Left of line", "Right of line"];
|
1047
|
+
const direction = (orientation === "Sideways") ? "Below" : "Left of";
|
1051
1048
|
it(`When "${displayNumbersOptions[0]}" is selected, labels should be displayed ${direction} number line in both the number line section and the specify correct answer section.`, () => {
|
1052
1049
|
numberLineCommonComponent.steps.verifyDisplayNumbersToggleButtonSelected(displayNumbersOptions[0]);
|
1053
1050
|
numberLineLabelPage.steps.verifyDisplayNumbersOrientationNumberLineSection(orientation, direction);
|
1054
1051
|
numberLineLabelPage.steps.verifyDisplayNumbersOrientationSpecifyCorrectAnswerSection(orientation, direction);
|
1055
1052
|
});
|
1056
1053
|
|
1057
|
-
const oppositeDirection = (orientation === "
|
1054
|
+
const oppositeDirection = (orientation === "Sideways") ? "Above" : "Right of";
|
1058
1055
|
it(`When "${displayNumbersOptions[1]}" is selected, labels should be displayed ${oppositeDirection} number line in both the number line section and the specify correct answer section.`, () => {
|
1059
1056
|
numberLineCommonComponent.steps.selectDisplayNumbersToggleButton(displayNumbersOptions[1]);
|
1060
1057
|
numberLineLabelPage.steps.verifyDisplayNumbersOrientationNumberLineSection(orientation, oppositeDirection);
|
@@ -1064,11 +1061,11 @@ const tests = {
|
|
1064
1061
|
|
1065
1062
|
/**
|
1066
1063
|
* Verifies the functionality of the number line section in the preview tab.
|
1067
|
-
* @param {string} orientation - The orientation of the number line ('
|
1064
|
+
* @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
|
1068
1065
|
*/
|
1069
1066
|
verifyDisplayNumberSettingsFunctionalityPreviewTab: (orientation) => {
|
1070
|
-
const displayNumbersOptions = (orientation === "
|
1071
|
-
const direction = (orientation === "
|
1067
|
+
const displayNumbersOptions = (orientation === "Sideways") ? ["Below line", "Above line"] : ["Left of line", "Right of line"];
|
1068
|
+
const direction = (orientation === "Sideways") ? "Below" : "Left of";
|
1072
1069
|
it(`When ${displayNumbersOptions[0]} is selected then labels should be displayed ${direction} number line in the preview tab.`, () => {
|
1073
1070
|
numberLineCommonComponent.steps.switchToEditTab();
|
1074
1071
|
numberLineCommonComponent.steps.verifyDisplayNumbersToggleButtonSelected(displayNumbersOptions[0]);
|
@@ -1076,7 +1073,7 @@ const tests = {
|
|
1076
1073
|
numberLineLabelPage.steps.verifyDisplayNumbersOrientationPreviewTab(orientation, direction);
|
1077
1074
|
});
|
1078
1075
|
|
1079
|
-
const oppositeDirection = (orientation === "
|
1076
|
+
const oppositeDirection = (orientation === "Sideways") ? "Above" : "Right of";
|
1080
1077
|
it(`When user selects ${displayNumbersOptions[1]} then labels should be displayed ${oppositeDirection} number line in the preview tab.`, () => {
|
1081
1078
|
numberLineCommonComponent.steps.switchToEditTab();
|
1082
1079
|
numberLineCommonComponent.steps.selectDisplayNumbersToggleButton(displayNumbersOptions[1]);
|
@@ -1376,7 +1376,9 @@ const steps = {
|
|
1376
1376
|
|
1377
1377
|
verifySelectedToolOptions: (selectedToolOptions) => {
|
1378
1378
|
selectedToolOptions.forEach((toolOption, index) => {
|
1379
|
-
utilities.verifyElementVisibilityState(toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}
|
1379
|
+
utilities.verifyElementVisibilityState(toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}`), 'visible');
|
1380
|
+
toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}`)
|
1381
|
+
.should('have.class', 'Mui-selected');
|
1380
1382
|
utilities.verifyInnerText(utilities.getNthElement(toolsAndControlsComponent.toolOptionsLabel(), index), toolOption);
|
1381
1383
|
utilities.verifyElementVisibilityState(utilities.getNthElement(toolsAndControlsComponent.toolOptionsTickIcon(), index), 'visible');
|
1382
1384
|
});
|
@@ -1384,7 +1386,9 @@ const steps = {
|
|
1384
1386
|
|
1385
1387
|
verifyUnselectedToolOptions: (unselectedToolOptions) => {
|
1386
1388
|
unselectedToolOptions.forEach((toolOption, index) => {
|
1387
|
-
utilities.verifyElementVisibilityState(toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}
|
1389
|
+
utilities.verifyElementVisibilityState(toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}`), 'visible');
|
1390
|
+
toolsAndControlsComponent.toolOptions(`${toolOption.toLowerCase()}`)
|
1391
|
+
.should('not.have.class', 'Mui-selected');
|
1388
1392
|
utilities.verifyInnerText(utilities.getNthElement(toolsAndControlsComponent.toolOptionsLabel(), index + 5), toolOption);
|
1389
1393
|
utilities.verifyElementVisibilityState(utilities.getNthElement(toolsAndControlsComponent.toolOptionsTickIcon(), index + 5), 'hidden');
|
1390
1394
|
});
|
@@ -1396,6 +1400,9 @@ const steps = {
|
|
1396
1400
|
if (controlOption === 'Reset') {
|
1397
1401
|
formattedControlOption = 'reset';
|
1398
1402
|
}
|
1403
|
+
if (controlOption === 'Delete') {
|
1404
|
+
formattedControlOption = 'delete';
|
1405
|
+
}
|
1399
1406
|
utilities.verifyElementVisibilityState(numberLinePage.controlOptions(`${formattedControlOption} selected`), 'visible');
|
1400
1407
|
utilities.verifyInnerText(utilities.getNthElement(numberLinePage.controlsOptionsLabel(), index), controlOption);
|
1401
1408
|
utilities.verifyElementVisibilityState(utilities.getNthElement(numberLinePage.controlsTickIcon(), index), 'visible');
|
@@ -320,11 +320,17 @@ const steps = {
|
|
320
320
|
*/
|
321
321
|
setMaximumLimit: (maxLimit) => {
|
322
322
|
shortTextResponsePage.maximumLimitInputField()
|
323
|
-
.clear()
|
324
|
-
|
325
|
-
.
|
323
|
+
.clear();
|
324
|
+
shortTextResponsePage.maximumLimitInputField()
|
325
|
+
.type(maxLimit);
|
326
|
+
shortTextResponsePage.maximumLimitInputField()
|
327
|
+
.blur();
|
328
|
+
shortTextResponsePage.maximumLimitInputField()
|
326
329
|
.should('have.value', maxLimit);
|
327
|
-
|
330
|
+
shortTextResponsePage.maximumLimitInputField()
|
331
|
+
.click();
|
332
|
+
shortTextResponsePage.maximumLimitInputField()
|
333
|
+
.blur();
|
328
334
|
},
|
329
335
|
|
330
336
|
/**
|
@@ -333,23 +339,35 @@ const steps = {
|
|
333
339
|
*/
|
334
340
|
setMinimumLimit: (minLimit) => {
|
335
341
|
shortTextResponsePage.minimumLimitInputField()
|
336
|
-
.clear()
|
337
|
-
|
342
|
+
.clear();
|
343
|
+
shortTextResponsePage.minimumLimitInputField()
|
344
|
+
.type(minLimit);
|
345
|
+
shortTextResponsePage.minimumLimitInputField()
|
338
346
|
.blur();
|
339
347
|
cy.wait(2000);
|
340
348
|
shortTextResponsePage.minimumLimitInputField()
|
341
|
-
.should('have.value', minLimit)
|
349
|
+
.should('have.value', minLimit);
|
350
|
+
shortTextResponsePage.minimumLimitInputField()
|
351
|
+
.click();
|
352
|
+
shortTextResponsePage.minimumLimitInputField()
|
353
|
+
.blur();
|
342
354
|
},
|
343
355
|
|
344
356
|
clearAndFocusOutOfMaximumLimitInputField: () => {
|
345
357
|
shortTextResponsePage.maximumLimitInputField()
|
346
|
-
.clear()
|
358
|
+
.clear();
|
359
|
+
shortTextResponsePage.maximumLimitInputField()
|
347
360
|
.blur();
|
348
361
|
},
|
349
362
|
|
350
363
|
clearAndFocusOutOfMinimumLimitInputField: () => {
|
351
364
|
shortTextResponsePage.minimumLimitInputField()
|
352
|
-
.clear()
|
365
|
+
.clear();
|
366
|
+
shortTextResponsePage.minimumLimitInputField()
|
367
|
+
.blur();
|
368
|
+
shortTextResponsePage.minimumLimitInputField()
|
369
|
+
.click();
|
370
|
+
shortTextResponsePage.minimumLimitInputField()
|
353
371
|
.blur();
|
354
372
|
},
|
355
373
|
|
@@ -575,6 +593,12 @@ const steps = {
|
|
575
593
|
.should('be.checked');
|
576
594
|
},
|
577
595
|
|
596
|
+
checkAlwaysShowMaximumLimitCheckbox: () => {
|
597
|
+
shortTextResponsePage.alwaysShowMaxLimitCheckbox()
|
598
|
+
.click()
|
599
|
+
.should('be.checked');
|
600
|
+
},
|
601
|
+
|
578
602
|
checkAlwaysShowMinimumLimitCheckbox: () => {
|
579
603
|
shortTextResponsePage.alwaysShowMinLimitCheckBox()
|
580
604
|
.click()
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.225
|
3
|
+
"version": "1.0.225",
|
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
|
+
}
|