Skip to content

Commit 13c014c

Browse files
committed
MC-5684: MFTF - Change expectedIndex to expectedCount in Duplication Action Groups
- Fixing failing test
1 parent fa51d04 commit 13c014c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -650,13 +650,15 @@
650650
<argument name="gridSize" value="2"/>
651651
</actionGroup>
652652
<actionGroup ref="closeGridSizeForm" stepKey="closeGridSizeForm"/>
653-
<actionGroup ref="duplicateContentType" stepKey="duplicateColumn">
654-
<argument name="contentType" value="PageBuilderColumnContentType"/>
655-
<argument name="targetIndex" value="1"/>
656-
</actionGroup>
657-
<waitForElementVisible selector="{{PageBuilderStage.modalOk}}" stepKey="seeCannotDuplicateColumnModal"/>
653+
<waitForElementVisible selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderColumnContentType.role, '1')}}" stepKey="waitForColumn1Visible"/>
654+
<moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderColumnContentType.role, '1')}}" stepKey="mouseOverColumn1"/>
655+
<waitForElementVisible selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(PageBuilderColumnContentType.role, '1')}}" stepKey="waitForOptionsMenu"/>
656+
<click selector="{{PageBuilderContentTypeOptionsMenu.contentTypeDuplicate(PageBuilderColumnContentType.role, '1')}}" stepKey="clickDuplicate"/>
657+
<waitForPageLoad stepKey="waitForPageLoad"/>
658+
<waitForElementVisible selector="{{PageBuilderStage.modalOk}}" stepKey="waitForCannotDuplicateColumnModal"/>
658659
<seeElement selector="{{PageBuilderStage.errorModal(PageBuilderColumnDuplicate.cannotDuplicateColumnErrorMessage)}}" stepKey="seeErrorMessage"/>
659660
<click selector="{{PageBuilderStage.modalOk}}" stepKey="closeModal"/>
661+
<waitForPageLoad stepKey="waitForPageLoad2"/>
660662
<seeNumberOfElements selector="{{ColumnOnBackend.allColumns}}" userInput="2" stepKey="seeNumberOfColumns2"/>
661663
</test>
662664
<test name="ValidateMaxColumnError">

0 commit comments

Comments
 (0)