itemengine-cypress-automation 1.0.253-TEMSmokeTestUpdates-82559a5.0 → 1.0.254-UpdatedRepo4thNov-c5b0050.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +231 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +213 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +148 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +249 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +164 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +444 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +102 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +134 -0
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +46 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +98 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +147 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableHeaders.js +127 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableRowAndColumn.js +71 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +154 -0
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -17
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +24 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +47 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -16
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +52 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +23 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +55 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +53 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +48 -19
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +23 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +47 -17
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +50 -19
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -3
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -1
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +4 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +261 -0
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +3 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +15 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +10 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -2
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +56 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +16 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -5
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +8 -22
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +19 -19
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -4
- package/cypress/e2e/ILC/ToolAudioPlayerNew/studentViewSettings.js +8 -2
- package/cypress/fixtures/theme/ilc.json +9 -5
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +615 -0
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +41 -0
- package/cypress/pages/components/ckEditorInsertTableComponent.js +741 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +145 -7
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/layoutSectionComponent.js +25 -4
- package/cypress/pages/components/numberLineCommonComponent.js +39 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +28 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/graphingPage.js +8 -8
- package/cypress/pages/gridFillPage.js +11 -11
- package/cypress/pages/multipleSelectionPage.js +12 -0
- package/cypress/pages/singleSelectionPage.js +1 -1
- package/cypress/pages/textEntryMathPage.js +18 -0
- package/cypress/pages/textEntryMathWithImagePage.js +15 -2
- package/cypress/pages/textSelectionPage.js +7 -1
- package/package.json +1 -1
@@ -0,0 +1,261 @@
|
|
1
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
+
import { essayResponsePage, } from "../../../pages";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
import { colorPopupComponent } from "../../../pages/components";
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
const fontSizes = { 'Tiny': '12', 'Small': '14', 'Default': '16', 'Normal': '18', 'Big': '22', 'Huge': '26' };
|
7
|
+
|
8
|
+
describe('Create question page - Essay Response: Customize formatting options (for student player) toolbar options', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Text Color formatting option - Edit tab', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
19
|
+
});
|
20
|
+
|
21
|
+
it('By default \'Text Color\' option should be not selected ', () => {
|
22
|
+
essayResponsePage.steps.verifyCustomizeFormattingOptionNotSelected(['Font Color']);
|
23
|
+
});
|
24
|
+
|
25
|
+
it('When the user clicks on the \'Text Color\' button, then \'Default font colors\' label along with three color option, add color button and \'Enable color picker\' checkbox should be visible', () => {
|
26
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Font Color']);
|
27
|
+
utilities.verifyTextContent(essayResponsePage.defaultColorLabel(), 'Default font colors');
|
28
|
+
utilities.verifyElementCount(essayResponsePage.colorOptionEditTab(), 3);
|
29
|
+
utilities.verifyElementVisibilityState(essayResponsePage.colorPicker(), 'visible');
|
30
|
+
utilities.verifyInnerText(essayResponsePage.enableColorPickerLabel(), 'Enable color picker');
|
31
|
+
utilities.verifyElementVisibilityState(essayResponsePage.enableColorPickerLabel(), 'visible');
|
32
|
+
utilities.verifyElementVisibilityState(essayResponsePage.enableColorPickerCheckbox(), 'visible');
|
33
|
+
});
|
34
|
+
|
35
|
+
it('When the user click on the \'Add color\' button and modifies color for the selected color block and clicks on ok button, new color option should be visible', () => {
|
36
|
+
essayResponsePage.steps.clickOnColorPicker();
|
37
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
38
|
+
colorPopupComponent.steps.clickOnOkButton();
|
39
|
+
utilities.verifyElementCount(essayResponsePage.colorOptionEditTab(), 4);
|
40
|
+
});
|
41
|
+
|
42
|
+
});
|
43
|
+
|
44
|
+
describe('Highlight Text formatting option - Edit tab', () => {
|
45
|
+
abortEarlySetup();
|
46
|
+
before(() => {
|
47
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
48
|
+
cy.barsPreLoaderWait();
|
49
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
50
|
+
});
|
51
|
+
|
52
|
+
it('By default \'Highlight Text\' option should be not selected ', () => {
|
53
|
+
essayResponsePage.steps.verifyCustomizeFormattingOptionNotSelected(['Highlight Text']);
|
54
|
+
});
|
55
|
+
|
56
|
+
it('When the user click on the \'Highlight Text\' button,then \'Default highlight colors\' label along with one color option ,add color button and \'Enable color picker\'checkbox should be visible', () => {
|
57
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Highlight Text']);
|
58
|
+
utilities.verifyTextContent(essayResponsePage.defaultColorLabel(), 'Default highlight colors');
|
59
|
+
utilities.verifyElementCount(essayResponsePage.colorOptionEditTab(), 1);
|
60
|
+
utilities.verifyElementVisibilityState(essayResponsePage.colorPicker(), 'visible');
|
61
|
+
utilities.verifyInnerText(essayResponsePage.enableColorPickerLabel(), 'Enable color picker');
|
62
|
+
utilities.verifyElementVisibilityState(essayResponsePage.enableColorPickerLabel(), 'visible');
|
63
|
+
utilities.verifyElementVisibilityState(essayResponsePage.enableColorPickerCheckbox(), 'visible');
|
64
|
+
});
|
65
|
+
|
66
|
+
it('When the user click on the \'Add color\' button and modifies color for the selected color block and click on ok button,new color option should be visible', () => {
|
67
|
+
essayResponsePage.steps.clickOnColorPicker();
|
68
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
69
|
+
colorPopupComponent.steps.clickOnOkButton();
|
70
|
+
utilities.verifyElementCount(essayResponsePage.colorOptionEditTab(), 2);
|
71
|
+
});
|
72
|
+
|
73
|
+
});
|
74
|
+
|
75
|
+
describe('Font Size formatting option - Preview tab', () => {
|
76
|
+
abortEarlySetup();
|
77
|
+
before(() => {
|
78
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
79
|
+
cy.barsPreLoaderWait();
|
80
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
81
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Font size']);
|
82
|
+
essayResponsePage.steps.switchToPreviewTab();
|
83
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
84
|
+
essayResponsePage.steps.enterInputInResponseField('{selectAll}');
|
85
|
+
});
|
86
|
+
|
87
|
+
it('By default fontsize of response filed text is 16 px ', () => {
|
88
|
+
essayResponsePage.steps.verifyResponseFieldTextFontSizeNew(16);
|
89
|
+
});
|
90
|
+
|
91
|
+
it(`When the user selects the \'Font size\' toolbar option,then open a list of ${Object.keys(fontSizes).length} options - ${Object.keys(fontSizes).join(',')} is should be display and by default \'Default\' option should be selected`, () => {
|
92
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Font Size');
|
93
|
+
Object.values(fontSizes).forEach((option) => {
|
94
|
+
essayResponsePage.steps.verifyFontSizeListContent(option);
|
95
|
+
});
|
96
|
+
essayResponsePage.steps.selectFontSizeOption(16);
|
97
|
+
essayResponsePage.steps.clearResponseField();
|
98
|
+
});
|
99
|
+
|
100
|
+
Object.values(fontSizes).forEach((option) => {
|
101
|
+
it(`When the user selects \'${option}\' option from the font size list, then font size of the response field text should be change to ${fontSizes[option]} accordingly`, () => {
|
102
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Font Size');
|
103
|
+
essayResponsePage.steps.selectFontSizeOption(`${option}`);
|
104
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
105
|
+
essayResponsePage.steps.verifyResponseFieldTextFontSize(`${option}`);
|
106
|
+
essayResponsePage.steps.clearResponseField();
|
107
|
+
});
|
108
|
+
});
|
109
|
+
});
|
110
|
+
|
111
|
+
describe('Highlight Text formatting option - Preview tab', () => {
|
112
|
+
abortEarlySetup();
|
113
|
+
before(() => {
|
114
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
115
|
+
cy.barsPreLoaderWait();
|
116
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
117
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Highlight Text']);
|
118
|
+
essayResponsePage.steps.checkDisplayWordCountCheckbox();
|
119
|
+
essayResponsePage.steps.switchToPreviewTab();
|
120
|
+
});
|
121
|
+
|
122
|
+
it('When the user select the \'Highlight Text\' toolbar option,then \'Highlight color\' label and by default one color option should be display ', () => {
|
123
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Highlight Text');
|
124
|
+
utilities.verifyInnerText(essayResponsePage.popupLabel(), 'Highlight color');
|
125
|
+
utilities.verifyElementCount(essayResponsePage.colorOption(), 1);
|
126
|
+
});
|
127
|
+
|
128
|
+
it('when the user add a new color and select \'Highlight Text\' ,then the new color should be visible inside highlight text pop up preview tab ', () => {
|
129
|
+
essayResponsePage.steps.switchToEditTab();
|
130
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
131
|
+
essayResponsePage.steps.clickOnColorPicker();
|
132
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
133
|
+
colorPopupComponent.steps.clickOnOkButton();
|
134
|
+
essayResponsePage.steps.switchToPreviewTab();
|
135
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Highlight Text');
|
136
|
+
utilities.verifyElementCount(essayResponsePage.colorOption(), 2);
|
137
|
+
});
|
138
|
+
|
139
|
+
it('When user select the default highlight color option,then the text entered in the response field should appear as a highlighted text, the word count should also update and all the toolbar formatting options should be in enabled state', () => {
|
140
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Highlight Text');
|
141
|
+
essayResponsePage.steps.selectColorOptionInPreviewTab(0);
|
142
|
+
essayResponsePage.steps.focusInResponseField();
|
143
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
144
|
+
essayResponsePage.steps.verifyResponseFieldTextIsHighlighted(`${css.color.responseFieldText}`, 'Lorem Ipsum');
|
145
|
+
});
|
146
|
+
|
147
|
+
it('When the user change color option,then the text in the response field color should be change accordingly ', () => {
|
148
|
+
essayResponsePage.steps.focusInResponseField();
|
149
|
+
essayResponsePage.steps.enterInputInResponseField(`{selectAll}{backspace}`);
|
150
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Highlight Text');
|
151
|
+
essayResponsePage.steps.selectColorOptionInPreviewTab(1);
|
152
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
153
|
+
essayResponsePage.steps.verifyResponseFieldTextIsHighlighted(`${css.color.backgroundColorText}`, 'Lorem Ipsum');
|
154
|
+
});
|
155
|
+
});
|
156
|
+
|
157
|
+
describe('Text Color formatting option - Preview tab', () => {
|
158
|
+
abortEarlySetup();
|
159
|
+
before(() => {
|
160
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
161
|
+
cy.barsPreLoaderWait();
|
162
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
163
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Font Color']);
|
164
|
+
essayResponsePage.steps.checkDisplayWordCountCheckbox();
|
165
|
+
essayResponsePage.steps.switchToPreviewTab();
|
166
|
+
});
|
167
|
+
|
168
|
+
it('When the user select the \'Text Color\' toolbar option,\'Text Color\' label and by default one color option should be display ', () => {
|
169
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Text Color');
|
170
|
+
utilities.verifyInnerText(essayResponsePage.popupLabel(), 'Text color');
|
171
|
+
utilities.verifyElementCount(essayResponsePage.colorOption(), 3);
|
172
|
+
});
|
173
|
+
|
174
|
+
it('When the user select one color option,then the text entered in the response field color should be accordingly, the word count should also update and all the toolbar formatting options should be in enabled state', () => {
|
175
|
+
essayResponsePage.steps.selectColorOptionInPreviewTab(1);
|
176
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
177
|
+
essayResponsePage.steps.verifyResponseFieldTextColor(`${css.textSelectionColorLibrary.aqua.background}`);
|
178
|
+
essayResponsePage.steps.verifyWordCount('2');
|
179
|
+
});
|
180
|
+
|
181
|
+
it('When the user change color option,then the text in the response field color should be change accordingly ', () => {
|
182
|
+
essayResponsePage.steps.enterInputInResponseField(`{selectAll}{backspace}`);
|
183
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Text Color');
|
184
|
+
essayResponsePage.steps.selectColorOptionInPreviewTab(2);
|
185
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
186
|
+
essayResponsePage.steps.verifyResponseFieldTextColor(`${css.color.newFontColor}`);
|
187
|
+
});
|
188
|
+
});
|
189
|
+
|
190
|
+
describe('Clear All Controls - Preview tab', () => {
|
191
|
+
abortEarlySetup();
|
192
|
+
before(() => {
|
193
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
194
|
+
cy.barsPreLoaderWait();
|
195
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
196
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Clear All']);
|
197
|
+
essayResponsePage.steps.switchToPreviewTab();
|
198
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
199
|
+
});
|
200
|
+
|
201
|
+
it('When the user select the \'Highlight Text\' toolbar option,then a pop up should be display ', () => {
|
202
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Clear all');
|
203
|
+
utilities.verifyElementVisibilityState(essayResponsePage.dialogBox(), 'visible');
|
204
|
+
});
|
205
|
+
|
206
|
+
it('\'Are you sure you want to clear all text?\' message,\'Clear all\' title,\'Cancel\' and \'Clear all\' button should be visible', () => {
|
207
|
+
utilities.verifyTextContent(essayResponsePage.clearTextMessage(), 'Are you sure you want to clear all text?');
|
208
|
+
utilities.verifyElementVisibilityState(essayResponsePage.clearTextMessage(), 'visible');
|
209
|
+
utilities.verifyTextContent(essayResponsePage.clearAllLabel(), 'Clear all');
|
210
|
+
utilities.verifyElementVisibilityState(essayResponsePage.clearAllLabel(), 'visible');
|
211
|
+
utilities.verifyElementVisibilityState(essayResponsePage.cancelButton(), 'visible');
|
212
|
+
utilities.verifyElementVisibilityState(essayResponsePage.clearAllButton(), 'visible');
|
213
|
+
});
|
214
|
+
|
215
|
+
it('When the user click on \'Clear All\' button,no text should be display ', () => {
|
216
|
+
essayResponsePage.steps.clickOnClearAllButton();
|
217
|
+
utilities.verifyTextContent(essayResponsePage.responseField(), '');
|
218
|
+
});
|
219
|
+
});
|
220
|
+
|
221
|
+
describe('enable color picker - Preview tab', () => {
|
222
|
+
abortEarlySetup();
|
223
|
+
before(() => {
|
224
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
225
|
+
cy.barsPreLoaderWait();
|
226
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
227
|
+
essayResponsePage.steps.selectCustomizedFormattingOption(['Font Color']);
|
228
|
+
essayResponsePage.steps.clickOnEnableColorPickerCheckbox();
|
229
|
+
essayResponsePage.steps.switchToPreviewTab();
|
230
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
231
|
+
});
|
232
|
+
|
233
|
+
it('When the user checked \'Enable color picker\' checkbox,then \'Select color\' label, \'Selected color\' label,\'Cancel\' button and \'ok\' button should be display,and by default color option \'rgb(0, 0, 0)\' is selected ', () => {
|
234
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Text Color');
|
235
|
+
utilities.verifyInnerText(utilities.getNthElement(essayResponsePage.selectColorLabel(), 0), 'Select color');
|
236
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(essayResponsePage.selectColorLabel(), 0), 'visible');
|
237
|
+
utilities.verifyInnerText(utilities.getNthElement(essayResponsePage.selectColorLabel(), 1), 'Selected color');
|
238
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(essayResponsePage.selectColorLabel(), 1), 'visible');
|
239
|
+
utilities.verifyElementVisibilityState(colorPopupComponent.cancelButton(), 'visible');
|
240
|
+
utilities.verifyInnerText(colorPopupComponent.cancelButton(), 'Cancel');
|
241
|
+
utilities.verifyElementVisibilityState(colorPopupComponent.okButton(), 'visible');
|
242
|
+
utilities.verifyInnerText(colorPopupComponent.okButton(), 'Ok');
|
243
|
+
});
|
244
|
+
|
245
|
+
colorPopupComponent.tests.verifySaturationAndOpacityGradientPalette('rgb(0, 0, 0)');
|
246
|
+
|
247
|
+
it('When the user click \'Cancel\' button,then response field text color should not be change', () => {
|
248
|
+
colorPopupComponent.steps.clickOnCancelButton();
|
249
|
+
essayResponsePage.steps.verifyResponseFieldTextNewColor(`${css.color.text}`);
|
250
|
+
});
|
251
|
+
|
252
|
+
it('When the user select color using color palate and click on \'Ok\' button,then response field text color should change accordingly', () => {
|
253
|
+
essayResponsePage.steps.enterInputInResponseField(`{selectAll}{backspace}`);
|
254
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Text Color');
|
255
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
256
|
+
colorPopupComponent.steps.clickOnOkButton();
|
257
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
258
|
+
essayResponsePage.steps.verifyResponseFieldTextColor(`${css.color.newResponseFieldColor}`);
|
259
|
+
});
|
260
|
+
});
|
261
|
+
});
|
@@ -34,6 +34,8 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
34
34
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Underline (Ctrl+U)');
|
35
35
|
essayResponsePage.steps.enterInputInResponseField('This is a test for grading view preview contents');
|
36
36
|
essayResponsePage.steps.focusOutOfResponseField();
|
37
|
+
cy.log("load the input text properly");
|
38
|
+
cy.wait(1000)
|
37
39
|
studentViewPage.steps.submitResponse();
|
38
40
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
39
41
|
});
|
@@ -45,9 +47,9 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
45
47
|
});
|
46
48
|
|
47
49
|
it('The response submitted by the student should be visible in the response field of the grading view. The formatting toolbar options should not be visible in grading view', () => {
|
48
|
-
essayResponsePage.
|
50
|
+
essayResponsePage.responseFieldText()
|
49
51
|
.verifyInnerHTML('<p><strong><em><u>This is a test for grading view preview contents</u></em></strong></p>');
|
50
|
-
utilities.verifyElementVisibilityState(essayResponsePage.previewTabToolbarWrapper(), '
|
52
|
+
utilities.verifyElementVisibilityState(essayResponsePage.previewTabToolbarWrapper(), 'notExist');
|
51
53
|
});
|
52
54
|
|
53
55
|
it('The content in the response field should not be editable', () => {
|
@@ -33,6 +33,8 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
33
33
|
essayResponseBasicPage.steps.selectPreviewTabToolbarOption('Italic (Ctrl+I)');
|
34
34
|
essayResponseBasicPage.steps.selectPreviewTabToolbarOption('Underline (Ctrl+U)');
|
35
35
|
essayResponseBasicPage.steps.enterInputInResponseField('This is a test for grading view preview contents');
|
36
|
+
cy.log("load the input text properly");
|
37
|
+
cy.wait(1000)
|
36
38
|
studentViewPage.steps.submitResponse();
|
37
39
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
38
40
|
});
|
@@ -44,9 +46,9 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
44
46
|
});
|
45
47
|
|
46
48
|
it('The response submitted by the student should be visible in the response field of the grading view. The formatting toolbar options should not be visible in grading view', () => {
|
47
|
-
essayResponseBasicPage.
|
49
|
+
essayResponseBasicPage.responseFieldText()
|
48
50
|
.verifyInnerHTML('<p><strong><em><u>This is a test for grading view preview contents</u></em></strong></p>');
|
49
|
-
utilities.verifyElementVisibilityState(essayResponseBasicPage.previewTabToolbarWrapper(), '
|
51
|
+
utilities.verifyElementVisibilityState(essayResponseBasicPage.previewTabToolbarWrapper(), 'notExist');
|
50
52
|
});
|
51
53
|
|
52
54
|
it('The content in the response field should not be editable', () => {
|
@@ -16,7 +16,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
|
|
16
16
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Bark', 'Stem', 'Trunk']);
|
17
17
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Bark': 1 });
|
18
18
|
fillInTheGapsDragAndDropPage.steps.setResponseLevelAlternateAnswer(0, ['Leaves']);
|
19
|
-
fillInTheGapsDragAndDropPage.steps.setResponseLevelAlternateAnswer(
|
19
|
+
fillInTheGapsDragAndDropPage.steps.setResponseLevelAlternateAnswer(2, ['Stem', 'Trunk']);
|
20
20
|
//fillInTheGapsDragAndDropPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
21
21
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
22
22
|
});
|
@@ -85,7 +85,7 @@ describe('Create item page - Fill in the gaps with text: Dropzone level alternat
|
|
85
85
|
});
|
86
86
|
|
87
87
|
it('When the user clicks on \'Cancel\' button, then popup should be closed and the changes made by the user should not be saved', () => {
|
88
|
-
fillInTheGapsDragAndDropPage.steps.
|
88
|
+
fillInTheGapsDragAndDropPage.steps.cancelDropzoneAlternateAnswersPopup();
|
89
89
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.alternateAnswerPopup(), 'notExist');
|
90
90
|
});
|
91
91
|
|
@@ -158,7 +158,7 @@ describe('Create item page - Fill in the gaps with text: Dropzone level alternat
|
|
158
158
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.alternateAnswerPopupHelpText(), 'Select alternate answer(s).');
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneAlternateAnswerPopupOptions(['Petals', 'Roots', 'Stem']);
|
160
160
|
cy.log('Post-step: Close the alternate answers popup');
|
161
|
-
fillInTheGapsDragAndDropPage.steps.
|
161
|
+
fillInTheGapsDragAndDropPage.steps.cancelDropzoneAlternateAnswersPopup();
|
162
162
|
});
|
163
163
|
|
164
164
|
it('When user removes the option from the dropzone, then the add alternate button should be disabled again', () => {
|
@@ -31,7 +31,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
31
31
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, alternateAnswerArray[0]);
|
32
32
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, alternateAnswerArray[1]);
|
33
33
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
34
|
-
|
34
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
35
35
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
36
36
|
});
|
37
37
|
|
@@ -102,7 +102,8 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
102
102
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
103
103
|
});
|
104
104
|
|
105
|
-
|
105
|
+
//Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4548 is resolved
|
106
|
+
it.skip('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correctly answered dropdowns, no icon should be displayed beside unattempted dropdown, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropdown numeration should be displayed', () => {
|
106
107
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
107
108
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }]);
|
108
109
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
@@ -122,7 +123,8 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
122
123
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
123
124
|
});
|
124
125
|
|
125
|
-
|
126
|
+
//Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4548 is resolved
|
127
|
+
it.skip('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the response from the alternative accordion, no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropdown numeration should be displayed', () => {
|
126
128
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
127
129
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: alternateAnswerArray[1] }]);
|
128
130
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
@@ -33,7 +33,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
33
33
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, alternateAnswerArray[1]);
|
34
34
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
35
35
|
fillInTheGapsDropdownPage.steps.allotPartialDifferentWeightsPoints({ 0: 7, 1: 5, 2: 3 });
|
36
|
-
|
36
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
37
37
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
38
38
|
});
|
39
39
|
|
@@ -103,7 +103,8 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
103
103
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
104
104
|
});
|
105
105
|
|
106
|
-
|
106
|
+
//Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4548 is resolved
|
107
|
+
it.skip('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the correct dropdowns, no icon should be displayed beside unattempted dropdown, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropdown numeration should be displayed', () => {
|
107
108
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
108
109
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }]);
|
109
110
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(7, 15);
|
@@ -35,7 +35,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal with
|
|
35
35
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
36
36
|
fillInTheGapsDropdownPage.steps.allotPoints(15);
|
37
37
|
fillInTheGapsDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
38
|
-
|
38
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
39
39
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
40
40
|
});
|
41
41
|
|
@@ -105,7 +105,8 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal with
|
|
105
105
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
106
106
|
});
|
107
107
|
|
108
|
-
|
108
|
+
//Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4548 is resolved
|
109
|
+
it.skip('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed besides the correct dropdowns, no icon should be displayed beside unattempted dropdown, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropdown numeration should be displayed', () => {
|
109
110
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
110
111
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }]);
|
111
112
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(5, 15);
|
@@ -149,6 +149,7 @@ describe('Create item page - Fill in the gaps drop down: Drop down alternate ans
|
|
149
149
|
});
|
150
150
|
|
151
151
|
it('When user opens the alternate answer popup for another drop down, then alternate answer popup with the title and options as per the corresponding drop down should be displayed', () => {
|
152
|
+
fillInTheGapsDropdownPage.steps.cancelDropdownAlternateAnswersPopup();
|
152
153
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
153
154
|
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(2);
|
154
155
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupTitle(), 'Dropzone 2 alternate answer(s)');
|
@@ -294,6 +294,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill type\'
|
|
294
294
|
|
295
295
|
it('When user changes the hover fill color and border color, then the updated colors should be applied to the grid in preview tab', () => {
|
296
296
|
gridFillPage.steps.switchToEditTab();
|
297
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
297
298
|
gridFillPage.steps.clickOnFillColorBlock('hoverFillColor');
|
298
299
|
gridFillPage.steps.selectRecommendedColorBlock(2);
|
299
300
|
gridFillPage.steps.addInputToOpacityInputField(60);
|
@@ -308,6 +309,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill type\'
|
|
308
309
|
|
309
310
|
it('When user changes the filled fill color and border color, then the updated colors should be applied to the grid in preview tab', () => {
|
310
311
|
gridFillPage.steps.switchToEditTab();
|
312
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
311
313
|
gridFillPage.steps.clickOnFillColorBlock('filledFillColor');
|
312
314
|
gridFillPage.steps.selectRecommendedColorBlock(1);
|
313
315
|
gridFillPage.steps.addInputToOpacityInputField(50);
|
@@ -377,6 +379,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill type\'
|
|
377
379
|
|
378
380
|
it('When \'Apply pattern on active state\' checkbox is checked and user selects cell in preview tab grid, then pattern should be displayed in the selected cell.', () => {
|
379
381
|
gridFillPage.steps.switchToEditTab();
|
382
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
380
383
|
gridFillPage.steps.checkApplyPatternOnActiveStateCheckbox();
|
381
384
|
gridFillPage.steps.switchToPreviewTab();
|
382
385
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
@@ -266,6 +266,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
266
266
|
|
267
267
|
it('When user has added input in alt text input field for filled image, then the filled image in selected cell in preview tab should have the provided alternative text', () => {
|
268
268
|
gridFillPage.steps.switchToEditTab();
|
269
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
269
270
|
gridFillPage.steps.addInputToFilledImageAltTextInputField('Filled image alternative text');
|
270
271
|
gridFillPage.steps.switchToPreviewTab();
|
271
272
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
@@ -274,6 +275,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
274
275
|
|
275
276
|
it('When user clears the filled image alt text input field, then the filled image in selected cell in preview tab should not have alternative text', () => {
|
276
277
|
gridFillPage.steps.switchToEditTab();
|
278
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
277
279
|
gridFillPage.steps.clearFilledImageAltTextInputField();
|
278
280
|
gridFillPage.steps.switchToPreviewTab();
|
279
281
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
@@ -282,6 +284,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
282
284
|
|
283
285
|
it('When user has deleted the uploaded filled image, then the selected cell in preview tab grid should not have a filled image', () => {
|
284
286
|
gridFillPage.steps.switchToEditTab();
|
287
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
285
288
|
gridFillPage.steps.deleteFilledImage();
|
286
289
|
gridFillPage.steps.clickOnDeleteButtonInDeleteImagePopup();
|
287
290
|
gridFillPage.steps.switchToPreviewTab();
|
@@ -485,6 +488,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
485
488
|
|
486
489
|
it('When user has deleted the uploaded background image, then the image should not be displayed as background in grid in preview tab', () => {
|
487
490
|
gridFillPage.steps.switchToEditTab();
|
491
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
488
492
|
gridFillPage.steps.deleteImage();
|
489
493
|
gridFillPage.steps.clickOnDeleteButtonInDeleteImagePopup();
|
490
494
|
utilities.verifyElementVisibilityState(gridFillPage.dialogBox(), 'notExist');
|
@@ -511,6 +515,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
511
515
|
|
512
516
|
it('When user selects \'Center\' image alignment, then image should be aligned to center inside the the preview tab grid', () => {
|
513
517
|
gridFillPage.steps.switchToEditTab();
|
518
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
514
519
|
gridFillPage.steps.selectCenterImageAlignment();
|
515
520
|
gridFillPage.steps.switchToPreviewTab();
|
516
521
|
gridFillPage.steps.verifyImageIsCenterAlignedInPreviewTabGrid();
|
@@ -518,6 +523,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
518
523
|
|
519
524
|
it('When user selects \'Top right\' image alignment, then image should be aligned to top right inside the the preview tab grid', () => {
|
520
525
|
gridFillPage.steps.switchToEditTab();
|
526
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
521
527
|
gridFillPage.steps.selectTopRightImageAlignment();
|
522
528
|
gridFillPage.steps.switchToPreviewTab();
|
523
529
|
gridFillPage.steps.verifyImageIsTopRightAlignedInPreviewTabGrid();
|
@@ -525,6 +531,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
525
531
|
|
526
532
|
it('When user selects \'Top left\' image alignment again, then image should be aligned to top left inside the the edit tab grids', () => {
|
527
533
|
gridFillPage.steps.switchToEditTab();
|
534
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
528
535
|
gridFillPage.steps.selectTopLeftImageAlignment();
|
529
536
|
gridFillPage.steps.switchToPreviewTab();
|
530
537
|
gridFillPage.steps.verifyImageIsTopLeftAlignedInPreviewTabGrid();
|
@@ -536,6 +543,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
536
543
|
|
537
544
|
it('When user changes opacity slider value, then opacity for image should be updated accordingly', () => {
|
538
545
|
gridFillPage.steps.switchToEditTab();
|
546
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
539
547
|
gridFillPage.steps.clickActionOnOpacitySlider();
|
540
548
|
gridFillPage.steps.switchToPreviewTab();
|
541
549
|
gridFillPage.steps.verifyOpacityValueForGridImageInPreviewTab('0.5');
|
@@ -543,6 +551,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
543
551
|
|
544
552
|
it('When user changes opacity value in input field, then opacity for image should be updated accordingly', () => {
|
545
553
|
gridFillPage.steps.switchToEditTab();
|
554
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
546
555
|
gridFillPage.steps.enterInputToOpacityInputField(40);
|
547
556
|
gridFillPage.steps.switchToPreviewTab();
|
548
557
|
gridFillPage.steps.verifyOpacityValueForGridImageInPreviewTab('0.4');
|
@@ -554,6 +563,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
554
563
|
|
555
564
|
it('When user unchecks \'Fill image to grid\' checkbox, then image dimensions should set to default state', () => {
|
556
565
|
gridFillPage.steps.switchToEditTab();
|
566
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
557
567
|
gridFillPage.steps.uncheckFillImageToGridCheckbox();
|
558
568
|
gridFillPage.steps.switchToPreviewTab();
|
559
569
|
gridFillPage.steps.verifyDefaultImageInGridInPreviewTab();
|
@@ -581,6 +591,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
581
591
|
|
582
592
|
it('When aspect ratio is unlocked and user changes the value in height input field, then width input field should remain unchanged and the dimensions should be updated in the grid', () => {
|
583
593
|
gridFillPage.steps.switchToEditTab();
|
594
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
584
595
|
gridFillPage.steps.updateCanvasHeight(120);
|
585
596
|
gridFillPage.steps.switchToPreviewTab();
|
586
597
|
gridFillPage.steps.verifyGridBackgroundImageDimensionsInPreviewTab('100px', '120px');
|
@@ -588,6 +599,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
588
599
|
|
589
600
|
it('When user locks the aspect ratio button and changes the value in the width input field, the height input field should be updated accordingly to maintain the updated aspect ratio', () => {
|
590
601
|
gridFillPage.steps.switchToEditTab();
|
602
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
591
603
|
gridFillPage.steps.lockAspectRatio();
|
592
604
|
gridFillPage.steps.updateCanvasWidth(150);
|
593
605
|
gridFillPage.steps.switchToPreviewTab();
|
@@ -596,6 +608,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
596
608
|
|
597
609
|
it('When user selects the \'Reset dimensions\' button the height and width should reset to the original values', () => {
|
598
610
|
gridFillPage.steps.switchToEditTab();
|
611
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
599
612
|
gridFillPage.steps.resetDimensions();
|
600
613
|
gridFillPage.steps.switchToPreviewTab();
|
601
614
|
gridFillPage.steps.verifyDefaultImageInGridInPreviewTab();
|
@@ -603,6 +616,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
603
616
|
|
604
617
|
it('When user adds input in alt text input field for background image, then the grid background image in preview tab should have the provided alternative text', () => {
|
605
618
|
gridFillPage.steps.switchToEditTab();
|
619
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
606
620
|
gridFillPage.steps.addInputToBackgroundImageAltTextInputField('Background image alternative text');
|
607
621
|
gridFillPage.steps.switchToPreviewTab();
|
608
622
|
gridFillPage.steps.verifyBackgroundImageAltTextInPreviewTabGrids('Background image alternative text');
|
@@ -610,6 +624,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
610
624
|
|
611
625
|
it('When user clears the background image alt text input field, then the grid background image in preview tab should not have alternative text', () => {
|
612
626
|
gridFillPage.steps.switchToEditTab();
|
627
|
+
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
613
628
|
gridFillPage.steps.clearBackgroundImageAltTextInputField();
|
614
629
|
gridFillPage.steps.switchToPreviewTab();
|
615
630
|
gridFillPage.steps.verifyBackgroundImageAltTextNotPresentInPreviewTabGrid();
|