itemengine-cypress-automation 1.0.155-migrationScripts-86e4c95.0 → 1.0.156-01AprilFixes-fc21452.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +6 -6
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +34 -29
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +20 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +5 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +0 -8
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +39 -35
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +8 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +475 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +669 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +1 -1
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +0 -11
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +204 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +229 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutPreviewTabFunctionality.js +219 -0
- package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/Matching/headerSection.js +82 -0
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +93 -0
- package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +8 -10
- package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +16 -25
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +403 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +363 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +393 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +377 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +373 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +0 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +27 -8
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +15 -34
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -15
- package/cypress/e2e/ILC/ShortTextResponseNew/specifyCorrectAnswerSection.js +4 -4
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +4 -2
- package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +185 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +263 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +205 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +214 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +213 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +21 -17
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +25 -25
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +20 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +2 -3
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +2 -2
- package/cypress/fixtures/fillColorDefaultProperties.js +35 -0
- package/cypress/fixtures/theme/ilc.json +2 -1
- package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +4 -1
- package/cypress/pages/components/colorPopupComponent.js +6 -3
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +47 -12
- package/cypress/pages/components/gridQuestionCommonComponent.js +0 -81
- package/cypress/pages/components/imageCanvasComponent.js +10 -8
- package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +4 -4
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +34 -23
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +26 -4
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +0 -29
- package/cypress/pages/graphingPage.js +26 -16
- package/cypress/pages/gridFillPage.js +1610 -90
- package/cypress/pages/matchingPage.js +164 -20
- package/cypress/pages/multipleSelectionGridPage.js +82 -2
- package/cypress/pages/multipleSelectionPage.js +7 -2
- package/cypress/pages/rulerPage.js +3 -8
- package/cypress/pages/shortTextResponsePage.js +13 -0
- package/cypress/pages/simpleCalculatorPage.js +8 -0
- package/cypress/pages/singleSelectionGridPage.js +58 -2
- package/cypress/pages/textEntryMathPage.js +58 -11
- package/cypress/pages/uploadResponsePage.js +4 -2
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
- package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -0,0 +1,475 @@
|
|
1
|
+
import { gridFillPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
import { gridFillColorProperties } from "../../../fixtures/fillColorDefaultProperties";
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
describe('Create item page - Grid fill: Customize layout section - \'Fill type\'', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('\'Fill type\' section - contents', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('\'Fill type\' label should be displayed', () => {
|
21
|
+
utilities.verifyInnerText(gridFillPage.fillTypeLabel(), 'Fill type');
|
22
|
+
utilities.verifyElementVisibilityState(gridFillPage.fillTypeLabel(), 'visible');
|
23
|
+
});
|
24
|
+
|
25
|
+
it('\'Color\' and \'Image\' labels and radio buttons should be displayed and \'Color\' radio button should be selected', () => {
|
26
|
+
utilities.verifyInnerText(gridFillPage.colorLabel(), 'Color');
|
27
|
+
utilities.verifyElementVisibilityState(gridFillPage.colorLabel(), 'visible');
|
28
|
+
utilities.verifyInnerText(gridFillPage.imageLabel(), 'Image');
|
29
|
+
utilities.verifyElementVisibilityState(gridFillPage.imageLabel(), 'visible');
|
30
|
+
utilities.verifyElementVisibilityState(gridFillPage.colorRadioButton(), 'exist');
|
31
|
+
utilities.verifyElementVisibilityState(gridFillPage.imageRadioButton(), 'exist');
|
32
|
+
gridFillPage.steps.verifyColorRadioButtonIsSelected();
|
33
|
+
});
|
34
|
+
|
35
|
+
it(`\'Customize highlight properties\' accordion should have \'Default\' section with ${gridFillColorProperties['default'].displayName} label, fill color label, border color label, hex colors and opacity with color blocks`, () => {
|
36
|
+
utilities.verifyInnerText(gridFillPage.defaultLabel(), gridFillColorProperties['default'].displayName);
|
37
|
+
utilities.verifyInnerText(gridFillPage.defaultFillColorLabel(), 'Fill color');
|
38
|
+
utilities.verifyInnerText(gridFillPage.defaultBorderColorLabel(), 'Border color');
|
39
|
+
utilities.verifyInnerText(gridFillPage.defaultFillColorHexCodeLabel(), gridFillColorProperties.default.colorProperties.fillColorHexValue);
|
40
|
+
utilities.verifyInnerText(gridFillPage.defaultBorderColorHexCodeLabel(), gridFillColorProperties.default.colorProperties.borderColorHexValue);
|
41
|
+
utilities.verifyInnerText(gridFillPage.defaultFillColorOpacityLabel(), `${gridFillColorProperties.default.colorProperties.fillColorOpacity}%`);
|
42
|
+
utilities.verifyInnerText(gridFillPage.defaultBorderColorOpacityLabel(), `${gridFillColorProperties.default.colorProperties.borderColorOpacity}%`);
|
43
|
+
utilities.verifyElementVisibilityState(gridFillPage.defaultFillColorBlock(), 'visible');
|
44
|
+
gridFillPage.steps.verifyDefaultFillColorBlockColor(gridFillColorProperties.default.colorProperties.fillColorRgbaValue);
|
45
|
+
utilities.verifyElementVisibilityState(gridFillPage.defaultBorderColorBlock(), 'visible');
|
46
|
+
gridFillPage.steps.verifyDefaultBorderColorBlockColor(gridFillColorProperties.default.colorProperties.borderColorRgbValue);
|
47
|
+
});
|
48
|
+
|
49
|
+
it(`\'Customize highlight properties\' accordion should have \'Hover\' section with ${gridFillColorProperties['hover'].displayName} label, fill color label, border color label, hex colors and opacity with color blocks`, () => {
|
50
|
+
utilities.verifyInnerText(gridFillPage.hoverLabel(), gridFillColorProperties['hover'].displayName);
|
51
|
+
utilities.verifyInnerText(gridFillPage.hoverFillColorLabel(), 'Fill color');
|
52
|
+
utilities.verifyInnerText(gridFillPage.hoverBorderColorLabel(), 'Border color');
|
53
|
+
utilities.verifyInnerText(gridFillPage.hoverFillColorHexCodeLabel(), gridFillColorProperties.hover.colorProperties.fillColorHexValue);
|
54
|
+
utilities.verifyInnerText(gridFillPage.hoverBorderColorHexCodeLabel(), gridFillColorProperties.hover.colorProperties.borderColorHexValue);
|
55
|
+
utilities.verifyInnerText(gridFillPage.hoverFillColorOpacityLabel(), `${gridFillColorProperties.hover.colorProperties.fillColorOpacity}%`);
|
56
|
+
utilities.verifyInnerText(gridFillPage.hoverBorderColorOpacityLabel(), `${gridFillColorProperties.hover.colorProperties.borderColorOpacity}%`);
|
57
|
+
utilities.verifyElementVisibilityState(gridFillPage.hoverFillColorBlock(), 'visible');
|
58
|
+
gridFillPage.steps.verifyHoverFillColorBlockColor(gridFillColorProperties.hover.colorProperties.fillColorRgbaValue);
|
59
|
+
utilities.verifyElementVisibilityState(gridFillPage.hoverBorderColorBlock(), 'visible');
|
60
|
+
gridFillPage.steps.verifyHoverBorderColorBlockColor(gridFillColorProperties.hover.colorProperties.borderColorRgbValue);
|
61
|
+
});
|
62
|
+
|
63
|
+
it(`\'Customize highlight properties\' accordion should have \'Filled\' section with ${gridFillColorProperties['filled'].displayName} label, fill color label, border color label, hex colors and opacity with color blocks`, () => {
|
64
|
+
utilities.verifyInnerText(gridFillPage.filledLabel(), gridFillColorProperties['filled'].displayName);
|
65
|
+
utilities.verifyInnerText(gridFillPage.filledFillColorLabel(), 'Fill color');
|
66
|
+
utilities.verifyInnerText(gridFillPage.filledBorderColorLabel(), 'Border color');
|
67
|
+
utilities.verifyInnerText(gridFillPage.filledFillColorHexCodeLabel(), gridFillColorProperties.filled.colorProperties.fillColorHexValue);
|
68
|
+
utilities.verifyInnerText(gridFillPage.filledBorderColorHexCodeLabel(), gridFillColorProperties.filled.colorProperties.borderColorHexValue);
|
69
|
+
utilities.verifyInnerText(gridFillPage.filledFillColorOpacityLabel(), `${gridFillColorProperties.filled.colorProperties.fillColorOpacity}%`);
|
70
|
+
utilities.verifyInnerText(gridFillPage.filledBorderColorOpacityLabel(), `${gridFillColorProperties.filled.colorProperties.borderColorOpacity}%`);
|
71
|
+
utilities.verifyElementVisibilityState(gridFillPage.filledFillColorBlock(), 'visible');
|
72
|
+
gridFillPage.steps.verifyFilledFillColorBlockColor(gridFillColorProperties.filled.colorProperties.fillColorRgbaValue);
|
73
|
+
utilities.verifyElementVisibilityState(gridFillPage.filledBorderColorBlock(), 'visible');
|
74
|
+
gridFillPage.steps.verifyFilledBorderColorBlockColor(gridFillColorProperties.filled.colorProperties.borderColorRgbValue);
|
75
|
+
});
|
76
|
+
|
77
|
+
it('\'Apply pattern on active state\' label and checkbox should be displayed and by default the checkbox should be checked', () => {
|
78
|
+
utilities.verifyInnerText(gridFillPage.applyPatternOnActiveStateLabel(), 'Apply pattern on active state');
|
79
|
+
utilities.verifyElementVisibilityState(gridFillPage.applyPatternOnActiveStateLabel(), 'visible');
|
80
|
+
gridFillPage.steps.verifyApplyPatternOnActiveStateCheckboxIsNotChecked();
|
81
|
+
});
|
82
|
+
|
83
|
+
it('CSS of \'Fill type\' color section', { tags: 'css' }, () => {
|
84
|
+
utilities.verifyCSS(gridFillPage.fillTypeLabel(), {
|
85
|
+
'color': css.color.labels,
|
86
|
+
'font-size': css.fontSize.normal,
|
87
|
+
'font-weight': css.fontWeight.semibold
|
88
|
+
});
|
89
|
+
utilities.verifyCSS(gridFillPage.colorLabel(), {
|
90
|
+
'color': css.color.labels,
|
91
|
+
'font-size': css.fontSize.normal,
|
92
|
+
'font-weight': css.fontWeight.regular
|
93
|
+
});
|
94
|
+
utilities.verifyCSS(gridFillPage.imageLabel(), {
|
95
|
+
'color': css.color.labels,
|
96
|
+
'font-size': css.fontSize.normal,
|
97
|
+
'font-weight': css.fontWeight.regular
|
98
|
+
});
|
99
|
+
utilities.verifyCSS(gridFillPage.applyPatternOnActiveStateLabel(), {
|
100
|
+
'color': css.color.labelText,
|
101
|
+
'font-size': css.fontSize.normal,
|
102
|
+
'font-weight': css.fontWeight.regular
|
103
|
+
});
|
104
|
+
gridFillPage.steps.verifyFillColorDefaultContentCSS();
|
105
|
+
gridFillPage.steps.verifyFillColorHoverContentCSS();
|
106
|
+
gridFillPage.steps.verifyFillColorFilledContentCSS();
|
107
|
+
});
|
108
|
+
|
109
|
+
//Accessibility verified in customizeLayoutSectionShadeCellsGridBorders.js
|
110
|
+
});
|
111
|
+
|
112
|
+
describe('\'Fill type\' section - Select color contents and functionality', () => {
|
113
|
+
abortEarlySetup();
|
114
|
+
before(() => {
|
115
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
116
|
+
cy.barsPreLoaderWait();
|
117
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
118
|
+
});
|
119
|
+
|
120
|
+
it('When the user clicks on the color block, a color popup should be visible with a title \'Select color\',\'Color saturation\' and \'Color hue\' palette along with the color picker should be displayed, labels \'Selected color\', \'Hex\', \'Opacity\' along with the input field and \'Recommended colors\' label along with recommended color blocks - Red, Yellow, Green, Black should be displayed', () => {
|
121
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
122
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
123
|
+
gridFillPage.steps.verifyColorPopupSelectColorTitle();
|
124
|
+
gridFillPage.steps.verifyColorSaturationPaletteAndPicker();
|
125
|
+
gridFillPage.steps.verifySaturationPaletteColor('rgb(189, 203, 255)');
|
126
|
+
gridFillPage.steps.verifyColorHuePaletteAndPicker();
|
127
|
+
gridFillPage.steps.verifyHuePaletteColor('rgb(0, 55, 255)');
|
128
|
+
gridFillPage.steps.verifySelectedColorLabelAndSelectedColorBlock();
|
129
|
+
gridFillPage.steps.verifyHexLabelAndInputField();
|
130
|
+
gridFillPage.steps.verifyOpacityLabelSliderAndInputField();
|
131
|
+
gridFillPage.steps.verifyRecommendedColorBlocksLabel();
|
132
|
+
gridFillPage.steps.verifyColorPopupCancelButton();
|
133
|
+
gridFillPage.steps.verifyColorPopupOkButton();
|
134
|
+
gridFillPage.steps.clickOnCancelButton();
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When the user clicks on the default \'Fill color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the default \'Fill color\' block', () => {
|
138
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
139
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
140
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.default.colorProperties.fillColorRgbaValue);
|
141
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.default.colorProperties.fillColorHexValue);
|
142
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.default.colorProperties.fillColorOpacity);
|
143
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.default.colorProperties.fillColorOpacity);
|
144
|
+
gridFillPage.steps.selectRecommendedColorBlock(0);
|
145
|
+
gridFillPage.steps.addInputToOpacityInputField(20);
|
146
|
+
gridFillPage.steps.clickOnOkButton();
|
147
|
+
gridFillPage.steps.verifyDefaultFillColorBlockColor('rgba(229, 76, 25, 0.2)');
|
148
|
+
gridFillPage.steps.verifyDefaultFillColorHexCodeLabel('#E54C19');
|
149
|
+
gridFillPage.steps.verifyDefaultFillColorOpacityLabel('20%');
|
150
|
+
});
|
151
|
+
|
152
|
+
it('When the user clicks on the default \'Border color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the default \'Border color\' block', () => {
|
153
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultBorderColor');
|
154
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
155
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.default.colorProperties.borderColorRgbValue);
|
156
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.default.colorProperties.borderColorHexValue);
|
157
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.default.colorProperties.borderColorOpacity);
|
158
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.default.colorProperties.borderColorOpacity);
|
159
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
160
|
+
gridFillPage.steps.addInputToOpacityInputField(30);
|
161
|
+
gridFillPage.steps.clickOnOkButton();
|
162
|
+
gridFillPage.steps.verifyDefaultBorderColorBlockColor('rgba(255, 240, 25, 0.3)');
|
163
|
+
gridFillPage.steps.verifyDefaultBorderColorHexCodeLabel('#FFF019');
|
164
|
+
gridFillPage.steps.verifyDefaultBorderColorOpacityLabel('30%')
|
165
|
+
});
|
166
|
+
|
167
|
+
it('When the user clicks on the hover \'Fill color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the hover \'Fill color\' block', () => {
|
168
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverFillColor');
|
169
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
170
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.hover.colorProperties.fillColorRgbaValue);
|
171
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.hover.colorProperties.fillColorHexValue);
|
172
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.hover.colorProperties.fillColorOpacity);
|
173
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.hover.colorProperties.fillColorOpacity);
|
174
|
+
gridFillPage.steps.selectRecommendedColorBlock(2);
|
175
|
+
gridFillPage.steps.addInputToOpacityInputField(60);
|
176
|
+
gridFillPage.steps.clickOnOkButton();
|
177
|
+
gridFillPage.steps.verifyHoverFillColorBlockColor('rgba(9, 179, 33, 0.6)');
|
178
|
+
gridFillPage.steps.verifyHoverFillColorHexCodeLabel('#09B321');
|
179
|
+
gridFillPage.steps.verifyHoverFillColorOpacityLabel('60%')
|
180
|
+
});
|
181
|
+
|
182
|
+
it('When the user clicks on the hover \'Border color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the hover \'Border color\' block', () => {
|
183
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverBorderColor');
|
184
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
185
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.hover.colorProperties.borderColorRgbValue);
|
186
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.hover.colorProperties.borderColorHexValue);
|
187
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.hover.colorProperties.borderColorOpacity);
|
188
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.hover.colorProperties.borderColorOpacity);
|
189
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
190
|
+
gridFillPage.steps.addInputToOpacityInputField(90);
|
191
|
+
gridFillPage.steps.clickOnOkButton();
|
192
|
+
gridFillPage.steps.verifyHoverBorderColorBlockColor('rgba(0, 0, 0, 0.9)');
|
193
|
+
gridFillPage.steps.verifyHoverBorderColorHexCodeLabel('#000000');
|
194
|
+
gridFillPage.steps.verifyHoverBorderColorOpacityLabel('90%')
|
195
|
+
});
|
196
|
+
|
197
|
+
it('When the user clicks on the Filled \'Fill color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the Filled \'Fill color\' block', () => {
|
198
|
+
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
199
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
200
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.filled.colorProperties.fillColorRgbaValue);
|
201
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.filled.colorProperties.fillColorHexValue);
|
202
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.filled.colorProperties.fillColorOpacity);
|
203
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.filled.colorProperties.fillColorOpacity);
|
204
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
205
|
+
gridFillPage.steps.addInputToOpacityInputField(10);
|
206
|
+
gridFillPage.steps.clickOnOkButton();
|
207
|
+
gridFillPage.steps.verifyFilledFillColorBlockColor('rgba(255, 240, 25, 0.1)');
|
208
|
+
gridFillPage.steps.verifyFilledFillColorHexCodeLabel('#FFF019');
|
209
|
+
gridFillPage.steps.verifyFilledFillColorOpacityLabel('10%')
|
210
|
+
});
|
211
|
+
|
212
|
+
it('When the user clicks on the Filled \'Border color\' block, a color popup should be visible with pre-filled values of \'Selected color\', \'Hex code\' and \'Opacity\' and the user should able to change the selected color and opacity which should be displayed in the Filled \'Border color\' block', () => {
|
213
|
+
gridFillPage.steps.clickOnFillColorBlock('filledBorderColor');
|
214
|
+
gridFillPage.steps.verifyColorPopupIsDisplayed();
|
215
|
+
gridFillPage.steps.verifySelectedColorBlock(gridFillColorProperties.filled.colorProperties.borderColorRgbValue);
|
216
|
+
gridFillPage.steps.verifyHexValue(gridFillColorProperties.filled.colorProperties.borderColorHexValue);
|
217
|
+
gridFillPage.steps.verifyOpacityInputFieldValue(gridFillColorProperties.filled.colorProperties.borderColorOpacity);
|
218
|
+
gridFillPage.steps.verifyOpacitySliderValue(gridFillColorProperties.filled.colorProperties.borderColorOpacity);
|
219
|
+
gridFillPage.steps.selectRecommendedColorBlock(2);
|
220
|
+
gridFillPage.steps.addInputToOpacityInputField(80);
|
221
|
+
gridFillPage.steps.clickOnOkButton();
|
222
|
+
gridFillPage.steps.verifyFilledBorderColorBlockColor('rgba(9, 179, 33, 0.8)');
|
223
|
+
gridFillPage.steps.verifyFilledBorderColorHexCodeLabel('#09B321');
|
224
|
+
gridFillPage.steps.verifyFilledBorderColorOpacityLabel('80%')
|
225
|
+
});
|
226
|
+
});
|
227
|
+
|
228
|
+
describe('\'Fill type\' section - Fill color functionality in edit tab', () => {
|
229
|
+
abortEarlySetup();
|
230
|
+
before(() => {
|
231
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
232
|
+
cy.barsPreLoaderWait();
|
233
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
234
|
+
});
|
235
|
+
|
236
|
+
it('When user changes the default fill color and border color, then the updated colors should be applied to all the grids in edit tab', () => {
|
237
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
238
|
+
gridFillPage.steps.selectRecommendedColorBlock(0);
|
239
|
+
gridFillPage.steps.addInputToOpacityInputField(30);
|
240
|
+
gridFillPage.steps.clickOnOkButton();
|
241
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultBorderColor');
|
242
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
243
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
244
|
+
gridFillPage.steps.clickOnOkButton();
|
245
|
+
gridFillPage.steps.verifyDefaultStateCSSForGridInEditTab('rgba(229, 76, 25, 0.3)', 'rgba(255, 240, 25, 0.5)');
|
246
|
+
});
|
247
|
+
|
248
|
+
it('When user changes the hover fill color and border color, then the updated colors should be applied to all the grids in edit tab', () => {
|
249
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverFillColor');
|
250
|
+
gridFillPage.steps.selectRecommendedColorBlock(2);
|
251
|
+
gridFillPage.steps.addInputToOpacityInputField(60);
|
252
|
+
gridFillPage.steps.clickOnOkButton();
|
253
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverBorderColor');
|
254
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
255
|
+
gridFillPage.steps.addInputToOpacityInputField(70);
|
256
|
+
gridFillPage.steps.clickOnOkButton();
|
257
|
+
gridFillPage.steps.verifyHoverStateCSSForGridInEditTab('rgba(9, 179, 33, 0.6)', 'rgba(0, 0, 0, 0.7)');
|
258
|
+
});
|
259
|
+
|
260
|
+
it('When user changes the filled fill color and border color, then the updated colors should be applied to all the grids in edit tab', () => {
|
261
|
+
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
262
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
263
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
264
|
+
gridFillPage.steps.clickOnOkButton();
|
265
|
+
gridFillPage.steps.clickOnFillColorBlock('filledBorderColor');
|
266
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
267
|
+
gridFillPage.steps.addInputToOpacityInputField(80);
|
268
|
+
gridFillPage.steps.clickOnOkButton();
|
269
|
+
gridFillPage.steps.verifyFilledStateCSSForGridInEditTab('rgba(255, 240, 25, 0.5)', 'rgba(0, 0, 0, 0.8)');
|
270
|
+
});
|
271
|
+
});
|
272
|
+
|
273
|
+
describe('\'Fill type\' section - Fill color functionality in preview tab', () => {
|
274
|
+
abortEarlySetup();
|
275
|
+
before(() => {
|
276
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
277
|
+
cy.barsPreLoaderWait();
|
278
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
279
|
+
});
|
280
|
+
|
281
|
+
it('When user changes the default fill color and border color, then the updated colors should be applied to the grid in preview tab', () => {
|
282
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
283
|
+
gridFillPage.steps.selectRecommendedColorBlock(0);
|
284
|
+
gridFillPage.steps.addInputToOpacityInputField(30);
|
285
|
+
gridFillPage.steps.clickOnOkButton();
|
286
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultBorderColor');
|
287
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
288
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
289
|
+
gridFillPage.steps.clickOnOkButton();
|
290
|
+
gridFillPage.steps.switchToPreviewTab();
|
291
|
+
gridFillPage.steps.verifyDefaultStateCSSForGridInPreviewTabTab('rgba(229, 76, 25, 0.3)', 'rgba(255, 240, 25, 0.5)');
|
292
|
+
});
|
293
|
+
|
294
|
+
it('When user changes the hover fill color and border color, then the updated colors should be applied to the grid in preview tab', () => {
|
295
|
+
gridFillPage.steps.switchToEditTab();
|
296
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverFillColor');
|
297
|
+
gridFillPage.steps.selectRecommendedColorBlock(2);
|
298
|
+
gridFillPage.steps.addInputToOpacityInputField(60);
|
299
|
+
gridFillPage.steps.clickOnOkButton();
|
300
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverBorderColor');
|
301
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
302
|
+
gridFillPage.steps.addInputToOpacityInputField(70);
|
303
|
+
gridFillPage.steps.clickOnOkButton();
|
304
|
+
gridFillPage.steps.switchToPreviewTab();
|
305
|
+
gridFillPage.steps.verifyHoverStateCSSForGridInPreviewTab('rgba(9, 179, 33, 0.6)', 'rgba(0, 0, 0, 0.7)');
|
306
|
+
});
|
307
|
+
|
308
|
+
it('When user changes the filled fill color and border color, then the updated colors should be applied to the grid in preview tab', () => {
|
309
|
+
gridFillPage.steps.switchToEditTab();
|
310
|
+
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
311
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
312
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
313
|
+
gridFillPage.steps.clickOnOkButton();
|
314
|
+
gridFillPage.steps.clickOnFillColorBlock('filledBorderColor');
|
315
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
316
|
+
gridFillPage.steps.addInputToOpacityInputField(80);
|
317
|
+
gridFillPage.steps.clickOnOkButton();
|
318
|
+
gridFillPage.steps.switchToPreviewTab();
|
319
|
+
gridFillPage.steps.verifyFilledStateCSSForGridInPreviewTab('rgba(255, 240, 25, 0.5)', 'rgba(0, 0, 0, 0.8)');
|
320
|
+
});
|
321
|
+
});
|
322
|
+
|
323
|
+
describe('\'Apply pattern on active state\' - Edit tab functionality', () => {
|
324
|
+
abortEarlySetup();
|
325
|
+
before(() => {
|
326
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
327
|
+
cy.barsPreLoaderWait();
|
328
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
329
|
+
});
|
330
|
+
|
331
|
+
it('User should be able to check \'Apply pattern on active state\' checkbox', () => {
|
332
|
+
gridFillPage.steps.checkApplyPatternOnActiveStateCheckbox();
|
333
|
+
});
|
334
|
+
|
335
|
+
it('When user \'Apply pattern on active state\' checkbox is checked, then pattern should be displayed on the fill color block in filled section', () => {
|
336
|
+
gridFillPage.steps.verifyPatternAppliedOnFilledState();
|
337
|
+
})
|
338
|
+
|
339
|
+
it('When \'Apply pattern on active state\' checkbox is checked and user shades cell in customize layout section grid, then pattern should be displayed in the shaded cell.', () => {
|
340
|
+
gridFillPage.steps.shadeCell(0, 0);
|
341
|
+
gridFillPage.steps.verifyPatternIsDisplayedInCellInCustomizeLayoutSection(0, 0);
|
342
|
+
});
|
343
|
+
|
344
|
+
it('When \'Apply pattern on active state\' checkbox is checked and user selects cell in specify correct answer section grid, then pattern should be displayed in the selected cell.', () => {
|
345
|
+
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
346
|
+
gridFillPage.steps.verifyPatternIsDisplayedInCellInSpecifyCorrectAnswerSection(0, 0);
|
347
|
+
});
|
348
|
+
|
349
|
+
it('User should be uncheck the \'Apply pattern on active state\' checkbox', () => {
|
350
|
+
gridFillPage.steps.uncheckApplyPatternOnActiveStateCheckbox();
|
351
|
+
});
|
352
|
+
|
353
|
+
it('When \'Apply pattern on active state\' checkbox is unchecked, then pattern should not be displayed in fill color block in filled section', () => {
|
354
|
+
gridFillPage.steps.verifyPatternNotAppliedOnFilledState();
|
355
|
+
});
|
356
|
+
|
357
|
+
it('When \'Apply pattern on active state\' checkbox is unchecked, then pattern should not be displayed in shaded/selected grid cells in edit tab', () => {
|
358
|
+
gridFillPage.steps.verifyPatternIsNotDisplayedInCellInCustomizeLayoutSection(0, 0);
|
359
|
+
gridFillPage.steps.verifyPatternIsNotDisplayedInCellInSpecifyCorrectAnswerSection(0, 0);
|
360
|
+
});
|
361
|
+
});
|
362
|
+
|
363
|
+
describe('\'Apply pattern on active state\' - Preview tab functionality', () => {
|
364
|
+
abortEarlySetup();
|
365
|
+
before(() => {
|
366
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
367
|
+
cy.barsPreLoaderWait();
|
368
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
369
|
+
gridFillPage.steps.switchToPreviewTab();
|
370
|
+
});
|
371
|
+
|
372
|
+
it('When \'Apply pattern on active state\' checkbox is unchecked, then pattern should not be displayed in selected grid cell in preview tab', () => {
|
373
|
+
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
374
|
+
gridFillPage.steps.verifyPatternIsNotDisplayedInCellInPreviewTab(0, 0);
|
375
|
+
});
|
376
|
+
|
377
|
+
it('When \'Apply pattern on active state\' checkbox is checked and user selects cell in preview tab grid, then pattern should be displayed in the selected cell.', () => {
|
378
|
+
gridFillPage.steps.switchToEditTab();
|
379
|
+
gridFillPage.steps.checkApplyPatternOnActiveStateCheckbox();
|
380
|
+
gridFillPage.steps.switchToPreviewTab();
|
381
|
+
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
382
|
+
gridFillPage.steps.verifyPatternIsDisplayedInCellInPreviewTab(0, 0);
|
383
|
+
});
|
384
|
+
});
|
385
|
+
|
386
|
+
describe('\'Reset color\' button - functionality', () => {
|
387
|
+
abortEarlySetup();
|
388
|
+
before(() => {
|
389
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
390
|
+
cy.barsPreLoaderWait();
|
391
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
392
|
+
});
|
393
|
+
|
394
|
+
it('When user has made no changes in color section, then a disabled reset color button should be displayed', () => {
|
395
|
+
utilities.verifyInnerText(gridFillPage.resetButton(), 'Reset color');
|
396
|
+
utilities.verifyElementVisibilityState(gridFillPage.resetButton(), 'visible');
|
397
|
+
utilities.verifyElementDisabled(gridFillPage.resetButton());
|
398
|
+
});
|
399
|
+
|
400
|
+
it('When user makes any changes in the color properties, then \'Reset color\' button should be enabled', () => {
|
401
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
402
|
+
gridFillPage.steps.selectRecommendedColorBlock(0);
|
403
|
+
gridFillPage.steps.addInputToOpacityInputField(30);
|
404
|
+
gridFillPage.steps.clickOnOkButton();
|
405
|
+
utilities.verifyElementNotDisabled(gridFillPage.resetButton());
|
406
|
+
});
|
407
|
+
|
408
|
+
it('CSS of enabled \'Reset color\' button', { tags: 'css' }, () => {
|
409
|
+
utilities.verifyCSS(gridFillPage.resetButton(), {
|
410
|
+
'color': css.color.activeButtons,
|
411
|
+
'font-size': css.fontSize.default,
|
412
|
+
'font-weight': css.fontWeight.regular
|
413
|
+
});
|
414
|
+
});
|
415
|
+
|
416
|
+
it('Accessibility of enabled \'Reset color\' button', { tags: 'a11y' }, () => {
|
417
|
+
cy.checkAccessibility(gridFillPage.resetButton());
|
418
|
+
});
|
419
|
+
|
420
|
+
it('When user had made changes in the color properties and clicks on \'Reset color\' button, then the previously made changes should be reset to default values', () => {
|
421
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultFillColor');
|
422
|
+
gridFillPage.steps.selectRecommendedColorBlock(0);
|
423
|
+
gridFillPage.steps.addInputToOpacityInputField(30);
|
424
|
+
gridFillPage.steps.clickOnOkButton();
|
425
|
+
gridFillPage.steps.clickOnFillColorBlock('defaultBorderColor');
|
426
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
427
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
428
|
+
gridFillPage.steps.clickOnOkButton();
|
429
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverFillColor');
|
430
|
+
gridFillPage.steps.selectRecommendedColorBlock(2);
|
431
|
+
gridFillPage.steps.addInputToOpacityInputField(60);
|
432
|
+
gridFillPage.steps.clickOnOkButton();
|
433
|
+
gridFillPage.steps.clickOnFillColorBlock('hoverBorderColor');
|
434
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
435
|
+
gridFillPage.steps.addInputToOpacityInputField(70);
|
436
|
+
gridFillPage.steps.clickOnOkButton();
|
437
|
+
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
438
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
439
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
440
|
+
gridFillPage.steps.clickOnOkButton();
|
441
|
+
gridFillPage.steps.clickOnFillColorBlock('filledBorderColor');
|
442
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
443
|
+
gridFillPage.steps.addInputToOpacityInputField(80);
|
444
|
+
gridFillPage.steps.clickOnOkButton();
|
445
|
+
gridFillPage.steps.clickOnResetColorButton();
|
446
|
+
gridFillPage.steps.verifyDefaultFillColorBlockColor(gridFillColorProperties.default.colorProperties.fillColorRgbaValue);
|
447
|
+
gridFillPage.steps.verifyDefaultBorderColorBlockColor(gridFillColorProperties.default.colorProperties.borderColorRgbValue);
|
448
|
+
gridFillPage.steps.verifyHoverFillColorBlockColor(gridFillColorProperties.hover.colorProperties.fillColorRgbaValue);
|
449
|
+
gridFillPage.steps.verifyHoverBorderColorBlockColor(gridFillColorProperties.hover.colorProperties.borderColorRgbValue);
|
450
|
+
gridFillPage.steps.verifyFilledFillColorBlockColor(gridFillColorProperties.filled.colorProperties.fillColorRgbaValue);
|
451
|
+
gridFillPage.steps.verifyFilledBorderColorBlockColor(gridFillColorProperties.filled.colorProperties.borderColorRgbValue);
|
452
|
+
});
|
453
|
+
|
454
|
+
it('The \'Reset color\' button should be disabled again', () => {
|
455
|
+
utilities.verifyElementDisabled(gridFillPage.resetButton());
|
456
|
+
});
|
457
|
+
|
458
|
+
it('When user shades/selects cells with updated color values and clicks on \'Reset color\' button, then the css of shaded/selected cell should be reset to default values', () => {
|
459
|
+
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
460
|
+
gridFillPage.steps.selectRecommendedColorBlock(1);
|
461
|
+
gridFillPage.steps.addInputToOpacityInputField(50);
|
462
|
+
gridFillPage.steps.clickOnOkButton();
|
463
|
+
gridFillPage.steps.clickOnFillColorBlock('filledBorderColor');
|
464
|
+
gridFillPage.steps.selectRecommendedColorBlock(3);
|
465
|
+
gridFillPage.steps.addInputToOpacityInputField(80);
|
466
|
+
gridFillPage.steps.clickOnOkButton();
|
467
|
+
gridFillPage.steps.shadeCell(0, 0);
|
468
|
+
gridFillPage.steps.clickOnResetColorButton();
|
469
|
+
utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInCustomizeLayout(), 0), {
|
470
|
+
'background-color': `${gridFillColorProperties.filled.colorProperties.fillColorRgbaValue}`,
|
471
|
+
'border-color': `${gridFillColorProperties.filled.colorProperties.borderColorRgbValue}`
|
472
|
+
});
|
473
|
+
});
|
474
|
+
});
|
475
|
+
});
|