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
@@ -365,7 +365,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
|
|
365
365
|
});
|
366
366
|
});
|
367
367
|
|
368
|
-
it('CSS of \'Grid borders\', \'Grid border style\' and \'Outer grid border\' sections', () => {
|
368
|
+
it('CSS of \'Grid borders\', \'Grid border style\' and \'Outer grid border\' sections', { tags: 'css' }, () => {
|
369
369
|
utilities.verifyCSS(gridFillPage.gridBordersTitle(), {
|
370
370
|
'color': css.color.labels,
|
371
371
|
'font-size': css.fontSize.normal,
|
@@ -99,12 +99,6 @@ describe('Create item page - Grid fill: Scoring section', () => {
|
|
99
99
|
gridFillPage.steps.verifyPointsPerResponseScore(3);
|
100
100
|
});
|
101
101
|
|
102
|
-
it('When user shades a cell in customize layout then points per response should get updated accordingly', () => {
|
103
|
-
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
104
|
-
gridFillPage.steps.shadeCell(1, 3);
|
105
|
-
gridFillPage.steps.verifyPointsPerResponseScore(2);
|
106
|
-
});
|
107
|
-
|
108
102
|
it('When user unselects the shaded cell in specify correct answer section, then points per response should get updated accordingly', () => {
|
109
103
|
gridFillPage.steps.unselectCellSpecifyCorrectAnswerSection(1, 3);
|
110
104
|
gridFillPage.steps.verifyPointsPerResponseScore(3);
|
@@ -115,11 +109,6 @@ describe('Create item page - Grid fill: Scoring section', () => {
|
|
115
109
|
gridFillPage.steps.verifyPointsPerResponseScore(2);
|
116
110
|
});
|
117
111
|
|
118
|
-
it('When user unshades the shaded cell in customize layout section, then points per response should get updated accordingly', () => {
|
119
|
-
gridFillPage.steps.unShadeCell(1,3);
|
120
|
-
gridFillPage.steps.verifyPointsPerResponseScore(2);
|
121
|
-
});
|
122
|
-
|
123
112
|
it('When the user switches to \'All or nothing\' scoring, then the Points on response label and score should not be displayed and the points displayed in \'Points\' input field should remain unchanged', () => {
|
124
113
|
gridFillPage.steps.selectAutoScoredScoringSubtype('All or nothing');
|
125
114
|
utilities.verifyElementVisibilityState(gridFillPage.pointsPerResponseWrapper(), 'notExist');
|
@@ -0,0 +1,204 @@
|
|
1
|
+
import { gridFillPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
describe('Create Item page - Grid fill : Grid layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Grid layout - contents', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
});
|
16
|
+
|
17
|
+
it('Grid layout label should be displayed', () => {
|
18
|
+
utilities.verifyInnerText(gridFillPage.gridLayoutLabel(), 'Grid layout');
|
19
|
+
utilities.verifyElementVisibilityState(gridFillPage.gridLayoutLabel(), 'visible');
|
20
|
+
});
|
21
|
+
|
22
|
+
it('\'Select layout\' label and \'Open the grid selector\' dropdown should be displayed and by default \'Open the grid selector\' dropdown should be in collapsed state', () => {
|
23
|
+
utilities.verifyInnerText(gridFillPage.selectLayoutLabel(), 'Select layout');
|
24
|
+
utilities.verifyElementVisibilityState(gridFillPage.gridLayoutLabel(), 'visible');
|
25
|
+
utilities.verifyInnerText(gridFillPage.openTheGridSelectorDropdownButtonLabel(), 'Open the grid selector');
|
26
|
+
utilities.verifyElementVisibilityState(gridFillPage.openTheGridSelectorDropdownButton(), 'visible');
|
27
|
+
gridFillPage.steps.verifyOpenTheGridSelectorDropdownCollapsed();
|
28
|
+
});
|
29
|
+
|
30
|
+
it('When user clicks on \'Open the grid selector\' dropdown then grid selector should be displayed and it should have 20 columns and 20 rows', () => {
|
31
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
32
|
+
utilities.verifyElementVisibilityState(gridFillPage.gridInOpenTheGridSelectorDropdownContainer(), 'visible');
|
33
|
+
gridFillPage.steps.verifyGridSizeInGridLayoutSection(20, 20);
|
34
|
+
});
|
35
|
+
|
36
|
+
it('When \'Open the grid selector\' dropdown is expanded, then by default it should have 5 columns and 3 rows selected', () => {
|
37
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(3, 5);
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When user hovers over a cell in grid selector dropdown then it should be in interactive state', () => {
|
41
|
+
gridFillPage.steps.verifySelectedRowsAndColumnsInInteractiveState(4, 6);
|
42
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
43
|
+
});
|
44
|
+
|
45
|
+
it('\'Columns\' and \'Rows\' labels and their input stepper should be displayed and default the value for \'Columns\' and \'Rows\' should be set to 5 and 3', () => {
|
46
|
+
utilities.verifyInnerText(gridFillPage.columnsLabel(), 'Columns');
|
47
|
+
utilities.verifyElementVisibilityState(gridFillPage.columnsLabel(), 'visible');
|
48
|
+
utilities.verifyInnerText(gridFillPage.rowsLabel(), 'Rows');
|
49
|
+
utilities.verifyElementVisibilityState(gridFillPage.rowsLabel(), 'visible');
|
50
|
+
gridFillPage.steps.verifyColumnInputStepperIncreaseDecreaseButton();
|
51
|
+
gridFillPage.steps.verifyRowInputStepperIncreaseDecreaseButton();
|
52
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(5);
|
53
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(3);
|
54
|
+
});
|
55
|
+
|
56
|
+
it('When user increases the number of columns in the column input stepper using the increase button, then the count of column input stepper and the number of columns in the Open selector grid should increase', () => {
|
57
|
+
gridFillPage.steps.increaseColumnsInputStepperCount(2);
|
58
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(7);
|
59
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
60
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(3, 7);
|
61
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
62
|
+
});
|
63
|
+
|
64
|
+
it('When user decreases the number of rows in the row input stepper using the decrease button, then the count of row input stepper and the number of rows in the grid displayed in Open selector should decrease', () => {
|
65
|
+
gridFillPage.steps.decreaseRowsInputStepperCount(1);
|
66
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(2);
|
67
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
68
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(2, 7);
|
69
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
70
|
+
});
|
71
|
+
|
72
|
+
it('User should be able to edit the number of rows and columns by directly giving an input in the input steppers and the grid in grid selector dropdown should be updated as well should be updated', () => {
|
73
|
+
gridFillPage.steps.setRows(4);
|
74
|
+
gridFillPage.steps.setColumns(4);
|
75
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
76
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(4, 4);
|
77
|
+
});
|
78
|
+
|
79
|
+
it('When the user increases the number of rows and columns to 20 by directly giving an input in the input steppers, then the increase buttons should get disabled and rows and column value should be updated in open grid selector', () => {
|
80
|
+
gridFillPage.steps.setRows(20);
|
81
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(20);
|
82
|
+
gridFillPage.steps.setColumns(20);
|
83
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(20);
|
84
|
+
gridFillPage.steps.verifyRowInputStepperIncreaseButtonIsDisabled();
|
85
|
+
gridFillPage.steps.verifyColumnInputStepperIncreaseButtonIsDisabled();
|
86
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
87
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(20, 20);
|
88
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
89
|
+
});
|
90
|
+
|
91
|
+
it('When the user decreases the number of rows and columns to 1 by directly giving an input in the input steppers, then the decrease buttons should get disabled and rows and column value should be updated in open grid selector', () => {
|
92
|
+
gridFillPage.steps.setRows(1);
|
93
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(1);
|
94
|
+
gridFillPage.steps.setColumns(1);
|
95
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(1);
|
96
|
+
gridFillPage.steps.verifyRowInputStepperDecreaseButtonIsDisabled();
|
97
|
+
gridFillPage.steps.verifyColumnInputStepperDecreaseButtonIsDisabled();
|
98
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
99
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(1, 1);
|
100
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When the user gives an input value lower than 1 i.e. 0 in the rows input stepper, then the columns value should be reset to 1', () => {
|
104
|
+
gridFillPage.steps.setColumns(0);
|
105
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(1);
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When the user gives an input value greater than 20 in the rows input stepper, then the rows value should be reset to 20', () => {
|
109
|
+
gridFillPage.steps.setRows(0);
|
110
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(1);
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When user clicks on a cell in grid selector dropdown then that many rows and columns should get selected and values should get updated in columns input stepper and rows input stepper', () => {
|
114
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
115
|
+
gridFillPage.steps.clickOnCellInOpenTheGridSelectorDropdown(3, 3);
|
116
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
117
|
+
gridFillPage.steps.verifySelectedRowsAndColumns(3, 3);
|
118
|
+
gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
|
119
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(3);
|
120
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(3);
|
121
|
+
});
|
122
|
+
|
123
|
+
it('\'Cell height (px) and Cell width (px) labels and their input fields should be displayed and by default values should be set to 80px', () => {
|
124
|
+
utilities.verifyInnerText(gridFillPage.cellHeightLabel(), 'Cell height (px)');
|
125
|
+
utilities.verifyElementVisibilityState(gridFillPage.cellHeightLabel(), 'visible');
|
126
|
+
utilities.verifyInnerText(gridFillPage.cellWidthLabel(), 'Cell width (px)');
|
127
|
+
utilities.verifyElementVisibilityState(gridFillPage.cellWidthLabel(), 'visible');
|
128
|
+
gridFillPage.steps.verifyCellHeightInputField(80);
|
129
|
+
gridFillPage.steps.verifyCellWidthInputField(80);
|
130
|
+
});
|
131
|
+
|
132
|
+
it('User should be able to update cell height and cell width input field values', () => {
|
133
|
+
gridFillPage.steps.updateValueInCellHeightInputField(50);
|
134
|
+
gridFillPage.steps.verifyCellHeightInputField(50);
|
135
|
+
gridFillPage.steps.updateValueInCellWidthInputField(50);
|
136
|
+
gridFillPage.steps.verifyCellHeightInputField(50);
|
137
|
+
});
|
138
|
+
|
139
|
+
it('Make responsive for mobile label and checkbox should be displayed and by default checkbox should be checked', () => {
|
140
|
+
utilities.verifyInnerText(gridFillPage.makeResponsiveLabel(), 'Make responsive for mobile');
|
141
|
+
utilities.verifyElementVisibilityState(gridFillPage.makeResponsiveLabel(), 'visible');
|
142
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
143
|
+
});
|
144
|
+
|
145
|
+
it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell height input field then value should reset to 44', () => {
|
146
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
147
|
+
gridFillPage.steps.updateValueInCellHeightInputField(20);
|
148
|
+
gridFillPage.steps.verifyCellHeightInputField(44);
|
149
|
+
});
|
150
|
+
|
151
|
+
it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell width input field then value should reset to 44', () => {
|
152
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
153
|
+
gridFillPage.steps.updateValueInCellWidthInputField(20);
|
154
|
+
gridFillPage.steps.verifyCellWidthInputField(44);
|
155
|
+
});
|
156
|
+
|
157
|
+
it('When \'Make responsive for mobile\' checkbox is checked and user enters value more than 200 in cell height input field then value should reset to 200', () => {
|
158
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
159
|
+
gridFillPage.steps.updateValueInCellHeightInputField(250);
|
160
|
+
gridFillPage.steps.verifyCellHeightInputField(200);
|
161
|
+
});
|
162
|
+
|
163
|
+
it('When \'Make responsive for mobile\' checkbox is checked and user enters value more than 200 in cell width input field then value should reset to 200', () => {
|
164
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
165
|
+
gridFillPage.steps.updateValueInCellWidthInputField(250);
|
166
|
+
gridFillPage.steps.verifyCellWidthInputField(200);
|
167
|
+
});
|
168
|
+
|
169
|
+
it('User should be able to uncheck Make responsive for mobile checkbox', () => {
|
170
|
+
gridFillPage.steps.uncheckMakeResponsiveCheckbox();
|
171
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
172
|
+
});
|
173
|
+
|
174
|
+
it('When user unchecks \'Make responsive for mobile\' checkbox then values in cell height and cell width should remain unchanged', () => {
|
175
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
176
|
+
gridFillPage.steps.verifyCellHeightInputField(200);
|
177
|
+
gridFillPage.steps.verifyCellWidthInputField(200);
|
178
|
+
});
|
179
|
+
|
180
|
+
it('When \'Make responsive for mobile\' checkbox is unchecked and user enters value less than 20 in cell height input field then value should reset to 20', () => {
|
181
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
182
|
+
gridFillPage.steps.updateValueInCellHeightInputField(10);
|
183
|
+
gridFillPage.steps.verifyCellHeightInputField(20);
|
184
|
+
});
|
185
|
+
|
186
|
+
it('When \'Make responsive for mobile\' checkbox is unchecked and user enters value less than 20 in cell width input field then value should reset to 20', () => {
|
187
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
188
|
+
gridFillPage.steps.updateValueInCellWidthInputField(10);
|
189
|
+
gridFillPage.steps.verifyCellWidthInputField(20);
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When \'Make responsive for mobile\' checkbox is unchecked and user enters value more than 200 in cell height input field then value should reset to 200', () => {
|
193
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
194
|
+
gridFillPage.steps.updateValueInCellHeightInputField(250);
|
195
|
+
gridFillPage.steps.verifyCellHeightInputField(200);
|
196
|
+
});
|
197
|
+
|
198
|
+
it('When \'Make responsive for mobile\' checkbox is unchecked and user enters value more than 200 in cell width input field then value should reset to 200', () => {
|
199
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
200
|
+
gridFillPage.steps.updateValueInCellWidthInputField(250);
|
201
|
+
gridFillPage.steps.verifyCellWidthInputField(200);
|
202
|
+
});
|
203
|
+
});
|
204
|
+
});
|
@@ -0,0 +1,229 @@
|
|
1
|
+
import { gridFillPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
describe('Create item : Grid fill - Grid layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Grid selector and Columns & Rows input steppers - Customize layout section section and Specify correct answer section', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
16
|
+
});
|
17
|
+
|
18
|
+
it('By default, 5 columns and 3 rows should be displayed in customize layout section and specify correct answer section', () => {
|
19
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(3);
|
20
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(5);
|
21
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(3);
|
22
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(5);
|
23
|
+
});
|
24
|
+
|
25
|
+
it('When user updates the numbers of rows and columns in open the grid selector popup then numbers of rows and columns should be updated in customize layout section and specify correct answer section', () => {
|
26
|
+
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
27
|
+
gridFillPage.steps.clickOnCellInOpenTheGridSelectorDropdown(2, 2);
|
28
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(2);
|
29
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(2);
|
30
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(2);
|
31
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(2);
|
32
|
+
});
|
33
|
+
|
34
|
+
it('When user increases the number of columns in the column input stepper using the increase button, then the number of columns in the grid displayed in customize layout section and specify correct answer section should increase', () => {
|
35
|
+
gridFillPage.steps.increaseColumnsInputStepperCount(1);
|
36
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(3);
|
37
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(3);
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When user decreases the number of rows in the row input stepper using the decrease button, then the number of rows in the grid displayed in customize layout section and specify correct answer section should decrease', () => {
|
41
|
+
gridFillPage.steps.decreaseRowsInputStepperCount(1);
|
42
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(1);
|
43
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(1);
|
44
|
+
});
|
45
|
+
|
46
|
+
it('When user changes the number of rows and columns by directly giving an input in rows input steppers, then the added number of rows and columns should be reflected in customize layout section and specify correct answer section', () => {
|
47
|
+
gridFillPage.steps.setRows(5);
|
48
|
+
gridFillPage.steps.setColumns(5);
|
49
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(5);
|
50
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(5);
|
51
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(5);
|
52
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(5);
|
53
|
+
});
|
54
|
+
|
55
|
+
it('When there are less than 11 columns in the grid, then the left and right arrow navigation button should not be displayed in the Customize layout section and specify correct answer section', () => {
|
56
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(5);
|
57
|
+
gridFillPage.steps.verifyPaginationButtonsNotExistCustomizeLayoutSection();
|
58
|
+
gridFillPage.steps.verifyPaginationButtonsNotExistSpecifyCorrectAnswerSection();
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When the user has added 11 columns in the grid, then the left, right arrow navigation button and pagination text \'Displaying 1-10 of 11\' should be displayed in the Customize layout section and specify correct answer section', () => {
|
62
|
+
gridFillPage.steps.setColumns(11);
|
63
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(11);
|
64
|
+
gridFillPage.steps.verifyPaginationButtonsVisibleCustomizeLayoutSection();
|
65
|
+
utilities.verifyInnerText(gridFillPage.paginationTextCustomizeLayoutSection(), 'Displaying 1-10 of 11');
|
66
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(11);
|
67
|
+
gridFillPage.steps.verifyPaginationButtonsVisibleSpecifyCorrectAnswerSection();
|
68
|
+
utilities.verifyInnerText(gridFillPage.paginationTextSpecifyCorrectAnswerSection(), 'Displaying 1-10 of 11');
|
69
|
+
});
|
70
|
+
|
71
|
+
it('When user adds columns more than 11, then pagination text should be updated accordingly in the Customize layout section and specify correct answer section', () => {
|
72
|
+
gridFillPage.steps.setColumns(12);
|
73
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(12);
|
74
|
+
gridFillPage.steps.verifyPaginationButtonsVisibleCustomizeLayoutSection();
|
75
|
+
utilities.verifyInnerText(gridFillPage.paginationTextCustomizeLayoutSection(), 'Displaying 1-10 of 12');
|
76
|
+
gridFillPage.steps.verifyPaginationButtonsVisibleSpecifyCorrectAnswerSection();
|
77
|
+
utilities.verifyInnerText(gridFillPage.paginationTextSpecifyCorrectAnswerSection(), 'Displaying 1-10 of 12');
|
78
|
+
});
|
79
|
+
|
80
|
+
it('By default the left arrow navigation button should be disabled and right arrow navigation button should be enabled in the Customize layout section', () => {
|
81
|
+
utilities.verifyElementDisabled(gridFillPage.previousPaginationButtonCustomizeLayout());
|
82
|
+
utilities.verifyElementNotDisabled(gridFillPage.nextPaginationButtonCustomizeLayout());
|
83
|
+
});
|
84
|
+
|
85
|
+
it('By default the left arrow navigation button should be disabled and right arrow navigation button should be enabled in specify correct answer section', () => {
|
86
|
+
utilities.verifyElementDisabled(gridFillPage.previousPaginationButtonSpecifyCorrectAnswerSection());
|
87
|
+
utilities.verifyElementNotDisabled(gridFillPage.nextPaginationButtonSpecifyCorrectAnswerSection());
|
88
|
+
});
|
89
|
+
|
90
|
+
it('When user is on second page, then both left arrow navigation button and right arrow navigation button button should be in enabled state in the Customize layout section', () => {
|
91
|
+
gridFillPage.steps.navigateToNextPageCustomizeLayoutSection();
|
92
|
+
utilities.verifyElementNotDisabled(gridFillPage.nextPaginationButtonCustomizeLayout());
|
93
|
+
utilities.verifyElementNotDisabled(gridFillPage.previousPaginationButtonCustomizeLayout());
|
94
|
+
});
|
95
|
+
|
96
|
+
it('When user is on second page, then both left arrow navigation button and right arrow navigation button button should be in enabled state in specify correct answer section', () => {
|
97
|
+
gridFillPage.steps.navigateToNextPageSpecifyCorrectAnswerSection();
|
98
|
+
utilities.verifyElementNotDisabled(gridFillPage.previousPaginationButtonSpecifyCorrectAnswerSection());
|
99
|
+
utilities.verifyElementNotDisabled(gridFillPage.nextPaginationButtonSpecifyCorrectAnswerSection());
|
100
|
+
});
|
101
|
+
|
102
|
+
it('When user is on last page then left arrow navigation button button should be in enabled state and right arrow navigation button button should be in disabled state in the Customize layout section ', () => {
|
103
|
+
gridFillPage.steps.navigateToNextPageCustomizeLayoutSection();
|
104
|
+
utilities.verifyElementNotDisabled(gridFillPage.nextPaginationButtonCustomizeLayout());
|
105
|
+
utilities.verifyElementDisabled(gridFillPage.previousPaginationButtonCustomizeLayout());
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When user is on last page then left arrow navigation button button should be in enabled state and right arrow navigation button button should be in disabled state in specify correct answer section', () => {
|
109
|
+
gridFillPage.steps.navigateToNextPageSpecifyCorrectAnswerSection();
|
110
|
+
utilities.verifyElementNotDisabled(gridFillPage.previousPaginationButtonSpecifyCorrectAnswerSection());
|
111
|
+
utilities.verifyElementDisabled(gridFillPage.nextPaginationButtonSpecifyCorrectAnswerSection());
|
112
|
+
});
|
113
|
+
|
114
|
+
it('When user selects 1 row and 1 column, then only one cell should be displayed in customize layout section and specify correct answer section', () => {
|
115
|
+
gridFillPage.steps.setRows(1);
|
116
|
+
gridFillPage.steps.setColumns(1);
|
117
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(1);
|
118
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(1);
|
119
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(1);
|
120
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(1);
|
121
|
+
});
|
122
|
+
|
123
|
+
it('When user selects 20 columns and 20 rows then in customize layout section, grid with 20 rows and 20 columns should be displayed and specify correct answer section', () => {
|
124
|
+
gridFillPage.steps.setRows(20);
|
125
|
+
gridFillPage.steps.setColumns(20);
|
126
|
+
gridFillPage.steps.verifyRowsCountCustomizeLayout(20);
|
127
|
+
gridFillPage.steps.verifyColumnsCountCustomizeLayout(20);
|
128
|
+
gridFillPage.steps.verifyRowsCountSpecifyCorrectAnswer(20);
|
129
|
+
gridFillPage.steps.verifyColumnsCountSpecifyCorrectAnswer(20);
|
130
|
+
});
|
131
|
+
});
|
132
|
+
|
133
|
+
describe('Cell height and Cell width : Customize layout section and Specify correct answer section', () => {
|
134
|
+
abortEarlySetup();
|
135
|
+
before(() => {
|
136
|
+
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
137
|
+
cy.barsPreLoaderWait();
|
138
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
139
|
+
});
|
140
|
+
|
141
|
+
it('By default, cell height and cell width should be 80 px and 80 px respectively in customize layout section and specify correct answer section', () => {
|
142
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(80);
|
143
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(80);
|
144
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(80);
|
145
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(80);
|
146
|
+
});
|
147
|
+
|
148
|
+
it('When user updates cell height and cell width, then cell height and cell width should be updated in customize layout section and specify correct answer section', () => {
|
149
|
+
gridFillPage.steps.updateValueInCellHeightInputField(50);
|
150
|
+
gridFillPage.steps.updateValueInCellWidthInputField(50);
|
151
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(50);
|
152
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(50);
|
153
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(50);
|
154
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(50);
|
155
|
+
});
|
156
|
+
|
157
|
+
it('When \'Make responsive\' checkbox is checked and user enters value less than 44 in cell height input field then cell height should be updated in customize layout section and specify correct answer section', () => {
|
158
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
159
|
+
gridFillPage.steps.updateValueInCellHeightInputField(20);
|
160
|
+
gridFillPage.steps.verifyCellHeightInputField(44);
|
161
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(44);
|
162
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(44);
|
163
|
+
});
|
164
|
+
|
165
|
+
it('When \'Make responsive\' checkbox is checked and user enters value less than 44 in cell width input field then value should reset to 44 in customize layout section and specify correct answer section', () => {
|
166
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
167
|
+
gridFillPage.steps.updateValueInCellWidthInputField(20);
|
168
|
+
gridFillPage.steps.verifyCellWidthInputField(44);
|
169
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(44);
|
170
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(44);
|
171
|
+
});
|
172
|
+
|
173
|
+
it('When \'Make responsive\' checkbox is checked and user enters value more than 200 in cell height input field then value should reset to 200 in customize layout section and specify correct answer section', () => {
|
174
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
175
|
+
gridFillPage.steps.updateValueInCellHeightInputField(250);
|
176
|
+
gridFillPage.steps.verifyCellHeightInputField(200);
|
177
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(200);
|
178
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(200);
|
179
|
+
});
|
180
|
+
|
181
|
+
it('When \'Make responsive\' checkbox is checked and user enters value more than 200 in cell width input field then value should reset to 200 in customize layout section and specify correct answer section', () => {
|
182
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
|
183
|
+
gridFillPage.steps.updateValueInCellWidthInputField(250);
|
184
|
+
gridFillPage.steps.verifyCellWidthInputField(200);
|
185
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(200);
|
186
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(200);
|
187
|
+
});
|
188
|
+
|
189
|
+
it('When user unchecks \'Make responsive\' checkbox then values in cell height and cell width should remain unchanged in customize layout section and specify correct answer section', () => {
|
190
|
+
gridFillPage.steps.uncheckMakeResponsiveCheckbox();
|
191
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(200);
|
192
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(200);
|
193
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(200);
|
194
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(200);
|
195
|
+
});
|
196
|
+
|
197
|
+
it('When \'Make responsive\' checkbox is unchecked and user enters value less than 20 in cell height input field then value should reset to 20 in customize layout section and specify correct answer section', () => {
|
198
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
199
|
+
gridFillPage.steps.updateValueInCellHeightInputField(10);
|
200
|
+
gridFillPage.steps.verifyCellHeightInputField(20);
|
201
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(20);
|
202
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(20);
|
203
|
+
});
|
204
|
+
|
205
|
+
it('When \'Make responsive\' checkbox is unchecked and user enters value less than 20 in cell width input field then value should reset to 20 in customize layout section and specify correct answer section', () => {
|
206
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
207
|
+
gridFillPage.steps.updateValueInCellWidthInputField(10);
|
208
|
+
gridFillPage.steps.verifyCellWidthInputField(20);
|
209
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(20);
|
210
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(20);
|
211
|
+
});
|
212
|
+
|
213
|
+
it('When \'Make responsive\' checkbox is unchecked and user enters value more than 200 in cell height input field then value should reset to 200 in customize layout section and specify correct answer section', () => {
|
214
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
215
|
+
gridFillPage.steps.updateValueInCellHeightInputField(250);
|
216
|
+
gridFillPage.steps.verifyCellHeightInputField(200);
|
217
|
+
gridFillPage.steps.verifyCellHeightInCustomizeLayoutSection(200);
|
218
|
+
gridFillPage.steps.verifyCellHeightInSpecifyCorrectAnswerSection(200);
|
219
|
+
});
|
220
|
+
|
221
|
+
it('When \'Make responsive\' checkbox is unchecked and user enters value more than 200 in cell width input field then value should reset to 200 in customize layout section and specify correct answer section', () => {
|
222
|
+
gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
|
223
|
+
gridFillPage.steps.updateValueInCellWidthInputField(250);
|
224
|
+
gridFillPage.steps.verifyCellWidthInputField(200);
|
225
|
+
gridFillPage.steps.verifyCellWidthInCustomizeLayoutSection(200);
|
226
|
+
gridFillPage.steps.verifyCellWidthInSpecifyCorrectAnswerSection(200);
|
227
|
+
});
|
228
|
+
});
|
229
|
+
});
|