Skip to content

Commit 9e90e46

Browse files
committed
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
- Resolve CR comments in tests
1 parent 5d490c0 commit 9e90e46

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/DragAndDropActionGroup.xml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
<argument name="containerOffsetXCoordinate" defaultValue="null" type="string"/>
143143
<argument name="containerOffsetYCoordinate" defaultValue="null" type="string"/>
144144
</arguments>
145+
<comment userInput="moveContentTypeToContainer" stepKey="comment"/>
145146
<waitForElementVisible time="20" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStageVisible"/>
146147
<moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentTypeStage"/>
147148
<waitForPageLoad time="30" stepKey="waitForAnimation"/>
@@ -151,27 +152,12 @@
151152
<waitForPageLoad time="30" stepKey="waitForStageToLoad"/>
152153
<waitForElementVisible time="30" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStage"/>
153154
</actionGroup>
154-
<actionGroup name="cannotMoveContentTypeToContainer">
155+
<actionGroup name="cannotMoveContentTypeToContainer" extends="moveContentTypeToContainer">
155156
<arguments>
156-
<argument name="contentType"/>
157-
<argument name="contentTypeIndex" defaultValue="1" type="string"/>
158-
<argument name="containerTargetType"/>
159-
<argument name="containerTargetIndex" defaultValue="1" type="string"/>
160-
<argument name="offsetXCoordinate" defaultValue="10" type="string"/>
161-
<argument name="offsetYCoordinate" defaultValue="0" type="string"/>
162-
<argument name="containerOffsetXCoordinate" defaultValue="null" type="string"/>
163-
<argument name="containerOffsetYCoordinate" defaultValue="null" type="string"/>
164157
<argument name="positionInContainer" defaultValue="1" type="string"/>
165158
</arguments>
166-
<waitForElementVisible time="20" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStageVisible"/>
167-
<moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentTypeStage"/>
168-
<waitForPageLoad time="30" stepKey="waitForAnimation"/>
169-
<waitForElementVisible time="10" selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/>
170-
<waitForElementVisible selector="{{PageBuilderContentTypeOptionsMenu.contentTypeMoveByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForEditButton"/>
171-
<dragAndDrop selector1="{{PageBuilderContentTypeOptionsMenu.contentTypeMoveByIndex(contentType.role, contentTypeIndex)}}" selector2="{{PageBuilderStage.contentTypeContainer(containerTargetType.role, containerTargetIndex)}}" x="{{containerOffsetXCoordinate}}" y="{{containerOffsetYCoordinate}}" stepKey="moveContentTypeIntoContainer"/>
172-
<waitForPageLoad time="30" stepKey="waitForStageToLoad"/>
173-
<waitForElementVisible time="30" selector="{{PageBuilderStage.contentTypeInStageByIndex(containerTargetType.role, containerTargetIndex)}}" stepKey="waitForContentTypeStage"/>
174-
<dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInsideContainerStage(containerTargetType.role, containerTargetIndex, positionInContainer, contentType.role, contentTypeIndex)}}" stepKey="dontSeeContentTypeInContainer"/>
159+
<comment userInput="cannotMoveContentTypeToContainer" stepKey="comment"/>
160+
<dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInsideContainerStage(containerTargetType.role, containerTargetIndex, positionInContainer, contentType.role, contentTypeIndex)}}" stepKey="dontSeeContentTypeInContainer" after="waitForContentTypeInStage"/>
175161
</actionGroup>
176162
<actionGroup name="dragContentTypeNextToExistingContentType">
177163
<arguments>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@
18001800
<test name="ValidateCannotMoveContentTypeIntoHiddenRow">
18011801
<annotations>
18021802
<features value="PageBuilder"/>
1803-
<stories value="Text"/>
1803+
<stories value="Row"/>
18041804
<title value="Row whilst hidden doesnt receive drop events"/>
18051805
<description value="A user isn't able to move existing content types into a hidden row"/>
18061806
<severity value="MAJOR"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@
11321132
<test name="ValidateCannotMoveContentTypeIntoHiddenTab">
11331133
<annotations>
11341134
<features value="PageBuilder"/>
1135-
<stories value="Text"/>
1135+
<stories value="Tab"/>
11361136
<title value="Tab whilst hidden doesnt receive drop events"/>
11371137
<description value="A user isn't able to move existing content types into a hidden tab item"/>
11381138
<severity value="MAJOR"/>

0 commit comments

Comments
 (0)