|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="ColumnResize1v6"> |
| 10 | + <test name="ColumnResize1to0"> |
11 | 11 | <annotations>
|
12 | 12 | <features value="PageBuilder"/>
|
13 | 13 | <stories value="Column"/>
|
14 |
| - <title value="Resize Column: 6:0 Ratio"/> |
15 |
| - <description value="A user should be able to resize a columns to achieve a ratio of 6:0."/> |
| 14 | + <title value="Resize Column: 1:0 Ratio"/> |
| 15 | + <description value="A user should be able to resize a columns to achieve a ratio of 1:0."/> |
16 | 16 | <severity value="CRITICAL"/>
|
17 | 17 | <useCaseId value="MC-950"/>
|
18 | 18 | <testCaseId value="MC-2717"/>
|
|
40 | 40 | <!-- Assert the initial width classes are correct -->
|
41 | 41 | <waitForElement selector="{{ColumnOnBackend.columnByIndexAndWidthClass('1','50')}}" stepKey="assertInitialWidthClass1"/>
|
42 | 42 | <waitForElement selector="{{ColumnOnBackend.columnByIndexAndWidthClass('2','50')}}" stepKey="assertInitialWidthClass2"/>
|
43 |
| - <!-- Change Columns To 6:0 Ratio --> |
44 |
| - <comment userInput="Change Columns To 6:0 Ratio" stepKey="context2"/> |
| 43 | + <!-- Change Columns To 1:0 Ratio --> |
| 44 | + <comment userInput="Change Columns To 1:0 Ratio" stepKey="context2"/> |
45 | 45 | <actionGroup ref="removeContentTypeFromStageByIndex" stepKey="removeSecondColumn">
|
46 | 46 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
47 | 47 | <argument name="contentTypeNumber" value="2"/>
|
|
93 | 93 | <actualResult type="variable">columnRatioFrontend</actualResult>
|
94 | 94 | </assertEquals>
|
95 | 95 | </test>
|
96 |
| - <test name="ColumnResize1v5And1v1"> |
| 96 | + <test name="ColumnResize5to1"> |
97 | 97 | <annotations>
|
98 | 98 | <features value="PageBuilder"/>
|
99 | 99 | <stories value="Column"/>
|
|
180 | 180 | <actualResult type="variable">columnRatioFrontend</actualResult>
|
181 | 181 | </assertEquals>
|
182 | 182 | </test>
|
183 |
| - <test name="ColumnResize1v4And1v2"> |
| 183 | + <test name="ColumnResize2to1"> |
184 | 184 | <annotations>
|
185 | 185 | <features value="PageBuilder"/>
|
186 | 186 | <stories value="Column"/>
|
187 |
| - <title value="Resize Column: 4:2 Ratio"/> |
188 |
| - <description value="A user should be able to resize a columns to achieve a ratio of 4:2."/> |
| 187 | + <title value="Resize Column: 2:1 Ratio"/> |
| 188 | + <description value="A user should be able to resize a columns to achieve a ratio of 2:1."/> |
189 | 189 | <severity value="CRITICAL"/>
|
190 | 190 | <testCaseId value="MC-2867"/>
|
191 | 191 | <group value="pagebuilder"/>
|
|
206 | 206 | <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
|
207 | 207 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
208 | 208 | </actionGroup>
|
209 |
| - <!-- Change Columns To 4:2 Ratio --> |
210 |
| - <comment userInput="Change Columns To 4:2 Ratio" stepKey="context1"/> |
| 209 | + <!-- Change Columns To 2:1 Ratio --> |
| 210 | + <comment userInput="Change Columns To 2:1 Ratio" stepKey="context1"/> |
211 | 211 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnIntoStage2">
|
212 | 212 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
213 | 213 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
|
271 | 271 | <actualResult type="variable">columnRatioFrontend</actualResult>
|
272 | 272 | </assertEquals>
|
273 | 273 | </test>
|
274 |
| - <test name="ColumnResize1v4And2v1"> |
| 274 | + <test name="ColumnResize4to1to1"> |
275 | 275 | <annotations>
|
276 | 276 | <features value="PageBuilder"/>
|
277 | 277 | <stories value="Column"/>
|
|
282 | 282 | <group value="pagebuilder"/>
|
283 | 283 | <group value="pagebuilder-column"/>
|
284 | 284 | <group value="pagebuilder-columnResize"/>
|
285 |
| - <skip> |
286 |
| - <issueId value="MC-2434"/> |
287 |
| - </skip> |
288 | 285 | </annotations>
|
289 | 286 | <before>
|
290 | 287 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
300 | 297 | <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
|
301 | 298 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
302 | 299 | </actionGroup>
|
303 |
| - <!-- Grab grid guide width (-8 due to how picky the guide is) --> |
| 300 | + <!-- Grab grid guide width --> |
304 | 301 | <comment userInput="Grab grid guide width" stepKey="context0"/>
|
305 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('8')}}').clientWidth-8" stepKey="guideWidth"/> |
| 302 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('1')}}').clientWidth" stepKey="guideWidth"/> |
306 | 303 | <!-- Change Columns To 4:1:1 Ratio -->
|
307 | 304 | <comment userInput="Change Columns To 4:1:1 Ratio" stepKey="context1"/>
|
308 |
| - <dragAndDrop selector1="{{ColumnOnBackend.columnX('1')}} {{ColumnOnBackend.columnResizeHandle}}" selector2="{{ColumnOnBackend.columnResizeGridLine('8')}}" x="$guideWidth" stepKey="resizeColumn1ToFour"/> |
| 305 | + <dragAndDrop selector1="{{ColumnOnBackend.columnX('1')}} {{ColumnOnBackend.columnResizeHandle}}" selector2="{{ColumnOnBackend.columnResizeGridLine('8')}}" x="$guideWidth" stepKey="resizeColumn1ToEight"/> |
309 | 306 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnIntoStage2">
|
310 | 307 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
311 | 308 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
312 | 309 | <argument name="containerTargetIndex" value="2"/>
|
313 | 310 | </actionGroup>
|
314 | 311 | <dragAndDrop selector1="{{ColumnOnBackend.columnX('2')}} {{ColumnOnBackend.columnResizeHandle}}" selector2="{{ColumnOnBackend.columnResizeGridLine('10')}}" x="$guideWidth" stepKey="resizeColumnToTwo"/>
|
| 312 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 313 | + <argument name="group" value="PageBuilderDividerContentType"/> |
| 314 | + </actionGroup> |
315 | 315 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage1">
|
316 | 316 | <argument name="contentType" value="PageBuilderDividerContentType"/>
|
317 | 317 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
|
384 | 384 | <actualResult type="variable">columnRatioFrontend2</actualResult>
|
385 | 385 | </assertEquals>
|
386 | 386 | </test>
|
387 |
| - <test name="ColumnResizeColumn2v3"> |
| 387 | + <test name="ColumnResize1to1"> |
388 | 388 | <annotations>
|
389 | 389 | <features value="PageBuilder"/>
|
390 | 390 | <stories value="Column"/>
|
391 |
| - <title value="Resize Column: 3:3 Ratio"/> |
392 |
| - <description value="A user should be able to resize a columns to achieve a ratio of 3:3."/> |
| 391 | + <title value="Resize Column: 1:1 Ratio"/> |
| 392 | + <description value="A user should be able to resize a columns to achieve a ratio of 1:1."/> |
393 | 393 | <severity value="CRITICAL"/>
|
394 | 394 | <testCaseId value="MC-2837"/>
|
395 | 395 | <group value="pagebuilder"/>
|
|
462 | 462 | <actualResult type="variable">columnRatioFrontend</actualResult>
|
463 | 463 | </assertEquals>
|
464 | 464 | </test>
|
465 |
| - <test name="ColumnResize1v3And1v2And1v1"> |
| 465 | + <test name="ColumnResize3to2to1"> |
466 | 466 | <annotations>
|
467 | 467 | <features value="PageBuilder"/>
|
468 | 468 | <stories value="Column"/>
|
|
574 | 574 | <actualResult type="variable">columnRatioFrontend2</actualResult>
|
575 | 575 | </assertEquals>
|
576 | 576 | </test>
|
577 |
| - <test name="ColumnResize1v3And3v1"> |
| 577 | + <test name="ColumnResize3to1to1to1"> |
578 | 578 | <annotations>
|
579 | 579 | <features value="PageBuilder"/>
|
580 | 580 | <stories value="Column"/>
|
|
713 | 713 | <actualResult type="variable">columnRatioFrontend3</actualResult>
|
714 | 714 | </assertEquals>
|
715 | 715 | </test>
|
716 |
| - <test name="ColumnResize3v2"> |
| 716 | + <test name="ColumnResize1to1to1"> |
717 | 717 | <annotations>
|
718 | 718 | <features value="PageBuilder"/>
|
719 | 719 | <stories value="Column"/>
|
720 |
| - <title value="Resize Column: 2:2:2 Ratio"/> |
721 |
| - <description value="A user should be able to resize a columns to achieve a ratio of 2:2:2."/> |
| 720 | + <title value="Resize Column: 1:1:1 Ratio"/> |
| 721 | + <description value="A user should be able to resize a columns to achieve a ratio of 1:1:1."/> |
722 | 722 | <severity value="CRITICAL"/>
|
723 | 723 | <testCaseId value="MC-2592"/>
|
724 | 724 | <group value="pagebuilder"/>
|
|
742 | 742 | <!-- Grab grid guide width -->
|
743 | 743 | <comment userInput="Grab grid guide width" stepKey="context0"/>
|
744 | 744 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('4')}}').clientWidth" stepKey="guideWidth"/>
|
745 |
| - <!-- Change Columns To 2:2:2 Ratio --> |
746 |
| - <comment userInput="Change Columns To 2:2:2 Ratio" stepKey="context1"/> |
| 745 | + <!-- Change Columns To 1:1:1 Ratio --> |
| 746 | + <comment userInput="Change Columns To 1:1:1 Ratio" stepKey="context1"/> |
747 | 747 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnIntoStage2">
|
748 | 748 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
749 | 749 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
|
0 commit comments