Skip to content

Commit ef750bd

Browse files
committed
#636-functional-tests-on-mobile-viewport
- fix tests
1 parent 0feabb8 commit ef750bd

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/ViewportSwitcherMobile/ViewportSwitcherMobileSlideItemCollageLeftAppearanceWithVideoBackgroundThroughBlockContentTypeTest.xml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
<argument name="property" value="PageBuilderSlideItemShowButton_Always"/>
9696
</actionGroup>
9797
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
98-
<!-- Validate Stage on Viewport Desktop -->
99-
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStage">
98+
<!-- Validate Stage on Viewport mobile -->
99+
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStageMobile">
100100
<argument name="section" value="SlideOnBackend"/>
101101
<argument name="backgroundColor" value="{{PageBuilderBackgroundColor_Pink.rgb}}"/>
102102
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_Embedded"/>
@@ -106,21 +106,17 @@
106106
<argument name="playOnlyWhenVisible" value="PageBuilderVideoBackgroundPlayOnlyWhenVisible_Enabled"/>
107107
<argument name="fallbackImage" value="PageBuilderVideoBackgroundFallbackImage_JPG"/>
108108
</actionGroup>
109-
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEdit">
109+
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEditMobile">
110110
<argument name="contentType" value="PageBuilderSlideContentType"/>
111111
<argument name="content" value="{{PageBuilderSlideItemContent_Slide1.value}}"/>
112112
</actionGroup>
113-
<actionGroup ref="inlineEditSlideOrBannerButton" stepKey="inlineEditSlideButton">
113+
<actionGroup ref="inlineEditSlideOrBannerButton" stepKey="inlineEditSlideButtonMobile">
114114
<argument name="text" value="{{PageBuilderSlideItemButtonText_Slide1.value}}"/>
115115
</actionGroup>
116-
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStage"/>
117-
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStage"/>
118-
<!-- Validate Stage on Viewport mobile -->
119-
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewportForValidateStage">
120-
<argument name="viewportButton" value="mobile"/>
121-
<argument name="viewportStage" value="mobile"/>
122-
</actionGroup>
123-
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStageMobile">
116+
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStageMobile"/>
117+
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStageMobile"/>
118+
<!-- Validate Stage on Viewport Desktop -->
119+
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStage">
124120
<argument name="section" value="SlideOnBackend"/>
125121
<argument name="backgroundColor" value="{{PageBuilderBackgroundColor_Pink.rgb}}"/>
126122
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_Embedded"/>
@@ -130,18 +126,18 @@
130126
<argument name="playOnlyWhenVisible" value="PageBuilderVideoBackgroundPlayOnlyWhenVisible_Enabled"/>
131127
<argument name="fallbackImage" value="PageBuilderVideoBackgroundFallbackImage_JPG"/>
132128
</actionGroup>
133-
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEditMobile">
129+
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEdit">
134130
<argument name="contentType" value="PageBuilderSlideContentType"/>
135131
<argument name="content" value="{{PageBuilderSlideItemContent_Slide1.value}}"/>
136132
</actionGroup>
137-
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStageMobile"/>
138-
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStageMobile"/>
139-
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenBeforeSaveMobile"/>
140-
<actionGroup ref="SaveCMSBlockActionGroup" stepKey="saveCMSBlockMobile"/>
141-
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPageMobile">
133+
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStage"/>
134+
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStage"/>
135+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenBeforeSave"/>
136+
<actionGroup ref="SaveCMSBlockActionGroup" stepKey="saveCMSBlock"/>
137+
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage">
142138
<argument name="CMSPage" value="$$createCMSPage$$"/>
143139
</actionGroup>
144-
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageMobile"/>
140+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
145141
<!-- Edit Row On CMS Page -->
146142
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewportForEditRor">
147143
<argument name="viewportButton" value="mobile"/>

0 commit comments

Comments
 (0)