Skip to content

Commit 81e099d

Browse files
committed
MC-2356: MFTF Test Enhancements
- Preventing flakiness for ValidateColumnsMaintainRatioWithoutHistory test
1 parent a68f273 commit 81e099d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@
196196
<argument name="gridSize" value="6"/>
197197
</actionGroup>
198198
<seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="2" stepKey="seeNumberOfColumns2"/>
199-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','3/6')}}" stepKey="validateLeftColumnWidth"/>
200-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('2','3/6')}}" stepKey="validateRightColumnWidth"/>
199+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('1','3/6')}}" stepKey="validateLeftColumnWidth"/>
200+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('2','3/6')}}" stepKey="validateRightColumnWidth"/>
201201
<!-- Drag divider into first column to clear history -->
202202
<comment userInput="Drag divider into first column to clear history" stepKey="commentAddDividerToColumn" />
203203
<actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage">
@@ -208,15 +208,15 @@
208208
<comment userInput="Resize first column to 1/6" stepKey="commentResizeColumn" />
209209
<executeJS function="return document.querySelector('{{PageBuilderColumnSection.columnResizeGridLine('1')}}').clientWidth" stepKey="guideWidth"/>
210210
<dragAndDrop selector1="{{PageBuilderColumnSection.columnX('1')}} {{PageBuilderColumnSection.columnResizeHandle}}" selector2="{{PageBuilderColumnSection.columnResizeGridLine('1')}}" x="$guideWidth" stepKey="resizeColumn1"/>
211-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','1/6')}}" stepKey="validateLeftColumnWidth2"/>
212-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('2','5/6')}}" stepKey="validateRightColumnWidth2"/>
211+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('1','1/6')}}" stepKey="validateLeftColumnWidth2"/>
212+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('2','5/6')}}" stepKey="validateRightColumnWidth2"/>
213213
<!-- Change grid size back to 12 and validate column maintained ratio -->
214214
<comment userInput="Change grid size back to 12 and validate column maintained ratio" stepKey="commentSetGridSizeTo12" />
215215
<actionGroup ref="updateGridSize" stepKey="updateGridSizeTo12">
216216
<argument name="gridSize" value="12"/>
217217
</actionGroup>
218-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('1','2/12')}}" stepKey="validateLeftColumnWidth3"/>
219-
<seeElement selector="{{PageBuilderColumnSection.displayLabel('2','10/12')}}" stepKey="validateRightColumnWidth3"/>
218+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('1','2/12')}}" stepKey="validateLeftColumnWidth3"/>
219+
<waitForElementVisible selector="{{PageBuilderColumnSection.displayLabel('2','10/12')}}" stepKey="validateRightColumnWidth3"/>
220220
</test>
221221
<test name="ValidateGridSizeFormDisablesStage">
222222
<annotations>

0 commit comments

Comments
 (0)