Skip to content

Commit a11dd69

Browse files
author
joiecaquicla
committed
Merge branch '636-functional-tests-on-mobile-viewport' of github.com:joweecaquicla/magento2-page-builder into 636-functional-tests-on-mobile-viewport
2 parents 82a93e0 + 385c1f2 commit a11dd69

4 files changed

+167
-46
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<annotations>
1212
<features value="PageBuilder"/>
1313
<stories value="Viewport Switcher"/>
14-
<title value="Render Slide Item Collage Center Appearance Through Block Content Type"/>
15-
<description value="Verify that users are able to successfully render and use the slide item content type collage center appearance through the Block content type."/>
14+
<title value="Mobile Viewport: Render Slide Item Collage Center Appearance Through Block Content Type"/>
15+
<description value="Verify that users are able to successfully render and use the slide item content type collage center appearance through the Block content type in the mobile viewport."/>
1616
<severity value="CRITICAL"/>
1717
<group value="pagebuilder"/>
1818
<group value="pagebuilder-block"/>

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

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<annotations>
1212
<features value="PageBuilder"/>
1313
<stories value="Viewport Switcher"/>
14-
<title value="Render Slide Item CollageL eft Appearance with Video Background Through Block Content Type"/>
15-
<description value="Verify that users are able to successfully render the collage left slide content type with a video background through the Block content type."/>
14+
<title value="Mobile Viewport: Render Slide Item CollageL eft Appearance with Video Background Through Block Content Type"/>
15+
<description value="Verify that users are able to successfully render the collage left slide content type with a video background through the Block content type in the mobile viewport."/>
1616
<severity value="CRITICAL"/>
1717
<group value="pagebuilder"/>
1818
<group value="pagebuilder-block"/>
@@ -31,6 +31,10 @@
3131
<argument name="CMSBlockPage" value="$$createCMSBlock$$"/>
3232
</actionGroup>
3333
<actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="openPageBuilderFullScreen"/>
34+
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewport">
35+
<argument name="viewportButton" value="mobile"/>
36+
<argument name="viewportStage" value="mobile"/>
37+
</actionGroup>
3438
</before>
3539
<after>
3640
<resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop"/>
@@ -91,8 +95,8 @@
9195
<argument name="property" value="PageBuilderSlideItemShowButton_Always"/>
9296
</actionGroup>
9397
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
94-
<!-- Validate Stage on Viewport Desktop -->
95-
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStage">
98+
<!-- Validate Stage on Viewport mobile -->
99+
<actionGroup ref="validateVideoBackgroundWithAllAttributes" stepKey="validateCMSBlockStageMobile">
96100
<argument name="section" value="SlideOnBackend"/>
97101
<argument name="backgroundColor" value="{{PageBuilderBackgroundColor_Pink.rgb}}"/>
98102
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_Embedded"/>
@@ -102,21 +106,17 @@
102106
<argument name="playOnlyWhenVisible" value="PageBuilderVideoBackgroundPlayOnlyWhenVisible_Enabled"/>
103107
<argument name="fallbackImage" value="PageBuilderVideoBackgroundFallbackImage_JPG"/>
104108
</actionGroup>
105-
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEdit">
109+
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEditMobile">
106110
<argument name="contentType" value="PageBuilderSlideContentType"/>
107111
<argument name="content" value="{{PageBuilderSlideItemContent_Slide1.value}}"/>
108112
</actionGroup>
109-
<actionGroup ref="inlineEditSlideOrBannerButton" stepKey="inlineEditSlideButton">
113+
<actionGroup ref="inlineEditSlideOrBannerButton" stepKey="inlineEditSlideButtonMobile">
110114
<argument name="text" value="{{PageBuilderSlideItemButtonText_Slide1.value}}"/>
111115
</actionGroup>
112-
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStage"/>
113-
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStage"/>
114-
<!-- Validate Stage on Viewport mobile -->
115-
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewportForValidateStage">
116-
<argument name="viewportButton" value="mobile"/>
117-
<argument name="viewportStage" value="mobile"/>
118-
</actionGroup>
119-
<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">
120120
<argument name="section" value="SlideOnBackend"/>
121121
<argument name="backgroundColor" value="{{PageBuilderBackgroundColor_Pink.rgb}}"/>
122122
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_Embedded"/>
@@ -126,19 +126,23 @@
126126
<argument name="playOnlyWhenVisible" value="PageBuilderVideoBackgroundPlayOnlyWhenVisible_Enabled"/>
127127
<argument name="fallbackImage" value="PageBuilderVideoBackgroundFallbackImage_JPG"/>
128128
</actionGroup>
129-
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEditMobile">
129+
<actionGroup ref="doubleClickToInlineEditWYSIWYGFromStage" stepKey="inlineEdit">
130130
<argument name="contentType" value="PageBuilderSlideContentType"/>
131131
<argument name="content" value="{{PageBuilderSlideItemContent_Slide1.value}}"/>
132132
</actionGroup>
133-
<waitForElementVisible selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="waitForMessageContentCMSBlockStageMobile"/>
134-
<waitForElementVisible selector="{{SlideOnBackend.buttonText('1', PageBuilderSlideItemButtonText_Slide1.value)}}" stepKey="waitForButtonTextCMSBlockStageMobile"/>
135-
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenBeforeSaveMobile"/>
136-
<actionGroup ref="SaveCMSBlockActionGroup" stepKey="saveCMSBlockMobile"/>
137-
<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">
138138
<argument name="CMSPage" value="$$createCMSPage$$"/>
139139
</actionGroup>
140-
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageMobile"/>
140+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
141141
<!-- Edit Row On CMS Page -->
142+
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewportForEditRor">
143+
<argument name="viewportButton" value="mobile"/>
144+
<argument name="viewportStage" value="mobile"/>
145+
</actionGroup>
142146
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuRowCMSPage">
143147
<argument name="contentType" value="PageBuilderRowContentType"/>
144148
</actionGroup>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<annotations>
1212
<features value="PageBuilder"/>
1313
<stories value="Viewport Switcher"/>
14-
<title value="Render Slide Item Collage Right Appearance with Video Background Through Block Content Type"/>
15-
<description value="Verify that users are able to successfully render the collage right slide content type with a video background through the Block content type."/>
14+
<title value="Mobile Viewport: Render Slide Item Collage Right Appearance with Video Background Through Block Content Type"/>
15+
<description value="Verify that users are able to successfully render the collage right slide content type with a video background through the Block content type in the mobile viewport."/>
1616
<severity value="CRITICAL"/>
1717
<group value="pagebuilder"/>
1818
<group value="pagebuilder-block"/>

0 commit comments

Comments
 (0)