itemengine-cypress-automation 1.0.553-IEI-3480-e6afc10.0 → 1.0.553-IEI-7000-main-043954e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +120 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +27 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +29 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +140 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +16 -14
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +71 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationAllViews.js +230 -0
- package/cypress/pages/components/additionalSettingsPanel.js +18 -0
- package/cypress/pages/components/draggableOptionsSectionComponent.js +1 -1
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/optionsWrapperComponent.js +2 -2
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +197 -81
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { optionsWrapperComponent, createQuestionBasePage, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, questionInstructionsComponent, autoScoredStudentViewSettings, autoScoredScoringPreviewTab, commonComponents, ckEditorToolbar, equationEditorFlyout, randomizeOptionsComponent, allowMultipleInstancesOfSameDraggableOptionComponent, studentViewSettingsLabelComponent, additionalSettingsPanel, draggableOptionContainer, draggableOptionsSectionComponent, maximumCapacityPerDropzoneComponent, enableOuterBorderComponent, specifyRowsAndColumnsComponent, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent, gradingViewEnumerationComponent, ariaLabelSectionComponent } from "./components";
|
|
1
|
+
import { optionsWrapperComponent, createQuestionBasePage, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, questionInstructionsComponent, autoScoredStudentViewSettings, autoScoredScoringPreviewTab, commonComponents, ckEditorToolbar, equationEditorFlyout, randomizeOptionsComponent, allowMultipleInstancesOfSameDraggableOptionComponent, studentViewSettingsLabelComponent, additionalSettingsPanel, draggableOptionContainer, draggableOptionsSectionComponent, maximumCapacityPerDropzoneComponent, enableOuterBorderComponent, specifyRowsAndColumnsComponent, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent, gradingViewEnumerationComponent, ariaLabelSectionComponent, printPreviewComponent } from "./components";
|
|
2
2
|
import utilities from "../support/helpers/utilities";
|
|
3
3
|
import constants from "../fixtures/constants";
|
|
4
4
|
import { createItemPage } from "./createItemPage";
|
|
@@ -25,6 +25,7 @@ const selectors = {
|
|
|
25
25
|
...gradingViewEnumerationComponent,
|
|
26
26
|
...ariaLabelSectionComponent,
|
|
27
27
|
...scoringSectionBaseEditTab,
|
|
28
|
+
...printPreviewComponent,
|
|
28
29
|
|
|
29
30
|
editCellPropertyButton: () => cy.get('.action-menu button'),
|
|
30
31
|
editCellPropertyList: () => cy.get('.ngie-action-cell-container [role="menu"]'),
|
|
@@ -70,7 +71,7 @@ const selectors = {
|
|
|
70
71
|
dropzoneAriaLabelInputField: () => cy.get('[type="text"][aria-label*="Enter ARIA label"]'),
|
|
71
72
|
|
|
72
73
|
//Preview tab table
|
|
73
|
-
tableRowContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__RowContainer"]'),
|
|
74
|
+
tableRowContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__RowContainer"],[class*="Matrixstyles__MatrixRow"]'),
|
|
74
75
|
leftArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Left Pagination Button"][class*="Matrixstyles__PaginationControl"]'),
|
|
75
76
|
rightArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Right Pagination Button"][class*="Matrixstyles__PaginationControl"]'),
|
|
76
77
|
cellContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="CellDropZonestyles__CellContainer"],[class*="question-preview-wrapper"] [class*="Cellstyles__StyledCell"]'),
|
|
@@ -91,7 +92,7 @@ const selectors = {
|
|
|
91
92
|
penaltyPointsForIncorrectOptionInputField: () => cy.get('input[aria-label*="enalty points for each incorrect option"]'),
|
|
92
93
|
penaltyPointsForEachIncorrectOptionOrDropzoneLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__PointsLabel"]'),
|
|
93
94
|
tableOuterBorder: () => cy.get('.table-border'),
|
|
94
|
-
maxLimitInEachDropzoneHelpText: () => cy.get('[class*="Matrixstyles__MaxLimitWrapper"]'),
|
|
95
|
+
maxLimitInEachDropzoneHelpText: () => cy.get('[class*="Matrixstyles__MaxLimitWrapper"],[class*="MaximumLimitstyles__MaximumLimitWrapper"]'),
|
|
95
96
|
dropzoneGridSpecifyCorrectAnswerSection: () => cy.get('[class*="Matrixstyles__TableWrapper"]'),
|
|
96
97
|
dropzoneGridPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__TableWrapper"]'),
|
|
97
98
|
|
|
@@ -154,12 +155,17 @@ const selectors = {
|
|
|
154
155
|
panelPlacementOptions: (placementOption) => cy.get(`.panel-placement-style button[aria-label*="panel placement ${placementOption}"]`),
|
|
155
156
|
optionAlignmentInPanelOptions: (alignmentOption) => cy.get(`.option-alignment button[aria-label*="option alignment in panel ${alignmentOption}"]`),
|
|
156
157
|
optionsWrapper: () => cy.get('[class*="StandardDropZonestyles__DraggableItemsGrid"]'),
|
|
157
|
-
optionsWrapperPreviewTab: () => cy.get('
|
|
158
|
+
optionsWrapperPreviewTab: () => cy.get('[class*="StandardDropZonestyles__DraggableItemsGrid"],.standard-options-dropzone'),
|
|
158
159
|
optionsPreviewTab: () => cy.get('[class*="CellDropZonestyles__DraggableItemWrapper"]'),
|
|
159
160
|
iconWrapperInPreviewTab: () => cy.get('[class*="DragAndDropMatrixstyles__TickIconWrapper"]'),
|
|
160
161
|
gridBoxInPreviewTab: () => cy.get('[class*="CellDropZonestyles__DraggableWrapper"]'),
|
|
161
|
-
optionPanelWrapper: () => cy.get('.option-drag-and-drop'),
|
|
162
|
-
optionsInputFieldInQuestionPreviewTab: () => cy.get('.draggable-items-flex-wrapper .question-text-wrapper,.options-flex-wrapper .question-text-wrapper')
|
|
162
|
+
optionPanelWrapper: () => cy.get('.option-drag-and-drop, .options-dropzone-wrapper'),
|
|
163
|
+
optionsInputFieldInQuestionPreviewTab: () => cy.get('.draggable-items-flex-wrapper .question-text-wrapper,.options-flex-wrapper .question-text-wrapper'),
|
|
164
|
+
fitAllColumnsInOnePageLabel: () => cy.get('label[aria-label*="Fit all columns in one page"]'),
|
|
165
|
+
fitAllColumnsInOnePageCheckbox: () => cy.get('[aria-label*="Fit all columns in one page"] input'),
|
|
166
|
+
dropzoneHeightInputField: () => cy.get('input[id*="Dropzone height (px)"]'),
|
|
167
|
+
dropzoneHeightLabel: () => cy.get('label[for*="Dropzone height (px)"]'),
|
|
168
|
+
tableRowContainerStudentView: () => cy.get('[class*="Matrixstyles__MatrixContainer"]'),
|
|
163
169
|
}
|
|
164
170
|
|
|
165
171
|
const steps = {
|
|
@@ -187,6 +193,7 @@ const steps = {
|
|
|
187
193
|
...gradingViewEnumerationComponent.steps,
|
|
188
194
|
...ariaLabelSectionComponent.steps,
|
|
189
195
|
...createItemPage.steps,
|
|
196
|
+
...printPreviewComponent.steps,
|
|
190
197
|
|
|
191
198
|
/**
|
|
192
199
|
* @description Modifies the dropzone property based on the specified list option.
|
|
@@ -1516,21 +1523,21 @@ const steps = {
|
|
|
1516
1523
|
dragAndDropIntoCategoriesPage.tableRowContainerPreviewTab()
|
|
1517
1524
|
.each(($el) => {
|
|
1518
1525
|
cy.wrap($el)
|
|
1519
|
-
.should('have.css', '
|
|
1526
|
+
.should('have.css', 'column-gap', '0px');
|
|
1520
1527
|
});
|
|
1521
1528
|
break;
|
|
1522
1529
|
case 'Small':
|
|
1523
1530
|
dragAndDropIntoCategoriesPage.tableRowContainerPreviewTab()
|
|
1524
1531
|
.each(($el) => {
|
|
1525
1532
|
cy.wrap($el)
|
|
1526
|
-
.should('have.css', '
|
|
1533
|
+
.should('have.css', 'column-gap', '8px');
|
|
1527
1534
|
});
|
|
1528
1535
|
break;
|
|
1529
1536
|
case 'Wide':
|
|
1530
1537
|
dragAndDropIntoCategoriesPage.tableRowContainerPreviewTab()
|
|
1531
1538
|
.each(($el) => {
|
|
1532
1539
|
cy.wrap($el)
|
|
1533
|
-
.should('have.css', '
|
|
1540
|
+
.should('have.css', 'column-gap', '24px');
|
|
1534
1541
|
});
|
|
1535
1542
|
break;
|
|
1536
1543
|
default:
|
|
@@ -2015,25 +2022,16 @@ const steps = {
|
|
|
2015
2022
|
verifyDragHandleIconPreviewTab: (dragHandleOption) => {
|
|
2016
2023
|
switch (dragHandleOption) {
|
|
2017
2024
|
case 'drag icon':
|
|
2018
|
-
dragAndDropIntoCategoriesPage.
|
|
2019
|
-
.
|
|
2020
|
-
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2021
|
-
.should('have.class', 'drag-icon-button');
|
|
2022
|
-
});
|
|
2025
|
+
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2026
|
+
.should('have.class', 'drag-icon-button');
|
|
2023
2027
|
break;
|
|
2024
2028
|
case 'arrow icon':
|
|
2025
|
-
dragAndDropIntoCategoriesPage.
|
|
2026
|
-
.
|
|
2027
|
-
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2028
|
-
.should('have.class', 'drag-arrows-icon');
|
|
2029
|
-
});
|
|
2029
|
+
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2030
|
+
.should('have.class', 'drag-arrows-icon');
|
|
2030
2031
|
break;
|
|
2031
2032
|
case 'none':
|
|
2032
|
-
dragAndDropIntoCategoriesPage.
|
|
2033
|
-
.
|
|
2034
|
-
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2035
|
-
.should('not.be.visible');
|
|
2036
|
-
});
|
|
2033
|
+
dragAndDropIntoCategoriesPage.dragHandle()
|
|
2034
|
+
.should('not.be.visible');
|
|
2037
2035
|
break;
|
|
2038
2036
|
}
|
|
2039
2037
|
},
|
|
@@ -2053,12 +2051,9 @@ const steps = {
|
|
|
2053
2051
|
* @param {string} colorValue - The expected background color value.
|
|
2054
2052
|
*/
|
|
2055
2053
|
verifyDraggableOptionsFillColorPreviewTab: (colorValue) => {
|
|
2056
|
-
dragAndDropIntoCategoriesPage.
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
'background-color': colorValue
|
|
2060
|
-
});
|
|
2061
|
-
});
|
|
2054
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
|
|
2055
|
+
'background-color': colorValue
|
|
2056
|
+
});
|
|
2062
2057
|
},
|
|
2063
2058
|
|
|
2064
2059
|
/**
|
|
@@ -2076,12 +2071,19 @@ const steps = {
|
|
|
2076
2071
|
* @param {string} colorValue - The expected border color value.
|
|
2077
2072
|
*/
|
|
2078
2073
|
verifyDraggableOptionsBorderColorPreviewTab: (colorValue) => {
|
|
2079
|
-
dragAndDropIntoCategoriesPage.
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2074
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
|
|
2075
|
+
'border': `1px solid ${colorValue}`
|
|
2076
|
+
});
|
|
2077
|
+
},
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Verifies the border color of grid
|
|
2081
|
+
* @param {string} colorValue - The expected border color value.
|
|
2082
|
+
*/
|
|
2083
|
+
verifyDraggableOptionsBorderColorAllView: (colorValue) => {
|
|
2084
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
|
|
2085
|
+
'border': `1px dotted ${colorValue}`
|
|
2086
|
+
});
|
|
2085
2087
|
},
|
|
2086
2088
|
|
|
2087
2089
|
/**
|
|
@@ -2158,35 +2160,32 @@ const steps = {
|
|
|
2158
2160
|
* @param {string} placementOption - The panel placement option to verify.
|
|
2159
2161
|
*/
|
|
2160
2162
|
verifyPanelPlacementPreviewTab: (placementOption) => {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
break;
|
|
2188
|
-
}
|
|
2189
|
-
});
|
|
2163
|
+
switch (placementOption) {
|
|
2164
|
+
case 'Bottom':
|
|
2165
|
+
dragAndDropIntoCategoriesPage.optionPanelWrapper()
|
|
2166
|
+
.should('have.css', 'width', '844px')
|
|
2167
|
+
.and('have.css', 'padding-top', '32px')
|
|
2168
|
+
.and('have.css', 'padding-bottom', '16px')
|
|
2169
|
+
break;
|
|
2170
|
+
case 'Top':
|
|
2171
|
+
dragAndDropIntoCategoriesPage.optionPanelWrapper()
|
|
2172
|
+
.should('have.css', 'width', '844px')
|
|
2173
|
+
.and('have.css', 'padding-top', '16px')
|
|
2174
|
+
.and('have.css', 'padding-bottom', '32px')
|
|
2175
|
+
break;
|
|
2176
|
+
case 'Left':
|
|
2177
|
+
dragAndDropIntoCategoriesPage.optionPanelWrapper()
|
|
2178
|
+
.should('have.css', 'width', '200px')
|
|
2179
|
+
.and('have.css', 'padding-right', '24px')
|
|
2180
|
+
.and('have.css', 'padding-left', '8px')
|
|
2181
|
+
break;
|
|
2182
|
+
case 'Right':
|
|
2183
|
+
dragAndDropIntoCategoriesPage.optionPanelWrapper()
|
|
2184
|
+
.should('have.css', 'width', '200px')
|
|
2185
|
+
.and('have.css', 'padding-right', '8px')
|
|
2186
|
+
.and('have.css', 'padding-left', '24px')
|
|
2187
|
+
break;
|
|
2188
|
+
}
|
|
2190
2189
|
},
|
|
2191
2190
|
|
|
2192
2191
|
/**
|
|
@@ -2316,6 +2315,67 @@ const steps = {
|
|
|
2316
2315
|
.should('not.exist');
|
|
2317
2316
|
},
|
|
2318
2317
|
|
|
2318
|
+
verifyFitAllColumnsInOnePageCheckboxUnchecked: () => {
|
|
2319
|
+
dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox()
|
|
2320
|
+
.should('not.be.checked');
|
|
2321
|
+
},
|
|
2322
|
+
|
|
2323
|
+
verifyFitAllColumnsInOnePageCheckboxChecked: () => {
|
|
2324
|
+
dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox()
|
|
2325
|
+
.should('be.checked');
|
|
2326
|
+
},
|
|
2327
|
+
|
|
2328
|
+
checkFitAllColumnsInOnePageCheckbox: () => {
|
|
2329
|
+
dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox()
|
|
2330
|
+
.click()
|
|
2331
|
+
steps.verifyFitAllColumnsInOnePageCheckboxChecked();
|
|
2332
|
+
},
|
|
2333
|
+
|
|
2334
|
+
uncheckFitAllColumnsInOnePageCheckbox: () => {
|
|
2335
|
+
dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox()
|
|
2336
|
+
.click();
|
|
2337
|
+
steps.verifyFitAllColumnsInOnePageCheckboxUnchecked();
|
|
2338
|
+
},
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* This function verifies text in cell height input field
|
|
2342
|
+
* @param {number} cellHeight of the rows
|
|
2343
|
+
*/
|
|
2344
|
+
verifyDropzoneHeightInputField: (cellHeight) => {
|
|
2345
|
+
dragAndDropIntoCategoriesPage.dropzoneHeightInputField()
|
|
2346
|
+
.should('have.value', cellHeight);
|
|
2347
|
+
},
|
|
2348
|
+
|
|
2349
|
+
/**
|
|
2350
|
+
* This function verifies the row spacing
|
|
2351
|
+
* @param {("No spacing"|"Small"|"Wide")} spacing of the rows
|
|
2352
|
+
*/
|
|
2353
|
+
verifyRowSpacingStudentView: (spacing) => {
|
|
2354
|
+
switch (spacing) {
|
|
2355
|
+
case 'No spacing':
|
|
2356
|
+
dragAndDropIntoCategoriesPage.tableRowContainerStudentView()
|
|
2357
|
+
.eq(0)
|
|
2358
|
+
.should('have.css', 'row-gap', '0px');
|
|
2359
|
+
break;
|
|
2360
|
+
case 'Small':
|
|
2361
|
+
dragAndDropIntoCategoriesPage.tableRowContainerStudentView()
|
|
2362
|
+
.eq(0)
|
|
2363
|
+
.should('have.css', 'row-gap', '8px');
|
|
2364
|
+
break;
|
|
2365
|
+
case 'Wide':
|
|
2366
|
+
dragAndDropIntoCategoriesPage.tableRowContainerStudentView()
|
|
2367
|
+
.eq(0)
|
|
2368
|
+
.should('have.css', 'row-gap', '24px');
|
|
2369
|
+
break;
|
|
2370
|
+
default:
|
|
2371
|
+
throw new Error(`Unsupported spacing option: ${spacing}`);
|
|
2372
|
+
}
|
|
2373
|
+
},
|
|
2374
|
+
|
|
2375
|
+
verifyOptionAlignmentInPanelInStudentView: () => {
|
|
2376
|
+
dragAndDropIntoCategoriesPage.optionsWrapperPreviewTab()
|
|
2377
|
+
.should('have.css', 'align-content', 'flex-start');
|
|
2378
|
+
},
|
|
2319
2379
|
}
|
|
2320
2380
|
|
|
2321
2381
|
const tests = {
|
|
@@ -2339,6 +2399,7 @@ const tests = {
|
|
|
2339
2399
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
|
2340
2400
|
...gradingViewEnumerationComponent.tests,
|
|
2341
2401
|
...ariaLabelSectionComponent.tests,
|
|
2402
|
+
...printPreviewComponent.tests,
|
|
2342
2403
|
verifyContentsOfSpecifyCorrectAnswerSection: (scoringType) => {
|
|
2343
2404
|
it(`When the user selects ${scoringType} from scoring type dropdown then the specify correct answer sections should be displayed`, () => {
|
|
2344
2405
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertySpecifyCorrectAnswer(0, 'None');
|
|
@@ -2382,21 +2443,17 @@ const tests = {
|
|
|
2382
2443
|
};
|
|
2383
2444
|
});
|
|
2384
2445
|
|
|
2385
|
-
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
|
2386
|
-
|
|
2387
2446
|
it('When the user drops an option in the dropzone, the error message should disappear', () => {
|
|
2388
2447
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Eagle': 1 });
|
|
2389
2448
|
});
|
|
2390
2449
|
|
|
2391
|
-
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty(accordionName);
|
|
2392
|
-
|
|
2393
2450
|
it('CSS of \'Correct\' accordion contents', { tags: 'css' }, () => {
|
|
2394
2451
|
//Navigation button
|
|
2395
2452
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.leftArrowNavigationButtonSpecifyCorrectAnswerSection().find('path'), {
|
|
2396
|
-
'fill': css.color.
|
|
2453
|
+
'fill': css.color.secondaryBtnDisabled
|
|
2397
2454
|
});
|
|
2398
2455
|
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellContainerSpecifyCorrectAnswerSection(), 15), {
|
|
2399
|
-
'background-color': css.color.
|
|
2456
|
+
'background-color': css.color.matrixHeadingCellBg,
|
|
2400
2457
|
'border-color': css.color.matrixCellBorder
|
|
2401
2458
|
});
|
|
2402
2459
|
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellContainerSpecifyCorrectAnswerSection(), 15), {
|
|
@@ -2405,7 +2462,7 @@ const tests = {
|
|
|
2405
2462
|
});
|
|
2406
2463
|
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellContainerSpecifyCorrectAnswerSection(), 16), {
|
|
2407
2464
|
'background-color': css.color.matrixDropzoneCellBg,
|
|
2408
|
-
'border': `
|
|
2465
|
+
'border': `0px none ${css.color.codeBlockText}`
|
|
2409
2466
|
});
|
|
2410
2467
|
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellContainerSpecifyCorrectAnswerSection(), 30), {
|
|
2411
2468
|
'background-color': css.color.matrixSubheadingCellBg,
|
|
@@ -2416,24 +2473,83 @@ const tests = {
|
|
|
2416
2473
|
'border-color': css.color.matrixCellBorder
|
|
2417
2474
|
});
|
|
2418
2475
|
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellLabel(), 16), {
|
|
2476
|
+
'color': css.color.text,
|
|
2477
|
+
'font-size': css.fontSize.default,
|
|
2478
|
+
'font-weight': css.fontWeight.regular
|
|
2479
|
+
});
|
|
2480
|
+
utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.tableCellLabel(), 0), {
|
|
2419
2481
|
'color': css.color.text,
|
|
2420
2482
|
'font-size': css.fontSize.heading,
|
|
2421
2483
|
'font-weight': css.fontWeight.bold
|
|
2422
2484
|
});
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2485
|
+
});
|
|
2486
|
+
|
|
2487
|
+
it('Accessibility of \'Correct\' accordion contents', { tags: 'a11y' }, () => {
|
|
2488
|
+
cy.checkAccessibility(dragAndDropIntoCategoriesPage.tableCellContainerSpecifyCorrectAnswerSection());
|
|
2489
|
+
});
|
|
2490
|
+
},
|
|
2491
|
+
|
|
2492
|
+
verifyPrintLayoutSettingsAccordionAdditionalContents: () => {
|
|
2493
|
+
it('\'Fit all columns in one page\' label should be displayed', () => {
|
|
2494
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageLabel(), 'Fit all columns in one page');
|
|
2495
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageLabel(), 'visible');
|
|
2496
|
+
});
|
|
2497
|
+
|
|
2498
|
+
it('Fit all columns in one page checkbox should be displayed and in checked state by default', () => {
|
|
2499
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox(), 'exist');
|
|
2500
|
+
steps.verifyFitAllColumnsInOnePageCheckboxChecked();
|
|
2501
|
+
});
|
|
2502
|
+
|
|
2503
|
+
it('CSS of \'Fit all columns in one page\' section', { tags: 'css' }, () => {
|
|
2504
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageLabel(), {
|
|
2505
|
+
'color': css.color.labelText,
|
|
2506
|
+
'font-size': css.fontSize.normal,
|
|
2507
|
+
'font-weight': css.fontWeight.regular
|
|
2508
|
+
});
|
|
2509
|
+
});
|
|
2510
|
+
|
|
2511
|
+
it('Accessibility of \'Fit all columns in one page\' section', { tags: 'a11y' }, () => {
|
|
2512
|
+
cy.checkAccessibility(dragAndDropIntoCategoriesPage.fitAllColumnsInOnePageCheckbox().parents('.print-layout-settings-container'));
|
|
2513
|
+
});
|
|
2514
|
+
|
|
2515
|
+
it('User should be able to check and uncheck the \'Fit all columns in one page\' checkbox', () => {
|
|
2516
|
+
steps.uncheckFitAllColumnsInOnePageCheckbox();
|
|
2517
|
+
steps.checkFitAllColumnsInOnePageCheckbox();
|
|
2518
|
+
});
|
|
2519
|
+
|
|
2520
|
+
it('\'Dropzone height (px)\' label and input field should be displayed and input field should be prefilled with 58px by default', () => {
|
|
2521
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.dropzoneHeightLabel(), 'Dropzone height (px)');
|
|
2522
|
+
dragAndDropIntoCategoriesPage.steps.verifyDropzoneHeightInputField('58');
|
|
2523
|
+
});
|
|
2524
|
+
|
|
2525
|
+
it('CSS of \'Dropzone height (px)\' label', { tags: 'css' }, () => {
|
|
2526
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.dropzoneHeightLabel(), {
|
|
2527
|
+
'color': css.color.labels,
|
|
2528
|
+
'font-size': css.fontSize.normal,
|
|
2426
2529
|
'font-weight': css.fontWeight.semibold
|
|
2427
2530
|
});
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2531
|
+
});
|
|
2532
|
+
|
|
2533
|
+
it('Accessibility of \'Dropzone height (px)\' label and input field', { tags: 'a11y' }, () => {
|
|
2534
|
+
cy.checkAccessibility(dragAndDropIntoCategoriesPage.dropzoneHeightInputField().parents('.print-layout-settings-container'));
|
|
2535
|
+
});
|
|
2536
|
+
|
|
2537
|
+
it('When the user unchecked Fit all columns in one page checkbox,Dropzone width (px) label and input field should be visible and by default it should be 156px', () => {
|
|
2538
|
+
steps.uncheckFitAllColumnsInOnePageCheckbox();
|
|
2539
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.dropzoneWidthLabel(), 'Dropzone width (px)');
|
|
2540
|
+
dragAndDropIntoCategoriesPage.steps.verifyDropzoneWidthInputField(0, '156');
|
|
2541
|
+
});
|
|
2542
|
+
|
|
2543
|
+
it('CSS of \'Dropzone width (px)\' label', { tags: 'css' }, () => {
|
|
2544
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.dropzoneWidthLabel(), {
|
|
2545
|
+
'color': css.color.labels,
|
|
2546
|
+
'font-size': css.fontSize.normal,
|
|
2547
|
+
'font-weight': css.fontWeight.semibold
|
|
2432
2548
|
});
|
|
2433
2549
|
});
|
|
2434
2550
|
|
|
2435
|
-
it('Accessibility of \'
|
|
2436
|
-
cy.checkAccessibility(dragAndDropIntoCategoriesPage.
|
|
2551
|
+
it('Accessibility of \'Dropzone width (px)\' label and input field', { tags: 'a11y' }, () => {
|
|
2552
|
+
cy.checkAccessibility(dragAndDropIntoCategoriesPage.dropzoneWidthInputField().parents('.print-layout-settings-container'));
|
|
2437
2553
|
});
|
|
2438
2554
|
},
|
|
2439
2555
|
}
|