Skip to content

Commit 46bb24b

Browse files
committed
MAGETWO-90809: Pagebuilder - Cannot Delete Slider After Moving Within Same Empty Row
- Ensure after moving a slider within a row it can still be deleted
1 parent cf05883 commit 46bb24b

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<click selector="{{SliderOnFrontend.slideNavigator(index)}}" stepKey="clickSliderButton"/>
1717
<waitForElementVisible selector="{{SlideOnFrontend.slide(index)}}" stepKey="waitForSlide"/>
1818
</actionGroup>
19+
<actionGroup name="unfocusSlideOptions">
20+
<click selector="{{PageBuilderActionsSection.searchPanel}}" stepKey="clickOutsideLiveEdit"/>
21+
<waitForPageLoad stepKey="waitForAnimation" time="30"/>
22+
<dontSeeElement selector="{{SliderInAdmin.slideOptionsEdit}}" stepKey="dontSeeHeadingTypeToolbar"/>
23+
</actionGroup>
1924
<actionGroup name="openSlideOptions">
2025
<comment userInput="Open slide options" stepKey="commentOpen"/>
2126
<waitForElementVisible time="10" selector="{{SliderInAdmin.sliderContainer}}" stepKey="waitForContentBlockInStageVisible" />

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,4 +1153,42 @@
11531153
<argument name="contentBlockIndex" value="1"/>
11541154
</actionGroup>
11551155
</test>
1156+
<test name="SliderCanBeDeletedAfterAccidentalDrag">
1157+
<annotations>
1158+
<features value="Pagebuilder: Slider"/>
1159+
<title value="After accidental drag slider should still be removable"/>
1160+
<description value="You should still be able to remove a slider after accidentally moving it within the same container"/>
1161+
<severity value="CRITICAL"/>
1162+
<testCaseId value="MAGETWO-92364"/>
1163+
<group value="pagebuilder"/>
1164+
<group value="pagebuilder-slider"/>
1165+
<group value="pagebuilder-sliderCommon"/>
1166+
</annotations>
1167+
<before>
1168+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
1169+
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
1170+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
1171+
</before>
1172+
<after>
1173+
<actionGroup ref="logout" stepKey="logout"/>
1174+
</after>
1175+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1176+
<argument name="group" value="PageBuilderSliderContentBlock"/>
1177+
</actionGroup>
1178+
<actionGroup ref="dragContentBlockToStageAndExpectEditPanel" stepKey="dragSliderOntoStage">
1179+
<argument name="contentBlockType" value="PageBuilderSliderContentBlock"/>
1180+
</actionGroup>
1181+
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
1182+
<actionGroup ref="unfocusSlideOptions" stepKey="unfocusSlideOptions"/>
1183+
<actionGroup ref="moveContentTypeToContainer" stepKey="moveSliderIntoExistingRow">
1184+
<argument name="contentBlockType" value="PageBuilderSliderContentBlock"/>
1185+
<argument name="contentBlockIndex" value="1"/>
1186+
<argument name="containerTargetType" value="PageBuilderRowContentBlock"/>
1187+
<argument name="containerTargetIndex" value="1"/>
1188+
</actionGroup>
1189+
<actionGroup ref="removeContentBlockFromStage" stepKey="removeSliderFromStage">
1190+
<argument name="contentBlockType" value="PageBuilderSliderContentBlock"/>
1191+
</actionGroup>
1192+
<dontSee selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderSliderContentBlock.role)}}" stepKey="dontSeeSliderInContent" />
1193+
</test>
11561194
</tests>

0 commit comments

Comments
 (0)