Skip to content

Commit 8ea3abc

Browse files
committed
MC-1176: Create MFTF tests for configuring grid size
- Fixing ValidateResizeOnUnevenGrid test
1 parent b8a3d48 commit 8ea3abc

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderColumnGridTest.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,14 +436,23 @@
436436
</actionGroup>
437437
<seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="3" stepKey="seeNumberOfColumnsStill3"/>
438438
<actionGroup ref="closeGridSizeForm" stepKey="closeGridSizeForm"/>
439+
<!-- Verify Initial Column Sizes -->
440+
<comment userInput="Verify Initial Column Sizes " stepKey="context0"/>
441+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','2/7')}}" stepKey="checkWidthFirstColumn"/>
442+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('2','2/7')}}" stepKey="checkWidthSecondColumn"/>
443+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('3','3/7')}}" stepKey="checkWidthThirdColumn"/>
439444
<!-- Grab grid guide location for column 1 -->
440-
<comment userInput="Grab grid guide width" stepKey="context0"/>
441-
<executeJS function="return document.querySelector('{{PageBuilderColumnSection.columnResizeGridLine('5')}}').clientWidth" stepKey="guideWidth"/>
445+
<comment userInput="Grab grid guide width" stepKey="context1"/>
446+
<executeJS function="return document.querySelector('{{PageBuilderColumnSection.columnResizeGridLine('1')}}').clientWidth" stepKey="guideWidth"/>
442447
<!-- Resize Column 1 -->
443-
<comment userInput="Resize Column 1" stepKey="comment1"/>
444-
<dragAndDrop selector1="{{PageBuilderColumnSection.columnX('1')}} {{PageBuilderColumnSection.columnResizeHandle}}" selector2="{{PageBuilderColumnSection.columnResizeGridLine('5')}}" x="$guideWidth" stepKey="resizeColumn1"/>
448+
<comment userInput="Resize Column 1" stepKey="context2"/>
449+
<dragAndDrop selector1="{{PageBuilderColumnSection.columnX('1')}} {{PageBuilderColumnSection.columnResizeHandle}}" selector2="{{PageBuilderColumnSection.columnResizeGridLine('1')}}" x="$guideWidth" stepKey="resizeColumn1"/>
445450
<seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="3" stepKey="seeNumberOfColumnsStill32"/>
446-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','5/7')}}" stepKey="checkWidthFirstColumn"/>
451+
<!-- Verify New Column Sizes -->
452+
<comment userInput="Verify New Column Sizes " stepKey="context3"/>
453+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','1/7')}}" stepKey="checkWidthFirstColumn2"/>
454+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('2','3/7')}}" stepKey="checkWidthSecondColumn2"/>
455+
<seeElement selector="{{PageBuilderColumnSection.displayLabel('3','3/7')}}" stepKey="checkWidthThirdColumn2"/>
447456
</test>
448457
<test name="ValidateResizeHistory">
449458
<annotations>

0 commit comments

Comments
 (0)