itemengine-cypress-automation 1.0.85 → 1.0.87
Sign up to get free protection for your applications and to get access to all the features.
- package/Dockerfile +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +30 -30
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +568 -0
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +86 -0
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +389 -0
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +112 -0
- package/cypress/e2e/ILC/EssayResponse/headerSection.js +68 -0
- package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +290 -0
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +79 -0
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +379 -0
- package/cypress/e2e/ILC/EssayResponseBasic/essayResponseBasicCustomizeFormattingOptions.js +207 -0
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +115 -0
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +79 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsBasic.js +159 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +507 -29
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +6 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +272 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +300 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +204 -0
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -4
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +4 -4
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/editTabScoringSection.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +205 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +259 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethods2.js +217 -0
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +202 -0
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +613 -0
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +71 -0
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +318 -318
- package/cypress/fixtures/theme/ilc.json +3 -0
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -2
- package/cypress/pages/components/colorPopupComponent.js +26 -3
- package/cypress/pages/components/createCustomCategoryFlyout.js +351 -46
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +165 -0
- package/cypress/pages/components/equationEditorFlyout.js +124 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +3 -0
- package/cypress/pages/components/figOverImageCanvasComponent.js +316 -7
- package/cypress/pages/components/index.js +3 -1
- package/cypress/pages/components/opacityComponent.js +31 -4
- package/cypress/pages/components/specialAndCustomSpecialCharactersComponent.js +1 -0
- package/cypress/pages/components/specialCharactersFlyoutComponent.js +1 -0
- package/cypress/pages/drawingResponsePage.js +33 -138
- package/cypress/pages/essayResponsePage.js +612 -26
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +48 -7
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +267 -13
- package/package.json +1 -1
@@ -49,5 +49,7 @@ export * from './correctIncorrectAnswerLabelComponent';
|
|
49
49
|
export * from './acceptedStudentInputComponent';
|
50
50
|
export * from './draggableOptionsSectionComponent';
|
51
51
|
export * from './enableOuterBorderComponent';
|
52
|
+
export * from './customizeSpecialCharacterComponent';
|
52
53
|
export * from './opacityComponent';
|
53
|
-
export * from './imageActionsComponent';
|
54
|
+
export * from './imageActionsComponent';
|
55
|
+
export * from './createCustomCategoryFlyout'
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import utilities from "../../support/helpers/utilities";
|
2
|
+
const css = Cypress.env('css');
|
2
3
|
|
3
4
|
const selectors = {
|
4
5
|
opacityLabel: () => cy.get('[class*="OpacityWrapper"] [class*="Label"]').last(),
|
@@ -7,7 +8,7 @@ const selectors = {
|
|
7
8
|
}
|
8
9
|
|
9
10
|
const steps = {
|
10
|
-
verifyDefaultOpacityLabelSliderAndInputField: (
|
11
|
+
verifyDefaultOpacityLabelSliderAndInputField: () => {
|
11
12
|
utilities.verifyInnerText(opacityComponent.opacityLabel(), 'Opacity');
|
12
13
|
utilities.verifyElementVisibilityState(opacityComponent.opacityLabel(), 'visible');
|
13
14
|
utilities.verifyElementVisibilityState(opacityComponent.opacitySlider(), 'visible');
|
@@ -33,7 +34,7 @@ const steps = {
|
|
33
34
|
* @param {number} value holds value of slider
|
34
35
|
* @description function verifies value in slider
|
35
36
|
*/
|
36
|
-
|
37
|
+
verifyValueOfOpacitySlider: (value) => {
|
37
38
|
opacityComponent.opacitySlider()
|
38
39
|
.find('input')
|
39
40
|
.should('have.value', value);
|
@@ -52,13 +53,39 @@ const steps = {
|
|
52
53
|
.should('have.value', value);
|
53
54
|
},
|
54
55
|
|
55
|
-
|
56
|
+
clickActionOnOpacitySlider: () => {
|
56
57
|
opacityComponent.opacitySlider()
|
57
58
|
.click();
|
58
59
|
}
|
59
60
|
}
|
60
61
|
|
62
|
+
const tests = {
|
63
|
+
verifyOpacityCSSAndA11y: () => {
|
64
|
+
it('CSS of \'Opacity\' Section in Edit tab', { tags: 'css' }, () => {
|
65
|
+
utilities.verifyCSS(opacityComponent.opacityLabel(), {
|
66
|
+
'color': css.color.labels,
|
67
|
+
'font-size': css.fontSize.normal,
|
68
|
+
'font-weight': css.fontWeight.semibold
|
69
|
+
});
|
70
|
+
utilities.verifyCSS(opacityComponent.opacityInputField(), {
|
71
|
+
'color': css.color.labels,
|
72
|
+
'font-size': css.fontSize.default,
|
73
|
+
'font-weight': css.fontWeight.regular
|
74
|
+
});
|
75
|
+
utilities.verifyCSS(opacityComponent.opacitySlider(), {
|
76
|
+
'color': css.color.activeButtons,
|
77
|
+
'font-weight': css.fontWeight.regular
|
78
|
+
});
|
79
|
+
});
|
80
|
+
|
81
|
+
it('Accessibility of opacity section', { tags: 'a11y' }, () => {
|
82
|
+
cy.checkAccessibility(opacityComponent.opacityLabel().parents('.MuiGrid-root'));
|
83
|
+
});
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
61
87
|
export const opacityComponent = {
|
62
88
|
...selectors,
|
63
|
-
steps
|
89
|
+
steps,
|
90
|
+
tests
|
64
91
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities"
|
2
|
-
import { questionInstructionsComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, scoringSectionBaseEditTab } from "./components"
|
2
|
+
import { questionInstructionsComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, scoringSectionBaseEditTab, customizeSpecialCharacterComponent } from "./components"
|
3
3
|
import { dialogBoxBase } from "./dialogBoxBase";
|
4
4
|
|
5
5
|
const css = Cypress.env('css');
|
@@ -12,6 +12,7 @@ const selectors = {
|
|
12
12
|
...questionInstructionsComponent,
|
13
13
|
...scoringSectionBaseEditTab,
|
14
14
|
...createQuestionBasePage,
|
15
|
+
...customizeSpecialCharacterComponent,
|
15
16
|
//Customize toolbar options and controls
|
16
17
|
customizeToolbarOptionsAndControlsAccordion: () => cy.get('.drawing-response-accordion .ngie-accordion-summary'),
|
17
18
|
customizeToolbarOptionsAndControlsLabel: () => cy.get('.customized-options-label'),
|
@@ -49,23 +50,17 @@ const selectors = {
|
|
49
50
|
//Customize special characters
|
50
51
|
customizeSpecialCharactersCheckbox: () => cy.get('[data-ngie-testid="customize-special-characters-checkbox"] .ngie-checkbox input'),
|
51
52
|
customizeSpecialCharactersLabel: () => cy.get('[data-ngie-testid="customize-special-characters-checkbox"] [class*="label"]'),
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
selectSpecialCharacterLanguagesLabel: () => cy.get('[class*="CustomizedSpecialCharacterstyles__SpecialCharLabel"]'),
|
57
|
-
customizeSpecialCharactersPreviewButton: () => cy.get('[class*="CustomizedSpecialCharacterstyles__PreviewLabel"]'),
|
58
|
-
charactersCategoryTilesWrapper: () => cy.get('[class*="CustomizedSpecialCharacterstyles__DragAndDropWrapper"]'),
|
59
|
-
specialAndMathCharacterTiles: (specialOrMathCharacterCategory = null) => {
|
60
|
-
if (specialOrMathCharacterCategory) {
|
61
|
-
return cy.get(`[id*="DraggableItem"] button[aria-label="${specialOrMathCharacterCategory}"]`)
|
53
|
+
mathCharactersCategoryTilesWrapper: () => cy.get('[class*="CustomizedSpecialCharacterstyles__DragAndDropWrapper"]'),
|
54
|
+
mathCharacterTiles: (mathCharacterCategory = null) => {
|
55
|
+
if (mathCharacterCategory) {
|
56
|
+
return cy.get(`[id*="DraggableItem"] button[aria-label="${mathCharacterCategory}"]`)
|
62
57
|
} else {
|
63
58
|
return cy.get('[id*="DraggableItem"] button')
|
64
59
|
}
|
65
60
|
},
|
66
|
-
|
67
|
-
|
68
|
-
|
61
|
+
mathCharacterTileIcon: () => cy.get('.equation-editor-icon'),
|
62
|
+
mathCharacterTileCategoryName: () => cy.get('.equation-editor-label-wrapper'),
|
63
|
+
mathCharacterTileSectionCategoriesDragIcon: () => cy.get('.drag-icon-equation-editor-button'),
|
69
64
|
|
70
65
|
//Customize math characters
|
71
66
|
customizeMathCharactersCheckbox: () => cy.get('[data-ngie-testid="customize-math-characters-checkbox"] .ngie-checkbox input'),
|
@@ -74,21 +69,12 @@ const selectors = {
|
|
74
69
|
customizeMathCharactersPreviewButton: () => cy.get('[class*="CustomizedSpecialCharacterstyles__PreviewLabel"]'),
|
75
70
|
|
76
71
|
//Preview popup
|
77
|
-
|
78
|
-
|
79
|
-
//Special characters preview popup
|
80
|
-
specialCharactersPreviewPopupCharactersCategoryWrapper: () => cy.get('[class*="special"][class*="accordion"]'),
|
81
|
-
specialCharactersPreviewPopupCategoryAccordionExpandIcon: () => cy.get('[class*="expandIconWrapper"]'),
|
82
|
-
specialCharactersPreviewPopupCategoryLabel: () => cy.get('[class*="CustomizedSpecialCharacterstyles__AccordionLabel"]'),
|
72
|
+
mathCharactersPreviewPopupSymbol: () => cy.get('[class*="CustomizedSpecialCharacterstyles__CharacterWrapper"]'),
|
83
73
|
|
84
74
|
//Math characters preview popup
|
85
75
|
mathCharactersPreviewPopupCharactersCategoryWrapper: () => cy.get('[class*="CustomizedSpecialCharacterstyles__AccordionWrapper"]'),
|
86
76
|
mathCharactersPreviewPopupCategoryLabel: () => cy.get('[class*="CustomizedMathCharacterstyles__PopupTitle"]'),
|
87
77
|
|
88
|
-
//Show only custom special characters section
|
89
|
-
customSpecialCharactersLabel: () => cy.get('[class*="CustomizedSpecialCharacterstyles__SpecialCharLabel"]'),
|
90
|
-
customSpecialCharactersInputField: () => cy.get('input[aria-label="Custom special characters"]'),
|
91
|
-
|
92
78
|
//Preview tab
|
93
79
|
previewTabDrawingToolbarWrapper: () => cy.get('.edit-question-preview-wrapper .drawing-tool__toolbar'),
|
94
80
|
previewTabDrawingToolbarOption: (drawingOption = null) => {
|
@@ -236,10 +222,10 @@ const selectors = {
|
|
236
222
|
//Math characters popup
|
237
223
|
mathCharactersPopupCategoryTitle: () => cy.get('[class*="characters__container"] [class*="options__characters__title"]'),
|
238
224
|
|
225
|
+
//TODO: Shift all preview tab special characters popup related selectors/steps to a common component file once https://redmine.zeuslearning.com/issues/559296 is resolved
|
239
226
|
//Special characters popup
|
240
227
|
specialCharactersPopupCategoryTitle: () => cy.get('[class*="characters__container"] [class*="options__accordion__header"]'),
|
241
228
|
specialCharactersPopupCategoryAccordionIcon: () => cy.get('[class*="characters__container"] [aria-label="AccordionIcon"]'),
|
242
|
-
customSpecialCharactersInputField: () => cy.get('input[aria-label="Custom special characters"]'),
|
243
229
|
|
244
230
|
//Edit tab color picker popup
|
245
231
|
editTabColorPickerPopupOpacityPalette: () => cy.get('.react-colorful__last-control .react-colorful__interactive'),
|
@@ -268,6 +254,7 @@ const steps = {
|
|
268
254
|
...scoringSectionBaseEditTab.steps,
|
269
255
|
...createQuestionBasePage.steps,
|
270
256
|
...commonComponents.steps,
|
257
|
+
...customizeSpecialCharacterComponent.steps,
|
271
258
|
/**
|
272
259
|
* @param {string[]} arrayOfToolbarOptions array of toolbar options to be selected
|
273
260
|
* @description this function selects toolbar options from edit tab
|
@@ -778,38 +765,6 @@ const steps = {
|
|
778
765
|
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCharactersCategoryWrapper().eq(index), 'notExist');
|
779
766
|
},
|
780
767
|
|
781
|
-
/**
|
782
|
-
* @description Verify the special characters preview popup in edit tab
|
783
|
-
* @param {object[]} categoryAndSymbolsArray Array of list of categories and their symbols
|
784
|
-
*/
|
785
|
-
verifySpecialCharactersPreviewPopupInEditTab: (categoryAndSymbolsArray) => {
|
786
|
-
categoryAndSymbolsArray.forEach((category, index) => {
|
787
|
-
utilities.verifyInnerText(drawingResponsePage.specialCharactersPreviewPopupCategoryLabel().eq(index), `${category.categoryName}`);
|
788
|
-
drawingResponsePage.charactersPopupCharactersCategoryWrapper()
|
789
|
-
.eq(index)
|
790
|
-
.within(() => {
|
791
|
-
drawingResponsePage.specialCharactersPreviewPopupCategoryAccordionExpandIcon()
|
792
|
-
.click();
|
793
|
-
category.symbols.forEach((symbolARIALabel, index) => {
|
794
|
-
drawingResponsePage.charactersPopupCharacterSymbol()
|
795
|
-
.eq(index)
|
796
|
-
.find('svg')
|
797
|
-
.should('have.attr', 'aria-label', `${symbolARIALabel}`);
|
798
|
-
});
|
799
|
-
});
|
800
|
-
});
|
801
|
-
},
|
802
|
-
|
803
|
-
/**
|
804
|
-
* @description Click on category accordion expand icon in special characters popup
|
805
|
-
* @param {number} index Index of category in popup
|
806
|
-
*/
|
807
|
-
clickOnSpecialCharactersPreviewPopupCategoryAccordionExpandIcon: (index) => {
|
808
|
-
drawingResponsePage.specialCharactersPreviewPopupCategoryAccordionExpandIcon()
|
809
|
-
.eq(index)
|
810
|
-
.click();
|
811
|
-
},
|
812
|
-
|
813
768
|
checkCustomizeSpecialCharactersCheckbox: () => {
|
814
769
|
drawingResponsePage.customizeSpecialCharactersCheckbox()
|
815
770
|
.click()
|
@@ -822,36 +777,31 @@ const steps = {
|
|
822
777
|
.should('be.checked');
|
823
778
|
},
|
824
779
|
|
825
|
-
verifyGroupedByLanguageRadioButtonIsSelected: () => {
|
826
|
-
drawingResponsePage.groupByLanguageRadioButton()
|
827
|
-
.should('be.checked');
|
828
|
-
},
|
829
|
-
|
830
780
|
/**
|
831
|
-
* @description Verify customized
|
832
|
-
* @param {string[]} charactersCategoriesArray Array of
|
781
|
+
* @description Verify customized math character category tiles in edit tab
|
782
|
+
* @param {string[]} charactersCategoriesArray Array of math character categories
|
833
783
|
*/
|
834
|
-
|
835
|
-
drawingResponsePage.
|
784
|
+
verifyCustomizeMathCharactersCategoryTiles: (charactersCategoriesArray) => {
|
785
|
+
drawingResponsePage.mathCharactersCategoryTilesWrapper()
|
836
786
|
.within(() => {
|
837
787
|
charactersCategoriesArray.forEach((characterCategory, index) => {
|
838
|
-
drawingResponsePage.
|
788
|
+
drawingResponsePage.mathCharacterTiles()
|
839
789
|
.eq(index)
|
840
790
|
.should('have.attr', 'aria-label', `${characterCategory}`);
|
841
791
|
});
|
842
792
|
});
|
843
|
-
utilities.verifyElementCount(drawingResponsePage.
|
793
|
+
utilities.verifyElementCount(drawingResponsePage.mathCharacterTiles(), charactersCategoriesArray.length);
|
844
794
|
},
|
845
795
|
|
846
796
|
/**
|
847
|
-
* @description Verify selected
|
848
|
-
* @param {string[]}
|
797
|
+
* @description Verify selected math characters category tiles
|
798
|
+
* @param {string[]} selectedMathCharactersCategoriesArray Array of selected math characters categories
|
849
799
|
*/
|
850
|
-
|
851
|
-
drawingResponsePage.
|
800
|
+
verifySelectedCustomizeMathCharactersCategoryTiles: (selectedMathCharactersCategoriesArray) => {
|
801
|
+
drawingResponsePage.mathCharactersCategoryTilesWrapper()
|
852
802
|
.within(() => {
|
853
|
-
|
854
|
-
drawingResponsePage.
|
803
|
+
selectedMathCharactersCategoriesArray.forEach((characterCategory) => {
|
804
|
+
drawingResponsePage.mathCharacterTiles(characterCategory)
|
855
805
|
.should('have.class', 'Mui-selected')
|
856
806
|
.within(() => {
|
857
807
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon(), 'visible');
|
@@ -860,11 +810,6 @@ const steps = {
|
|
860
810
|
});
|
861
811
|
},
|
862
812
|
|
863
|
-
clickOnCustomizeSpecialCharactersPreviewButton: () => {
|
864
|
-
drawingResponsePage.customizeSpecialCharactersPreviewButton()
|
865
|
-
.click();
|
866
|
-
},
|
867
|
-
|
868
813
|
clickOnCustomizeMathCharactersPreviewButton: () => {
|
869
814
|
drawingResponsePage.customizeMathCharactersPreviewButton()
|
870
815
|
.click();
|
@@ -881,51 +826,31 @@ const steps = {
|
|
881
826
|
.eq(index)
|
882
827
|
.within(() => {
|
883
828
|
category.symbols.forEach((symbol, index) => {
|
884
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.
|
885
|
-
drawingResponsePage.
|
829
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.mathCharactersPreviewPopupSymbol().eq(index), 'visible');
|
830
|
+
drawingResponsePage.mathCharactersPreviewPopupSymbol()
|
886
831
|
.eq(index)
|
887
832
|
.find('path')
|
888
833
|
.should('have.attr', 'data-name', `${symbol}`);
|
889
834
|
});
|
890
|
-
utilities.verifyElementCount(drawingResponsePage.
|
835
|
+
utilities.verifyElementCount(drawingResponsePage.mathCharactersPreviewPopupSymbol(), category.symbols.length);
|
891
836
|
});
|
892
837
|
});
|
893
838
|
utilities.verifyElementCount(drawingResponsePage.mathCharactersPreviewPopupCharactersCategoryWrapper(), categoryAndSymbolsArray.length);
|
894
839
|
},
|
895
840
|
|
896
|
-
|
897
|
-
drawingResponsePage.
|
841
|
+
clickOnMathCharactersCategoryTile: (categoryName) => {
|
842
|
+
drawingResponsePage.mathCharacterTiles(categoryName)
|
898
843
|
.click();
|
899
844
|
},
|
900
845
|
|
901
|
-
|
902
|
-
drawingResponsePage.
|
903
|
-
.should('have.attr', 'aria-pressed', 'true')
|
904
|
-
.within(() => {
|
905
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon(), 'visible');
|
906
|
-
});
|
907
|
-
},
|
908
|
-
|
909
|
-
verifySpecialOrMathCharacterCategoryTileIsNotSelected: (categoryName) => {
|
910
|
-
drawingResponsePage.specialAndMathCharacterTiles(categoryName)
|
846
|
+
verifyMathCharacterCategoryTileIsNotSelected: (categoryName) => {
|
847
|
+
drawingResponsePage.mathCharacterTiles(categoryName)
|
911
848
|
.should('have.attr', 'aria-pressed', 'false')
|
912
849
|
.within(() => {
|
913
850
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon(), 'hidden');
|
914
851
|
});
|
915
852
|
},
|
916
853
|
|
917
|
-
selectShowOnlyCustomSpecialCharactersRadioButton: () => {
|
918
|
-
drawingResponsePage.showOnlyCustomSpecialCharactersRadioButton()
|
919
|
-
.click()
|
920
|
-
.should('be.checked');
|
921
|
-
},
|
922
|
-
|
923
|
-
selectGroupByLanguageRadioButton: () => {
|
924
|
-
drawingResponsePage.groupByLanguageRadioButton()
|
925
|
-
.click()
|
926
|
-
.should('be.checked');
|
927
|
-
},
|
928
|
-
|
929
854
|
verifyPatternRadioButtonIsNotSelected: () => {
|
930
855
|
drawingResponsePage.patternRadioButton()
|
931
856
|
.should('not.be.checked');
|
@@ -937,24 +862,6 @@ const steps = {
|
|
937
862
|
.should('be.checked');
|
938
863
|
},
|
939
864
|
|
940
|
-
addInputToCustomSpecialCharactersInputField: (input) => {
|
941
|
-
drawingResponsePage.customSpecialCharactersInputField()
|
942
|
-
.type(`${input}`)
|
943
|
-
.should('have.value', `${input}`)
|
944
|
-
},
|
945
|
-
|
946
|
-
/**
|
947
|
-
* Verify custom special characters displayed in edit tab preview popup
|
948
|
-
* @param {string[]} customSpecialCharacters Array of custom special characters
|
949
|
-
*/
|
950
|
-
verifyCustomSpecialCharactersDisplayedInPreviewPopupEditTab: (customSpecialCharacters) => {
|
951
|
-
customSpecialCharacters.forEach((customSpecialCharacter, index) => {
|
952
|
-
utilities.verifyInnerText(drawingResponsePage.charactersPreviewPopupSymbol().eq(index), `${customSpecialCharacter}`);
|
953
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPreviewPopupSymbol().eq(index), 'visible');
|
954
|
-
});
|
955
|
-
utilities.verifyElementCount(drawingResponsePage.charactersPreviewPopupSymbol(), `${customSpecialCharacters.length}`);
|
956
|
-
},
|
957
|
-
|
958
865
|
/**
|
959
866
|
* Verify custom special characters displayed in characters popup in preview tab
|
960
867
|
* @param {string[]} customSpecialCharacters Array of custom special characters
|
@@ -1332,12 +1239,6 @@ const steps = {
|
|
1332
1239
|
.should('be.checked');
|
1333
1240
|
},
|
1334
1241
|
|
1335
|
-
selectShowOnlyCustomSpecialCharactersRadioButton: () => {
|
1336
|
-
drawingResponsePage.showOnlyCustomSpecialCharactersRadioButton()
|
1337
|
-
.click()
|
1338
|
-
.should('be.checked');
|
1339
|
-
},
|
1340
|
-
|
1341
1242
|
verifyFillImageToCanvasCheckboxIsUnchecked: () => {
|
1342
1243
|
drawingResponsePage.fillImageToCanvasCheckbox()
|
1343
1244
|
.should('not.be.checked');
|
@@ -1382,12 +1283,6 @@ const steps = {
|
|
1382
1283
|
.click();
|
1383
1284
|
},
|
1384
1285
|
|
1385
|
-
addInputToCustomSpecialCharactersInputField: (input) => {
|
1386
|
-
drawingResponsePage.customSpecialCharactersInputField()
|
1387
|
-
.type(`${input}`)
|
1388
|
-
.should('have.value', `${input}`)
|
1389
|
-
},
|
1390
|
-
|
1391
1286
|
selectCustomSpecialCharacter: () => {
|
1392
1287
|
drawingResponsePage.charactersPopupCharacterSymbol()
|
1393
1288
|
.click();
|
@@ -1440,8 +1335,8 @@ const steps = {
|
|
1440
1335
|
* @description verifies that the toolbar and controls formating options is in selected state.
|
1441
1336
|
*/
|
1442
1337
|
verifyToolbarAndControlsOptionsSelectedState: (toolbarAndControlOption) => {
|
1443
|
-
|
1444
|
-
|
1338
|
+
drawingResponsePage.toolbarOptionsAndControlsFormattingOptionsTiles(toolbarAndControlOption)
|
1339
|
+
.should('have.class', 'Mui-selected');
|
1445
1340
|
}
|
1446
1341
|
}
|
1447
1342
|
|