Skip to content

Commit eff4c18

Browse files
committed
#636: Responsive breakpoint switcher - added new test ViewportSwitcherMobileSlideItemUploadImageFromStageTest.xml
1 parent 0343e8a commit eff4c18

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="ViewportSwitcherMobileSlideItemUploadImageFromStageTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Viewport Switcher"/>
14+
<title value="Slide Item - Upload Image From Stage On Mobile Viewport"/>
15+
<description value="A user should be able to use the on hover upload buttons for Slide on the stage on mobile viewport."/>
16+
<severity value="CRITICAL"/>
17+
<group value="pagebuilder"/>
18+
<group value="pagebuilder-slide"/>
19+
<group value="pagebuilder-slideItemCommon"/>
20+
<group value="pagebuilder-viewport-switcher"/>
21+
</annotations>
22+
<before>
23+
<createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage"/>
24+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
25+
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToContentCreatedCMSPage1">
26+
<argument name="CMSPage" value="$$createPreReqCMSPage$$"/>
27+
</actionGroup>
28+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
29+
<actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewport">
30+
<argument name="viewportButton" value="mobile"/>
31+
<argument name="viewportStage" value="mobile"/>
32+
</actionGroup>
33+
</before>
34+
<after>
35+
<resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop"/>
36+
<deleteData createDataKey="createPreReqCMSPage" stepKey="deleteCreatePreReqCMSPage"/>
37+
<actionGroup ref="NavigateToMediaGalleryActionGroup" stepKey="navigateToMediaGallery"/>
38+
<actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder">
39+
<argument name="FolderName" value="{{PageBuilderBackgroundImage_JPG.path}}"/>
40+
</actionGroup>
41+
<actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage">
42+
<argument name="Image" value="PageBuilderBackgroundImage_JPG"/>
43+
</actionGroup>
44+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
45+
</after>
46+
<!-- Add Slider -->
47+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
48+
<argument name="contentType" value="PageBuilderSliderContentType"/>
49+
</actionGroup>
50+
<actionGroup ref="dragContentTypeToStage" stepKey="dragSliderOntoStage">
51+
<argument name="contentType" value="PageBuilderSliderContentType"/>
52+
</actionGroup>
53+
<!-- Verify On Hover Upload Button Work-->
54+
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/>
55+
<actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons">
56+
<argument name="contentType" value="PageBuilderSliderContentType"/>
57+
</actionGroup>
58+
<attachFile selector="{{PageBuilderStage.uploadImageInput('1')}}" userInput="{{PageBuilderImageProperty_JPG.value}}" stepKey="attachImageFromLocalToStage"/>
59+
<waitForPageLoad stepKey="waitForPageLoad"/>
60+
<actionGroup ref="validateBackgroundImage" stepKey="validateBackgroundImageStage">
61+
<argument name="section" value="SlideOnBackend"/>
62+
<argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/>
63+
</actionGroup>
64+
<actionGroup ref="verifySelectFromGalleryButtonWorks" stepKey="verifySelectFromGalleryButtonWorks">
65+
<argument name="contentType" value="PageBuilderSliderContentType"/>
66+
</actionGroup>
67+
<!-- Verify Edit Panel -->
68+
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel">
69+
<argument name="section" value="SlideOnBackend"/>
70+
</actionGroup>
71+
<actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeImageOnSlideOut">
72+
<argument name="property" value="PageBuilderBackgroundImage_JPG"/>
73+
</actionGroup>
74+
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/>
75+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
76+
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/>
77+
<!-- Validate Storefront -->
78+
<resizeWindow width="767" height="1000" stepKey="resizeWindowToMobile"/>
79+
<amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCmsStorefront"/>
80+
<waitForPageLoad stepKey="waitForPageLoad4"/>
81+
<actionGroup ref="validateBackgroundImageContainer" stepKey="validateBackgroundImageStorefront">
82+
<argument name="section" value="SlideOnFrontend"/>
83+
<argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/>
84+
</actionGroup>
85+
</test>
86+
</tests>

0 commit comments

Comments
 (0)