itemengine-cypress-automation 1.0.203-31stMayFixes-16985aa.0 → 1.0.204-graphQLUpdate-b0c0036.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/cypress/config-files/ilqa.json +1 -1
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +2 -2
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +3 -3
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +14 -2
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +1 -1
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +356 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +320 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +355 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +141 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +170 -0
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettingsForDropzones.js +170 -0
  13. package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +250 -0
  14. package/cypress/e2e/ILC/ImageHighlight/singleMultipleSelection.js +99 -0
  15. package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettings.js +89 -0
  16. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationBorderProperties.js +53 -0
  17. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationGridProperties.js +98 -0
  18. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +89 -0
  19. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationBorderProperties.js +54 -0
  20. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +90 -0
  21. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCutomizationGridProperties.js +99 -0
  22. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +61 -0
  23. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +227 -0
  24. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +380 -0
  25. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +294 -0
  26. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +383 -0
  27. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +7 -7
  28. package/cypress/pages/chartsBarPage.js +1 -4
  29. package/cypress/pages/chartsDotPlotPage.js +0 -13
  30. package/cypress/pages/components/additionalSettingsPanel.js +1 -0
  31. package/cypress/pages/components/ariaLabelSectionComponent.js +1 -1
  32. package/cypress/pages/components/chartsCommonComponent.js +19 -0
  33. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -0
  34. package/cypress/pages/components/gridQuestionCommonComponent.js +1836 -134
  35. package/cypress/pages/components/singleMultipleSelectionModeComponent.js +74 -1
  36. package/cypress/pages/dragAndDropIntoCategoriesPage.js +25 -2
  37. package/cypress/pages/essayResponsePage.js +9 -1
  38. package/cypress/pages/feedbackScalePage.js +1 -1
  39. package/cypress/pages/fillInTheGapsDragAndDropPage.js +111 -30
  40. package/cypress/pages/matchingPage.js +2 -1
  41. package/cypress/pages/multipleSelectionGridPage.js +4 -2
  42. package/cypress/pages/shortTextResponsePage.js +2 -2
  43. package/cypress/pages/singleSelectionGridPage.js +4 -2
  44. package/cypress/pages/textEntryMathPage.js +1 -0
  45. package/cypress/pages/textEntryMathWithImagePage.js +1 -1
  46. package/cypress/pages/uploadResponsePage.js +1 -3
  47. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { imageHighlightPage } from "../../../pages";
2
+ import { uploadImageSectionComponent, singleMultipleSelectionModeComponent } from "../../../pages/components";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ import utilities from "../../../support/helpers/utilities";
5
+
6
+ const flowerHighlightRegion = [[30, 10], [30, 20], [45, 20], [45, 10]];
7
+ const branchesHighlightRegion = [[45, 45], [45, 55], [57, 55], [57, 45]];
8
+ const leafHighlightRegion = [[26, 26], [26, 36], [48, 36], [48, 26]];
9
+
10
+ describe('image Highlight: Set correct answer toggles', () => {
11
+ before(() => {
12
+ cy.loginAs('admin');
13
+ });
14
+
15
+ describe('Single Multiple selection: Edit tab content', () => {
16
+ abortEarlySetup();
17
+ before(() => {
18
+ cy.log('Navigating to image highlight question type');
19
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
20
+ });
21
+
22
+ singleMultipleSelectionModeComponent.tests.verifySingleMultipleSelectionModeContentCSSandA11y();
23
+ });
24
+
25
+ describe('Single Multiple selection: Edit tab functionality', () => {
26
+ abortEarlySetup();
27
+ before(() => {
28
+ cy.log('Navigating to image highlight question type');
29
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
30
+ uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
31
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
32
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
33
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
34
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
35
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
36
+ });
37
+
38
+ it('When the user selects the \'Single selection\' toggle button then the user should be able to highlight only one region in the \'Specify correct answer\' section', () => {
39
+ singleMultipleSelectionModeComponent.steps.selectSingleSelectionToggle();
40
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
41
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(0);
42
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
43
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(1);
44
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedInSetCorrectAnswerSection(0);
45
+ });
46
+
47
+ it('When the user selects the \'Multiple selection\' toggle button then the user should be able to highlight multiple regions in the \'Specify correct answer\' section', () => {
48
+ singleMultipleSelectionModeComponent.steps.selectMultipleSelectionToggle();
49
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
50
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
51
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(0);
52
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(1);
53
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(2);
54
+ });
55
+
56
+ it('When the user selects \'Single selection\' toggle button after highlighting multiple regions using the \'Multiple selection\' option then the last selected regions should be unselected and only one region should be left selected', () => {
57
+ singleMultipleSelectionModeComponent.steps.selectSingleSelectionToggle();
58
+ imageHighlightPage.steps.verifySelectedHighlightRegionInSetCorrectAnswerSection(1);
59
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedInSetCorrectAnswerSection(0);
60
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedInSetCorrectAnswerSection(2);
61
+ });
62
+ });
63
+
64
+ describe('Single Multiple selection: Preview tab functionality', () => {
65
+ abortEarlySetup();
66
+ before(() => {
67
+ cy.log('Navigating to image highlight question type');
68
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
69
+ uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
70
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
71
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
72
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
73
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
74
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
75
+ });
76
+
77
+ it('When the user selects the \'Single selection\' toggle button then the user should be able to highlight only one region in the \'Preview tab\' section', () => {
78
+ singleMultipleSelectionModeComponent.steps.selectSingleSelectionToggle();
79
+ imageHighlightPage.steps.switchToPreviewTab();
80
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
81
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(0);
82
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
83
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(1);
84
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(0);
85
+ });
86
+
87
+ it('When the user selects the \'Multiple selection\' toggle button then the user should be able to highlight multiple regions in the \'Preview tab\' section', () => {
88
+ imageHighlightPage.steps.switchToEditTab();
89
+ singleMultipleSelectionModeComponent.steps.selectMultipleSelectionToggle();
90
+ imageHighlightPage.steps.switchToPreviewTab();
91
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
92
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
93
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
94
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(0);
95
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(1);
96
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(2);
97
+ });
98
+ });
99
+ });
@@ -0,0 +1,89 @@
1
+ import { multipleSelectionGridPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Multiple selection grid - Additional settings', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Additional settings: Row style and layout section - Row numeration edit tab contents', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
13
+ cy.barsPreLoaderWait();
14
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
15
+ });
16
+
17
+ multipleSelectionGridPage.tests.verifyRowNumerationContents();
18
+ });
19
+
20
+ describe('Additional settings: Row style and layout section - Row numeration specify correct answer section', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
24
+ cy.barsPreLoaderWait();
25
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
26
+ });
27
+
28
+ multipleSelectionGridPage.tests.verifyRowNumerationEditTabFunctionality();
29
+ });
30
+
31
+ describe('Additional settings: Row style and layout section - Row numeration preview tab', () => {
32
+ abortEarlySetup();
33
+ before(() => {
34
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
35
+ cy.barsPreLoaderWait();
36
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
37
+ });
38
+
39
+ multipleSelectionGridPage.tests.verifyRowNumerationPreviewTabFunctionality();
40
+ });
41
+
42
+ describe('Additional settings: Row style and layout section - Option alignment in cell: Specify correct answer', () => {
43
+ abortEarlySetup();
44
+ before(() => {
45
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
46
+ cy.barsPreLoaderWait();
47
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
48
+ });
49
+
50
+ multipleSelectionGridPage.tests.verifyOptionAlignmentInCellContentsAndFunctionalityEditTab();
51
+ });
52
+
53
+ describe('Additional settings: Row style and layout section - Option alignment in cell: Preview tab', () => {
54
+ abortEarlySetup();
55
+ before(() => {
56
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
57
+ cy.barsPreLoaderWait();
58
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
59
+ multipleSelectionGridPage.steps.switchToPreviewTab();
60
+ });
61
+
62
+ multipleSelectionGridPage.tests.verifyOptionAlignmentInCellFunctionalityPreviewTab();
63
+ });
64
+
65
+ describe('Additional settings: ARIA label for row headers - Contents in edit tab', () => {
66
+ abortEarlySetup();
67
+ before(() => {
68
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
69
+ cy.barsPreLoaderWait();
70
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
71
+ multipleSelectionGridPage.steps.addInputToRowInputStepper(2);
72
+ });
73
+
74
+ multipleSelectionGridPage.tests.verifyARIALabelContentsAndFunctionalityEditTab();
75
+ });
76
+
77
+ describe('Additional settings: ARIA label for row headers - functionality in preview tab', () => {
78
+ abortEarlySetup();
79
+ before(() => {
80
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
81
+ cy.barsPreLoaderWait();
82
+ multipleSelectionGridPage.steps.expandAdditionalSettings();
83
+ multipleSelectionGridPage.steps.addInputToRowInputStepper(2);
84
+ multipleSelectionGridPage.steps.switchToPreviewTab();
85
+ });
86
+
87
+ multipleSelectionGridPage.tests.verifyARIALabelFunctionalityPreviewTab();
88
+ });
89
+ });
@@ -0,0 +1,53 @@
1
+ import { multipleSelectionGridPage } from "../../../pages";
2
+ import { colorPopupComponent } from "../../../pages/components";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+
5
+ describe('Multiple selection grid - Additional settings', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Style and Layout customization accordion: Enable outer border for question edit tab contents and functionality', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
14
+ cy.barsPreLoaderWait();
15
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
16
+ });
17
+
18
+ multipleSelectionGridPage.tests.verifyEnableOuterBorderContentAndFunctionalityEditTab();
19
+ });
20
+
21
+ describe('Style and Layout customization accordion: Enable outer border for question preview tab functionality', () => {
22
+ abortEarlySetup();
23
+ before(() => {
24
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
25
+ cy.barsPreLoaderWait();
26
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
27
+ });
28
+
29
+ multipleSelectionGridPage.tests.verifyEnableOuterBorderFunctionalityPreviewTab();
30
+ });
31
+
32
+ describe('Style and Layout customization accordion: Inner border for question edit tab contents and functionality', () => {
33
+ abortEarlySetup();
34
+ before(() => {
35
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
36
+ cy.barsPreLoaderWait();
37
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
38
+ });
39
+
40
+ multipleSelectionGridPage.tests.verifyInnerBorderContentAndFunctionalityEditTab();
41
+ });
42
+
43
+ describe('Style and Layout customization accordion: Inner border for question preview tab functionality', () => {
44
+ abortEarlySetup();
45
+ before(() => {
46
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
47
+ cy.barsPreLoaderWait();
48
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
49
+ });
50
+
51
+ multipleSelectionGridPage.tests.verifyInnerBorderFunctionalityPreviewTab();
52
+ });
53
+ });
@@ -0,0 +1,98 @@
1
+ import { multipleSelectionGridPage } from "../../../pages";
2
+ import { colorPopupComponent } from "../../../pages/components";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+
5
+ describe('Multiple selection grid - Additional settings', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Style and Layout customization accordion: Fill color edit tab contents and functionality', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
14
+ cy.barsPreLoaderWait();
15
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
16
+ });
17
+
18
+ multipleSelectionGridPage.tests.verifyFillColorContentsAndFunctionalityEditTab();
19
+ });
20
+
21
+ describe('Style and Layout customization accordion: Fill color preview tab functionality', () => {
22
+ abortEarlySetup();
23
+ before(() => {
24
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
25
+ cy.barsPreLoaderWait();
26
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
27
+ });
28
+
29
+ multipleSelectionGridPage.tests.verifyFillColorFunctionalityPreviewTab();
30
+ });
31
+
32
+ describe('Style and Layout customization accordion: Border color edit tab contents and functionality', () => {
33
+ abortEarlySetup();
34
+ before(() => {
35
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
36
+ cy.barsPreLoaderWait();
37
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
38
+ });
39
+
40
+ multipleSelectionGridPage.tests.verifyBorderColorContentsAndFunctionalityEditTab();
41
+ });
42
+
43
+ describe('Style and Layout customization accordion: Border color preview tab functionality', () => {
44
+ abortEarlySetup();
45
+ before(() => {
46
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
47
+ cy.barsPreLoaderWait();
48
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
49
+ multipleSelectionGridPage.steps.switchToPreviewTab();
50
+ });
51
+
52
+ multipleSelectionGridPage.tests.verifyBorderColorFunctionalityPreviewTab();
53
+ });
54
+
55
+ describe('Color popup functionality', () => {
56
+ abortEarlySetup();
57
+ before(() => {
58
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
59
+ cy.barsPreLoaderWait();
60
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
61
+ });
62
+
63
+ it('When the user clicks on the \'Edit color\' present in an \'Fill color\' popup, then a select color popup should be displayed', () => {
64
+ multipleSelectionGridPage.steps.editColor(0);
65
+ colorPopupComponent.steps.verifyColorPopupIsDisplayed();
66
+ });
67
+
68
+ colorPopupComponent.tests.verifyColorPopupSelectColorTitle();
69
+
70
+ colorPopupComponent.tests.verifySaturationAndOpacityGradientPalette('rgb(255, 255, 255)');
71
+
72
+ colorPopupComponent.tests.verifyColorHuePaletteAndHexInputField('rgb(255, 0, 0)', '#ffffff');
73
+
74
+ colorPopupComponent.tests.verifyColorPopupFunctionality();
75
+ });
76
+
77
+ describe('Color popup - Updating the selected color', () => {
78
+ abortEarlySetup();
79
+ before(() => {
80
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
81
+ cy.barsPreLoaderWait();
82
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
83
+ });
84
+
85
+ multipleSelectionGridPage.tests.verifyColorPopupUpdateColorFunctionality();
86
+ });
87
+
88
+ describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
89
+ abortEarlySetup();
90
+ before(() => {
91
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
92
+ cy.barsPreLoaderWait();
93
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
94
+ });
95
+
96
+ multipleSelectionGridPage.tests.verifyColorPopupCancelOkButtonFunctionality();
97
+ });
98
+ });
@@ -0,0 +1,89 @@
1
+ import { multipleSelectionGridPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ describe('Multiple selection grid - Additional settings', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Style and Layout customization accordion', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
14
+ cy.barsPreLoaderWait();
15
+ });
16
+
17
+ multipleSelectionGridPage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
18
+
19
+ it('\'Layout\' label should be displayed', () => {
20
+ utilities.verifyInnerText(multipleSelectionGridPage.layoutLabel(), 'Layout')
21
+ });
22
+ });
23
+
24
+ describe('Style and Layout customization accordion: Row spacing and Column spacing edit tab contents and functionality', () => {
25
+ abortEarlySetup();
26
+ before(() => {
27
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
28
+ cy.barsPreLoaderWait();
29
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
30
+ });
31
+
32
+ multipleSelectionGridPage.tests.verifyRowAndColumnSpacingContentAndFunctionalityEditTab();
33
+ });
34
+
35
+ describe('Style and Layout customization accordion: Row spacing and Column spacing preview tab functionality', () => {
36
+ abortEarlySetup();
37
+ before(() => {
38
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
39
+ cy.barsPreLoaderWait();
40
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
41
+ });
42
+
43
+ multipleSelectionGridPage.tests.verifyRowAndColumnSpacingFunctionalityPreviewTab();
44
+ });
45
+
46
+ describe('Style and Layout customization accordion: Cell minimum height edit tab contents and functionality', () => {
47
+ abortEarlySetup();
48
+ before(() => {
49
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
50
+ cy.barsPreLoaderWait();
51
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
52
+ });
53
+
54
+ multipleSelectionGridPage.tests.verifyCellMinimumHeightContentAndFunctionalityEditTab();
55
+ });
56
+
57
+ describe('Style and Layout customization accordion: Cell minimum height preview tab functionality', () => {
58
+ abortEarlySetup();
59
+ before(() => {
60
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
61
+ cy.barsPreLoaderWait();
62
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
63
+ });
64
+
65
+ multipleSelectionGridPage.tests.verifyCellMinimumHeightFunctionalityPreviewTab();
66
+ });
67
+
68
+ describe('Style and Layout customization accordion: Column dimensions edit tab contents and functionality', () => {
69
+ abortEarlySetup();
70
+ before(() => {
71
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
72
+ cy.barsPreLoaderWait()
73
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
74
+ });
75
+
76
+ multipleSelectionGridPage.tests.verifyColumnDimensionsContentsAndFunctionalityPreviewTab();
77
+ });
78
+
79
+ describe('Style and Layout customization accordion: Column dimensions preview tab functionality', () => {
80
+ abortEarlySetup();
81
+ before(() => {
82
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
83
+ cy.barsPreLoaderWait();
84
+ multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
85
+ });
86
+
87
+ multipleSelectionGridPage.tests.verifyColumnDimensionsFunctionalityPreviewTab();
88
+ });
89
+ });
@@ -0,0 +1,54 @@
1
+ import { singleSelectionGridPage } from "../../../pages";
2
+ import { colorPopupComponent } from "../../../pages/components";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ import utilities from "../../../support/helpers/utilities";
5
+
6
+ describe('Multiple selection grid - Additional settings', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Style and Layout customization accordion: Enable outer border for question edit tab contents and functionality', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
15
+ cy.barsPreLoaderWait();
16
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
17
+ });
18
+
19
+ singleSelectionGridPage.tests.verifyEnableOuterBorderContentAndFunctionalityEditTab();
20
+ });
21
+
22
+ describe('Style and Layout customization accordion: Enable outer border for question preview tab functionality', () => {
23
+ abortEarlySetup();
24
+ before(() => {
25
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
26
+ cy.barsPreLoaderWait();
27
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
28
+ });
29
+
30
+ singleSelectionGridPage.tests.verifyEnableOuterBorderFunctionalityPreviewTab();
31
+ });
32
+
33
+ describe('Style and Layout customization accordion: Inner border for question edit tab contents and functionality', () => {
34
+ abortEarlySetup();
35
+ before(() => {
36
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
37
+ cy.barsPreLoaderWait();
38
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
39
+ });
40
+
41
+ singleSelectionGridPage.tests.verifyInnerBorderContentAndFunctionalityEditTab();
42
+ });
43
+
44
+ describe('Style and Layout customization accordion: Inner border for question preview tab functionality', () => {
45
+ abortEarlySetup();
46
+ before(() => {
47
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
48
+ cy.barsPreLoaderWait();
49
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
50
+ });
51
+
52
+ singleSelectionGridPage.tests.verifyInnerBorderFunctionalityPreviewTab();
53
+ });
54
+ });
@@ -0,0 +1,90 @@
1
+ import { singleSelectionGridPage } from "../../../pages";
2
+ import { colorPopupComponent } from "../../../pages/components";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ import utilities from "../../../support/helpers/utilities";
5
+
6
+ describe('Multiple selection grid - Additional settings', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Style and Layout customization accordion', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
15
+ cy.barsPreLoaderWait();
16
+ });
17
+
18
+ singleSelectionGridPage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
19
+
20
+ it('\'Layout\' label should be displayed', () => {
21
+ utilities.verifyInnerText(singleSelectionGridPage.layoutLabel(), 'Layout')
22
+ });
23
+ });
24
+
25
+ describe('Style and Layout customization accordion: Row spacing and Column spacing edit tab contents and functionality', () => {
26
+ abortEarlySetup();
27
+ before(() => {
28
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
29
+ cy.barsPreLoaderWait();
30
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
31
+ });
32
+
33
+ singleSelectionGridPage.tests.verifyRowAndColumnSpacingContentAndFunctionalityEditTab();
34
+ });
35
+
36
+ describe('Style and Layout customization accordion: Row spacing and Column spacing preview tab functionality', () => {
37
+ abortEarlySetup();
38
+ before(() => {
39
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
40
+ cy.barsPreLoaderWait();
41
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
42
+ });
43
+
44
+ singleSelectionGridPage.tests.verifyRowAndColumnSpacingFunctionalityPreviewTab();
45
+ });
46
+
47
+ describe('Style and Layout customization accordion: Cell minimum height edit tab contents and functionality', () => {
48
+ abortEarlySetup();
49
+ before(() => {
50
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
51
+ cy.barsPreLoaderWait();
52
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
53
+ });
54
+
55
+ singleSelectionGridPage.tests.verifyCellMinimumHeightContentAndFunctionalityEditTab();
56
+ });
57
+
58
+ describe('Style and Layout customization accordion: Cell minimum height preview tab functionality', () => {
59
+ abortEarlySetup();
60
+ before(() => {
61
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
62
+ cy.barsPreLoaderWait();
63
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
64
+ });
65
+
66
+ singleSelectionGridPage.tests.verifyCellMinimumHeightFunctionalityPreviewTab();
67
+ });
68
+
69
+ describe('Style and Layout customization accordion: Column dimensions edit tab contents and functionality', () => {
70
+ abortEarlySetup();
71
+ before(() => {
72
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
73
+ cy.barsPreLoaderWait()
74
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
75
+ });
76
+
77
+ singleSelectionGridPage.tests.verifyColumnDimensionsContentsAndFunctionalityPreviewTab();
78
+ });
79
+
80
+ describe('Style and Layout customization accordion: Column dimensions preview tab functionality', () => {
81
+ abortEarlySetup();
82
+ before(() => {
83
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
84
+ cy.barsPreLoaderWait();
85
+ singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
86
+ });
87
+
88
+ singleSelectionGridPage.tests.verifyColumnDimensionsFunctionalityPreviewTab();
89
+ });
90
+ });