itemengine-cypress-automation 1.0.275-cssUpdates12Dec-bbaeace.0 → 1.0.275
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +11 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +7 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +6 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +4 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/toolSettings.js +8 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +6 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +3 -4
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +4 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -3
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +5 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +3 -0
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +6 -3
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +23 -1
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +476 -0
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +129 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +7 -5
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +384 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
- package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +19 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -5
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +6 -2
- package/cypress/pages/components/numberLineCommonComponent.js +12 -5
- package/cypress/pages/components/playbackControlsBaseComponent.js +5 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +18 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -6
- package/cypress/pages/gridFillPage.js +2 -3
- package/cypress/pages/listOrderingPage.js +19 -12
- package/cypress/pages/matchingPage.js +16 -2
- package/cypress/pages/textEntryMathPage.js +716 -4
- package/cypress/pages/textEntryMathWithImagePage.js +133 -5
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { imageCanvasComponent, backgroundImageUploadComponent, questionInstructionsComponent, autoScoredScoringPreviewTab } from "./components"
|
1
|
+
import { imageCanvasComponent, backgroundImageUploadComponent, questionInstructionsComponent, autoScoredScoringPreviewTab, connectorStyleStyleAndLayoutCustomizationComponent } from "./components"
|
2
2
|
import { textEntryMathPage } from "./textEntryMathPage";
|
3
3
|
import { dialogBoxBase } from "./dialogBoxBase";
|
4
4
|
import utilities from "../support/helpers/utilities";
|
@@ -9,7 +9,7 @@ const selectors = {
|
|
9
9
|
...imageCanvasComponent,
|
10
10
|
...textEntryMathPage,
|
11
11
|
...dialogBoxBase,
|
12
|
-
|
12
|
+
...connectorStyleStyleAndLayoutCustomizationComponent,
|
13
13
|
addBackgroundButton: () => cy.get('[data-ngie-testid="add-background-tab"]'),
|
14
14
|
responseFieldPreviewTab: () => cy.get('.cloze-math-background-preview .equation-input-without-andornment .mq-root-block'),
|
15
15
|
canvasInPreviewTab: () => cy.get('[class*="PreviewTabstyles__ContentWrapper"] .image-container'),
|
@@ -17,7 +17,18 @@ const selectors = {
|
|
17
17
|
tickIcon: () => cy.get('.add-background-tick-icon-wrapper [data-name*="Rectangle"]'),
|
18
18
|
responseFieldWrapperPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="__PointerWrapper"]'),
|
19
19
|
pointerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="_PointerDiv"]'),
|
20
|
-
responseFieldNumerationPreviewTab: () => cy.get('.image-container .response-input-adornment')
|
20
|
+
responseFieldNumerationPreviewTab: () => cy.get('.image-container .response-input-adornment'),
|
21
|
+
cancelButton: () => cy.get('[data-testid*="reject-button"]'),
|
22
|
+
setHeightAndWidthForAllTextContainersLabel: () => cy.get('.set-textContainer-dimensions-checkbox label'),
|
23
|
+
setHeightAndWidthForAllTextContainersCheckbox: () => cy.get('.set-textContainer-dimensions-checkbox .ngie-checkbox'),
|
24
|
+
heightLabel: () => cy.get('[aria-labelledby="Height (px)"]'),
|
25
|
+
widthLabel: () => cy.get('[aria-labelledby="Width (px)"]'),
|
26
|
+
heightInputField: () => cy.get('.MuiInputBase-input[aria-label="Height (px)"]'),
|
27
|
+
widthInputField: () => cy.get('.MuiInputBase-input[aria-label="Width (px)"]'),
|
28
|
+
textContainerEditTab: () => cy.get('.canvas-dropzone'),
|
29
|
+
textContainerPreviewTab: () => cy.get('.equation-input-component'),
|
30
|
+
textContainerConnectorStyleLabel: () => cy.get('.set-text-connector-style .textContainer-label'),
|
31
|
+
responseAreaNew: () => cy.get('.canvas-dropzone')
|
21
32
|
}
|
22
33
|
|
23
34
|
const steps = {
|
@@ -25,7 +36,7 @@ const steps = {
|
|
25
36
|
...imageCanvasComponent.steps,
|
26
37
|
...questionInstructionsComponent.steps,
|
27
38
|
...textEntryMathPage.steps,
|
28
|
-
|
39
|
+
...connectorStyleStyleAndLayoutCustomizationComponent.steps,
|
29
40
|
addBackground: () => {
|
30
41
|
textEntryMathWithImagePage.addBackgroundButton()
|
31
42
|
.click();
|
@@ -195,13 +206,130 @@ const steps = {
|
|
195
206
|
.should('have.text', `${index + 1}`)
|
196
207
|
});
|
197
208
|
},
|
209
|
+
|
210
|
+
clickOnCancelButton: () => {
|
211
|
+
textEntryMathWithImagePage.cancelButton()
|
212
|
+
.click();
|
213
|
+
},
|
214
|
+
|
215
|
+
verifyCheckboxIsCheckedForSetHeightAndWidth: () => {
|
216
|
+
textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
|
217
|
+
.should('have.class', 'Mui-checked')
|
218
|
+
},
|
219
|
+
|
220
|
+
verifyCheckboxIsUncheckedForSetHeightAndWidth: () => {
|
221
|
+
textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
|
222
|
+
.should('have.class', 'icon-checkbox-deselected')
|
223
|
+
},
|
224
|
+
|
225
|
+
checkSetHeightAndWidth: () => {
|
226
|
+
textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
|
227
|
+
.click();
|
228
|
+
},
|
229
|
+
|
230
|
+
/**
|
231
|
+
* This function verifies the height of textContainer
|
232
|
+
* @param {number} index of the textContainer
|
233
|
+
* @param {string} height of the textContainer
|
234
|
+
*/
|
235
|
+
verifyHeightOfTextContainerInEditTab: (index, height) => {
|
236
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerEditTab(), index), {
|
237
|
+
'height': height
|
238
|
+
});
|
239
|
+
},
|
240
|
+
|
241
|
+
/**
|
242
|
+
* This function verifies the width of textContainer
|
243
|
+
* @param {number} index of the textContainer
|
244
|
+
* @param {string} width of the textContainer
|
245
|
+
*/
|
246
|
+
verifyWidthOfTextContainerInEditTab: (index, width) => {
|
247
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerEditTab(), index), {
|
248
|
+
'width': width
|
249
|
+
});
|
250
|
+
},
|
251
|
+
|
252
|
+
/**
|
253
|
+
* This function verifies the width of textContainer
|
254
|
+
* @param {number} index of the textContainer
|
255
|
+
* @param {string} width of the textContainer
|
256
|
+
*/
|
257
|
+
verifyWidthOfTextContainerInPreviewTab: (index, width) => {
|
258
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerPreviewTab(), index), {
|
259
|
+
'width': width
|
260
|
+
});
|
261
|
+
},
|
262
|
+
|
263
|
+
/**
|
264
|
+
* This function verifies the height of textContainer
|
265
|
+
* @param {number} index of the textContainer
|
266
|
+
* @param {string} height of the textContainer
|
267
|
+
*/
|
268
|
+
verifyHeightOfTextContainerInPreviewTab: (index, height) => {
|
269
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerPreviewTab(), index), {
|
270
|
+
'height': height
|
271
|
+
});
|
272
|
+
},
|
273
|
+
|
274
|
+
/**
|
275
|
+
*@description this function insert value in height Input field
|
276
|
+
*@param {number} value of input field
|
277
|
+
*/
|
278
|
+
enterValueInHeightInputField: (value) => {
|
279
|
+
textEntryMathWithImagePage.heightInputField()
|
280
|
+
.click()
|
281
|
+
.type(value)
|
282
|
+
.blur()
|
283
|
+
},
|
284
|
+
|
285
|
+
/**
|
286
|
+
*@description this function insert value in width Input field
|
287
|
+
*@param {number} value of input field
|
288
|
+
*/
|
289
|
+
enterValueInWidthInputField: (value) => {
|
290
|
+
textEntryMathWithImagePage.widthInputField()
|
291
|
+
.click()
|
292
|
+
.type(value)
|
293
|
+
.blur()
|
294
|
+
},
|
295
|
+
|
296
|
+
clearWidthInputField: () => {
|
297
|
+
textEntryMathWithImagePage.widthInputField()
|
298
|
+
.clear()
|
299
|
+
.blur()
|
300
|
+
},
|
301
|
+
|
302
|
+
clearHeightInputField: () => {
|
303
|
+
textEntryMathWithImagePage.heightInputField()
|
304
|
+
.clear()
|
305
|
+
.blur()
|
306
|
+
},
|
307
|
+
|
308
|
+
/**
|
309
|
+
*@description this function verify the value of height input Field
|
310
|
+
*@param {string} value of input field
|
311
|
+
*/
|
312
|
+
verifyHeightInputFieldValue: (value) => {
|
313
|
+
textEntryMathWithImagePage.heightInputField()
|
314
|
+
.should('have.value', value)
|
315
|
+
},
|
316
|
+
|
317
|
+
/**
|
318
|
+
*@description this function verify the value of width input Field
|
319
|
+
*@param {string} value of input field
|
320
|
+
*/
|
321
|
+
verifyWidthInputFieldValue: (value) => {
|
322
|
+
textEntryMathWithImagePage.widthInputField()
|
323
|
+
.should('have.value', value)
|
324
|
+
}
|
198
325
|
}
|
199
326
|
|
200
327
|
const tests = {
|
201
328
|
...backgroundImageUploadComponent.tests,
|
202
329
|
...imageCanvasComponent.tests,
|
203
330
|
...questionInstructionsComponent.tests,
|
204
|
-
...autoScoredScoringPreviewTab.tests
|
331
|
+
...autoScoredScoringPreviewTab.tests,
|
332
|
+
...textEntryMathPage.tests,
|
205
333
|
}
|
206
334
|
|
207
335
|
export const textEntryMathWithImagePage = {
|