|
37 | 37 | <!-- Get 3/6 Column Width -->
|
38 | 38 | <comment userInput="Get 3/6 Column Width" stepKey="context1"/>
|
39 | 39 | <executeJS function="return document.querySelector('{{PageBuilderColumnSection.columnX('1')}}').clientWidth" stepKey="initalColumnWidth"/>
|
| 40 | + <!-- Assert the initial width classes are correct --> |
| 41 | + <waitForElement selector="{{PageBuilderColumnSection.columnByIndexAndWidthClass('1','50')}}" stepKey="assertInitialWidthClass1"/> |
| 42 | + <waitForElement selector="{{PageBuilderColumnSection.columnByIndexAndWidthClass('2','50')}}" stepKey="assertInitialWidthClass2"/> |
40 | 43 | <!-- Change Columns To 6:0 Ratio -->
|
41 | 44 | <comment userInput="Change Columns To 6:0 Ratio" stepKey="context2"/>
|
42 | 45 | <actionGroup ref="removeContentTypeFromStageByIndex" stepKey="removeSecondColumn">
|
43 | 46 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
44 | 47 | <argument name="contentTypeNumber" value="2"/>
|
45 | 48 | </actionGroup>
|
| 49 | + <!-- Assert the width class changed to 100 correctly on the first column --> |
| 50 | + <waitForElement selector="{{PageBuilderColumnSection.columnByIndexAndWidthClass('1','100')}}" stepKey="assertWidthClass1"/> |
| 51 | + <!-- Add a new column --> |
46 | 52 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage">
|
47 | 53 | <argument name="contentType" value="PageBuilderDividerContentType"/>
|
48 | 54 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
|
116 | 122 | <!-- Change Columns To 5:1 Ratio -->
|
117 | 123 | <comment userInput="Change Columns To 5:1 Ratio" stepKey="context1"/>
|
118 | 124 | <dragAndDrop selector1="{{PageBuilderColumnSection.columnX('1')}} {{PageBuilderColumnSection.columnResizeHandle}}" selector2="{{PageBuilderColumnSection.columnResizeGridLine('10')}}" x="$guideWidth" stepKey="dragColumnOneToFive"/>
|
| 125 | + <!-- Assert the width classes are correct after manual resize --> |
| 126 | + <waitForElement selector="{{PageBuilderColumnSection.columnByIndexAndWidthClass('1','90')}}" stepKey="assertWidthClass1"/> |
| 127 | + <waitForElement selector="{{PageBuilderColumnSection.columnByIndexAndWidthClass('2','20')}}" stepKey="assertWidthClass2"/> |
119 | 128 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage1">
|
120 | 129 | <argument name="contentType" value="PageBuilderDividerContentType"/>
|
121 | 130 | <argument name="containerTargetType" value="PageBuilderColumnContentType"/>
|
|
0 commit comments