|
11 | 11 | <test name="ValidateGridSettingsValidationInSystemConfig">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Pagebuilder"/>
|
14 |
| - <stories value="Column"/> |
15 |
| - <title value="Verify you cannot set the grid default size higher than the max size."/> |
16 |
| - <description value="Verify you cannot set the grid default size higher than the max size."/> |
| 14 | + <stories value="Store Configuration - Column Grid Size"/> |
| 15 | + <title value="Verify validations for grid default and max size."/> |
| 16 | + <description value="Verify validations for grid default and max size."/> |
17 | 17 | <severity value="CRITICAL"/>
|
18 | 18 | <useCaseId value="MC-950"/>
|
19 | 19 | <testCaseId value="MC-2293"/>
|
|
23 | 23 | </annotations>
|
24 | 24 | <before>
|
25 | 25 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
| 26 | + <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
| 27 | + <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
26 | 28 | </before>
|
27 | 29 | <after>
|
| 30 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_default 12" stepKey="setDefaultGridSize"/> |
| 31 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_max 16" stepKey="setMaxGridSize"/> |
28 | 32 | <actionGroup ref="logout" stepKey="logout"/>
|
29 | 33 | </after>
|
30 |
| - <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
31 |
| - <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
32 | 34 | <conditionalClick stepKey="uncheckUseSystemValueDefault" selector="{{ContentManagementSection.UseSystem('column_grid_default')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_default')}}" visible="true"/>
|
33 | 35 | <conditionalClick stepKey="uncheckUseSystemValueMax" selector="{{ContentManagementSection.UseSystem('column_grid_max')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_max')}}" visible="true"/>
|
34 | 36 | <!-- Enter Invalid Default Grid Size -->
|
|
156 | 158 | <test name="ValidateOddDefaultGridSizeIsSplitCorrectly">
|
157 | 159 | <annotations>
|
158 | 160 | <features value="Pagebuilder"/>
|
159 |
| - <stories value="Column"/> |
| 161 | + <stories value="Store Configuration - Column Grid Size"/> |
160 | 162 | <title value="Verify that the initial two column split is correct when the default grid size is odd."/>
|
161 | 163 | <description value="Verify that the initial two column split is correct when the default grid size is odd."/>
|
162 | 164 | <severity value="CRITICAL"/>
|
|
168 | 170 | </annotations>
|
169 | 171 | <before>
|
170 | 172 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
| 173 | + <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
| 174 | + <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
| 175 | + <conditionalClick stepKey="uncheckUseSystemValueDefault" selector="{{ContentManagementSection.UseSystem('column_grid_default')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_default')}}" visible="true"/> |
| 176 | + <!-- Enter Odd Default Grid Size --> |
| 177 | + <comment userInput="Enter Odd Default Grid Size" stepKey="comment1"/> |
| 178 | + <actionGroup ref="updateDefaultGridSizeConfig" stepKey="enterValidDefaultGridSize"> |
| 179 | + <argument name="gridSize" value="{{PageBuilderGridSize.gridSize_5}}"/> |
| 180 | + </actionGroup> |
| 181 | + <actionGroup ref="saveStoreConfiguration" stepKey="saveStoreConfiguration"/> |
| 182 | + <see selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage1"/> |
| 183 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 184 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
171 | 185 | </before>
|
172 | 186 | <after>
|
| 187 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_default 12" stepKey="setDefaultGridSize"/> |
| 188 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_max 16" stepKey="setMaxGridSize"/> |
173 | 189 | <actionGroup ref="logout" stepKey="logout"/>
|
174 | 190 | </after>
|
175 |
| - <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
176 |
| - <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
177 |
| - <conditionalClick stepKey="uncheckUseSystemValueDefault" selector="{{ContentManagementSection.UseSystem('column_grid_default')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_default')}}" visible="true"/> |
178 |
| - <!-- Enter Odd Default Grid Size --> |
179 |
| - <comment userInput="Enter Odd Default Grid Size" stepKey="comment1"/> |
180 |
| - <actionGroup ref="updateDefaultGridSizeConfig" stepKey="enterValidDefaultGridSize"> |
181 |
| - <argument name="gridSize" value="{{PageBuilderGridSize.gridSize_5}}"/> |
182 |
| - </actionGroup> |
183 |
| - <actionGroup ref="saveStoreConfiguration" stepKey="saveStoreConfiguration"/> |
184 |
| - <see selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage1"/> |
185 |
| - <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
186 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
187 | 191 | <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
|
188 | 192 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
189 | 193 | </actionGroup>
|
190 |
| - <seeElement selector="{{PageBuilderColumnSection.displayLabel('1', '3/5')}}" stepKey="verifyFirstColumn"/> |
191 |
| - <seeElement selector="{{PageBuilderColumnSection.displayLabel('2', '2/5')}}" stepKey="verifySecondColumn"/> |
| 194 | + <waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('1', '3/5')}}" stepKey="verifyFirstColumn"/> |
| 195 | + <waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('2', '2/5')}}" stepKey="verifySecondColumn"/> |
192 | 196 | </test>
|
193 | 197 | <test name="ValidateTooltipMessage">
|
194 | 198 | <annotations>
|
195 | 199 | <features value="Pagebuilder"/>
|
196 |
| - <stories value="Column"/> |
| 200 | + <stories value="Store Configuration - Column Grid Size"/> |
197 | 201 | <title value="Column grid panel tooltip updates with max column size."/>
|
198 | 202 | <description value="Verify that the tooltip for grid size updates to reflect the max column size."/>
|
199 | 203 | <severity value="CRITICAL"/>
|
| 204 | + <useCaseId value="MC-950"/> |
200 | 205 | <testCaseId value="MC-2313"/>
|
201 | 206 | <group value="pagebuilder"/>
|
202 | 207 | <group value="pagebuilder-column"/>
|
203 | 208 | <group value="pagebuilder-columnGridSizeConfig"/>
|
204 | 209 | </annotations>
|
205 | 210 | <before>
|
206 | 211 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
| 212 | + <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
| 213 | + <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
| 214 | + <conditionalClick stepKey="uncheckUseSystemValue" selector="{{ContentManagementSection.UseSystem('column_grid_max')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_max')}}" visible="true"/> |
| 215 | + <comment userInput="Change Maximum Grid Size to 5" stepKey="comment1"/> |
| 216 | + <actionGroup ref="updateMaxGridSizeConfig" stepKey="enterValidMaxGridSize"> |
| 217 | + <argument name="gridSize" value="{{PageBuilderGridSize.gridSize_5}}"/> |
| 218 | + </actionGroup> |
| 219 | + <actionGroup ref="saveStoreConfiguration" stepKey="saveStoreConfiguration"/> |
| 220 | + <see selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage1"/> |
| 221 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 222 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
207 | 223 | </before>
|
208 | 224 | <after>
|
| 225 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_default 12" stepKey="setDefaultGridSize"/> |
| 226 | + <magentoCLI command="config:set cms/pagebuilder/column_grid_max 16" stepKey="setMaxGridSize"/> |
209 | 227 | <actionGroup ref="logout" stepKey="logout"/>
|
210 | 228 | </after>
|
211 |
| - <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
212 |
| - <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
213 |
| - <conditionalClick stepKey="uncheckUseSystemValue" selector="{{ContentManagementSection.UseSystem('column_grid_max')}}" dependentSelector="{{ContentManagementSection.UseSystemChecked('column_grid_max')}}" visible="true"/> |
214 |
| - <comment userInput="Change Maximum Grid Size to 5" stepKey="comment1"/> |
215 |
| - <actionGroup ref="updateMaxGridSizeConfig" stepKey="enterValidMaxGridSize"> |
216 |
| - <argument name="gridSize" value="{{PageBuilderGridSize.gridSize_5}}"/> |
217 |
| - </actionGroup> |
218 |
| - <actionGroup ref="saveStoreConfiguration" stepKey="saveStoreConfiguration"/> |
219 |
| - <see selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage1"/> |
220 |
| - <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
221 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
222 | 229 | <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
|
223 | 230 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
224 | 231 | </actionGroup>
|
225 | 232 | <actionGroup ref="openGridSizeForm" stepKey="openGridSizeForm" />
|
226 | 233 | <click selector="{{PageBuilderColumnSection.gridSizeTooltip('1')}}" stepKey="clickWithinPanel"/>
|
227 |
| - <seeElement selector="{{PageBuilderColumnSection.gridSizeTooltipWithMax('1', PageBuilderGridSize.gridSize_5)}}" stepKey="verifyTooltip"/> |
| 234 | + <waitForElementVisible selector="{{PageBuilderColumnSection.gridSizeTooltipWithMax('1', PageBuilderGridSize.gridSize_5)}}" stepKey="verifyTooltip"/> |
| 235 | + </test> |
| 236 | + <test name="DefaultColumnGridSizeFieldAppearance"> |
| 237 | + <annotations> |
| 238 | + <features value="Pagebuilder"/> |
| 239 | + <stories value="Store Configuration - Column Grid Size"/> |
| 240 | + <title value="Validate Default Column Grid Size Field Appearance"/> |
| 241 | + <description value="Verify the Default Column Grid Size field is global and has correct helper text."/> |
| 242 | + <severity value="MINOR"/> |
| 243 | + <useCaseId value="MC-950"/> |
| 244 | + <testCaseId value="MC-2351"/> |
| 245 | + <group value="pagebuilder"/> |
| 246 | + <group value="pagebuilder-column"/> |
| 247 | + <group value="pagebuilder-columnGridSizeConfig"/> |
| 248 | + </annotations> |
| 249 | + <before> |
| 250 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 251 | + <!-- Go To AdminContentManagementPage --> |
| 252 | + <comment userInput="Go To AdminContentManagementPage" stepKey="commentGoToPage"/> |
| 253 | + <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
| 254 | + <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
| 255 | + </before> |
| 256 | + <after> |
| 257 | + <actionGroup ref="logout" stepKey="logout"/> |
| 258 | + </after> |
| 259 | + <!-- Validate Global Scope --> |
| 260 | + <comment userInput="Validate Global Scope" stepKey="commentValidateGlobal"/> |
| 261 | + <waitForElementVisible selector="{{ContentManagementSection.ConfigurationFieldLabel(PageBuilderDefaultColumnGridSize.section, PageBuilderDefaultColumnGridSize.row, PageBuilderDefaultColumnGridSize.label)}}[@data-config-scope='[GLOBAL]']" stepKey="waitForConfigurationKeyScope"/> |
| 262 | + <!-- Validate Helper Text --> |
| 263 | + <comment userInput="Validate Helper Text" stepKey="commentValidateHelperText"/> |
| 264 | + <waitForElementVisible selector="{{ContentManagementSection.ColumnGridDefaultHelperText}}" stepKey="waitForHelperText"/> |
| 265 | + <see selector="{{ContentManagementSection.ColumnGridDefaultHelperText}}" userInput="Grid size determines the default number of columns available." stepKey="seeHelperText"/> |
| 266 | + </test> |
| 267 | + <test name="MaximumColumnGridSizeFieldAppearance"> |
| 268 | + <annotations> |
| 269 | + <features value="Pagebuilder"/> |
| 270 | + <stories value="Store Configuration - Column Grid Size"/> |
| 271 | + <title value="Validate Max Column Grid Size Field Appearance"/> |
| 272 | + <description value="Verify the Maximum Column Grid Size field is global and has correct helper text."/> |
| 273 | + <severity value="MINOR"/> |
| 274 | + <useCaseId value="MC-950"/> |
| 275 | + <testCaseId value="MC-2352"/> |
| 276 | + <group value="pagebuilder"/> |
| 277 | + <group value="pagebuilder-column"/> |
| 278 | + <group value="pagebuilder-columnGridSizeConfig"/> |
| 279 | + </annotations> |
| 280 | + <before> |
| 281 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 282 | + <!-- Go To AdminContentManagementPage --> |
| 283 | + <comment userInput="Go To AdminContentManagementPage" stepKey="commentGoToPage"/> |
| 284 | + <actionGroup ref="navigateToAdminContentManagementPage" stepKey="navigateToAdminContentManagementPage"/> |
| 285 | + <conditionalClick stepKey="expandAdvancedContentTools" selector="{{ContentManagementSection.PageBuilderOptions}}" dependentSelector="{{ContentManagementSection.CheckIfPageBuilderTabExpanded}}" visible="true"/> |
| 286 | + </before> |
| 287 | + <after> |
| 288 | + <actionGroup ref="logout" stepKey="logout"/> |
| 289 | + </after> |
| 290 | + <!-- Validate Global Scope --> |
| 291 | + <comment userInput="Validate Global Scope" stepKey="commentValidateGlobal"/> |
| 292 | + <waitForElementVisible selector="{{ContentManagementSection.ConfigurationFieldLabel(PageBuilderMaximumColumnGridSize.section, PageBuilderMaximumColumnGridSize.row, PageBuilderMaximumColumnGridSize.label)}}[@data-config-scope='[GLOBAL]']" stepKey="waitForConfigurationKeyScope"/> |
| 293 | + <!-- Validate Helper Text --> |
| 294 | + <comment userInput="Validate Helper Text" stepKey="commentValidateHelperText"/> |
| 295 | + <waitForElementVisible selector="{{ContentManagementSection.ColumnGridMaxHelperText}}" stepKey="waitForHelperText"/> |
| 296 | + <see selector="{{ContentManagementSection.ColumnGridMaxHelperText}}" userInput="Maximum grid size determines the maximum amount of columns available." stepKey="seeHelperText"/> |
228 | 297 | </test>
|
229 | 298 | </tests>
|
0 commit comments