Skip to content

Commit d5798e5

Browse files
committed
MC-2434: Flaky MFTF Test: ColumnResize4to1to1
- rename test - unskip - fix drop handle index - open panel for Divider
1 parent c8d2df5 commit d5798e5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
<actualResult type="variable">columnRatioFrontend</actualResult>
272272
</assertEquals>
273273
</test>
274-
<test name="ColumnResize1v4And2v1">
274+
<test name="ColumnResize4to1to1">
275275
<annotations>
276276
<features value="PageBuilder"/>
277277
<stories value="Column"/>
@@ -282,8 +282,6 @@
282282
<group value="pagebuilder"/>
283283
<group value="pagebuilder-column"/>
284284
<group value="pagebuilder-columnResize"/>
285-
<!-- MC-2434 -->
286-
<group value="skip"/>
287285
</annotations>
288286
<before>
289287
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
@@ -299,18 +297,21 @@
299297
<actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
300298
<argument name="contentType" value="PageBuilderColumnContentType"/>
301299
</actionGroup>
302-
<!-- Grab grid guide width (-8 due to how picky the guide is) -->
300+
<!-- Grab grid guide width -->
303301
<comment userInput="Grab grid guide width" stepKey="context0"/>
304-
<executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('8')}}').clientWidth-8" stepKey="guideWidth"/>
302+
<executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('1')}}').clientWidth" stepKey="guideWidth"/>
305303
<!-- Change Columns To 4:1:1 Ratio -->
306304
<comment userInput="Change Columns To 4:1:1 Ratio" stepKey="context1"/>
307-
<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"/>
308306
<actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnIntoStage2">
309307
<argument name="contentType" value="PageBuilderColumnContentType"/>
310308
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>
311309
<argument name="containerTargetIndex" value="2"/>
312310
</actionGroup>
313311
<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>
314315
<actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage1">
315316
<argument name="contentType" value="PageBuilderDividerContentType"/>
316317
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>

0 commit comments

Comments
 (0)