Skip to content

Commit fe84d3f

Browse files
committed
#425: Infinite Loop Disabled on Slider Does Not Work Correctly
- Code Review Feedback/Amends
1 parent eb263e9 commit fe84d3f

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/ContentTypeSliderActionGroup/NextSlideActionGroup.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
99
<actionGroup name="nextSlide">
10+
<annotations>
11+
<description>Clicks the "Next" arrow on a slider instance (irrespective of the arrow's state).</description>
12+
</annotations>
1013
<arguments>
11-
<argument name="sliderIndex" defaultValue="1" type="string"/>
1214
<argument name="sliderSection" defaultValue="SliderOnStage"/>
15+
<argument name="slideSection" defaultValue="SlideOnBackend"/>
16+
<argument name="sliderIndex" defaultValue="1" type="string"/>
17+
<argument name="slideIndex" defaultValue="1" type="string"/>
1318
</arguments>
1419
<waitForElementVisible selector="{{sliderSection.nextSlideArrow(sliderIndex)}}" stepKey="waitForNextSlideArrow"/>
1520
<click selector="{{sliderSection.nextSlideArrow(sliderIndex)}}" stepKey="clickNextSlideArrow"/>
1621
<waitForPageLoad stepKey="waitForPageLoad"/>
22+
<waitForElementVisible selector="{{slideSection.base(slideIndex)}}" stepKey="waitForSlide"/>
1723
</actionGroup>
1824
</actionGroups>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderSliderCommonTests/SliderValidateInfiniteLoopEnabled.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
<deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/>
3030
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3131
</after>
32-
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle">
33-
<argument name="contentType" value="PageBuilderSliderContentType"/>
34-
</actionGroup>
3532
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
3633
<argument name="contentType" value="PageBuilderSliderContentType"/>
3734
</actionGroup>
@@ -92,10 +89,12 @@
9289
</actionGroup>
9390
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="seeSlide1ContentStage"/>
9491
<!-- Validate Stage: Slide 2 -->
95-
<actionGroup ref="nextSlide" stepKey="clickSlide2Stage"/>
92+
<actionGroup ref="nextSlide" stepKey="clickSlide2Stage">
93+
<argument name="slideIndex" value="2"/>
94+
</actionGroup>
9695
<waitForElementVisible selector="{{SlideOnBackend.messageContent('2', PageBuilderSlideItemContent_Slide2.value)}}" stepKey="seeSlide2ContentStage"/>
97-
<actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
98-
<argument name="contentType" value="PageBuilderSliderContentType"/>
96+
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToStoreFront">
97+
<argument name="page" value="$$createCMSPage.identifier$$"/>
9998
</actionGroup>
10099
<!-- Validate Storefront: Slider Settings -->
101100
<waitForElementVisible selector="{{SliderOnFrontend.autoPlay('1', PageBuilderSliderAutoPlay_Disabled.value)}}" stepKey="seeAutoPlayStorefront"/>
@@ -114,6 +113,8 @@
114113
<!-- Validate Storefront: Slide 2 -->
115114
<actionGroup ref="nextSlide" stepKey="clickSlide2Storefront">
116115
<argument name="sliderSection" value="SliderOnFrontend"/>
116+
<argument name="slideSection" value="SlideOnFrontend"/>
117+
<argument name="slideIndex" value="2"/>
117118
</actionGroup>
118119
<waitForElementVisible selector="{{SlideOnFrontend.messageContent('2', PageBuilderSlideItemContent_Slide2.value)}}" stepKey="seeSlide2ContentStorefront"/>
119120
<waitForElementVisible selector="{{SliderOnFrontend.previousSlideArrowEnabled('1')}}" stepKey="seePreviousSlideArrow2"/>

0 commit comments

Comments
 (0)