|
1073 | 1073 | <title value="Add image into Banner from the Stage"/>
|
1074 | 1074 | <description value="A user should be able to add image to Banner stage."/>
|
1075 | 1075 | <severity value="CRITICAL"/>
|
1076 |
| - <testCaseId value="MAGETWO-92116"/> |
| 1076 | + <testCaseId value="MAGETWO-92118"/> |
1077 | 1077 | <group value="pagebuilder"/>
|
1078 | 1078 | <group value="pagebuilder-banner"/>
|
1079 | 1079 | <group value="pagebuilder-bannerCommon"/>
|
|
1097 | 1097 | <actionGroup ref="dragContentBlockToStage" stepKey="dragBannerIntoStage">
|
1098 | 1098 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1099 | 1099 | </actionGroup>
|
1100 |
| - |
1101 | 1100 | <!--Verify there are 2 buttons when hovering-->
|
1102 | 1101 | <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons" />
|
1103 | 1102 | <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage"/>
|
1104 | 1103 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons" >
|
1105 | 1104 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
| 1105 | + <argument name="section" value="BannerOnBackend"/> |
1106 | 1106 | </actionGroup>
|
1107 | 1107 | <!--Upload image from local machine -->
|
1108 | 1108 | <comment userInput="Upload image from local machine" stepKey="commentUploadImageFromLocal" />
|
1109 | 1109 | <attachFile userInput="{{PageBuilderLocalImagePropertyJpg.value}}" selector="{{BannerOnBackend.uploadLocalImageBtn}}" stepKey="attachImageFromLocalToStage"/>
|
1110 | 1110 | <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource1"/>
|
1111 |
| - |
1112 | 1111 | <!--Upload image from Media Gallery Storage -->
|
1113 | 1112 | <comment userInput="Upload image from Media Gallery Storage" stepKey="commentUploadImageFromStorage"/>
|
1114 | 1113 | <click selector="{{ImageOnStage.selectFromGalleryImageBtn}}" stepKey="clickSelectFromGallery" />
|
|
1123 | 1122 | <actionGroup ref="saveImage" stepKey="saveImage"/>
|
1124 | 1123 | <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource2"/>
|
1125 | 1124 | <comment userInput="Go to Banner slide-out to verify uploaded image" stepKey="commentGoToBannerSlideOut"/>
|
1126 |
| - |
1127 | 1125 | <!--Verify uploaded image is displayed on slide-out-->
|
1128 | 1126 | <comment userInput="Verify uploaded image is displayed on slide-out" stepKey="commentVerifyImageOnSlideout"/>
|
1129 | 1127 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
|
1133 | 1131 | <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource3"/>
|
1134 | 1132 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1135 | 1133 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1136 |
| - |
1137 | 1134 | <!-- Validate Storefront -->
|
1138 | 1135 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1139 | 1136 | <openNewTab stepKey="openNewTab"/>
|
1140 | 1137 | <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCMSStorefront" />
|
1141 | 1138 | <waitForPageLoad stepKey="waitForPageLoad3" />
|
1142 | 1139 | <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSourceOnFrontend"/>
|
1143 | 1140 | </test>
|
| 1141 | + <test name="VerifyUploadImageOnBannerStageDependOnEachTypeOfAppearance"> |
| 1142 | + <annotations> |
| 1143 | + <features value="Pagebuilder: Banner"/> |
| 1144 | + <stories value="MAGETWO-75104: Add image into Slide, Banner from the Stage"/> |
| 1145 | + <title value="Add image into Banner from the Stage"/> |
| 1146 | + <description value="A user should be able to add image to Banner stage when switching between appearance type"/> |
| 1147 | + <severity value="CRITICAL"/> |
| 1148 | + <testCaseId value="MAGETWO-92118"/> |
| 1149 | + <group value="pagebuilder"/> |
| 1150 | + <group value="pagebuilder-banner"/> |
| 1151 | + <group value="pagebuilder-bannerCommon"/> |
| 1152 | + </annotations> |
| 1153 | + <before> |
| 1154 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1155 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1156 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1157 | + <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage" /> |
| 1158 | + </before> |
| 1159 | + <after> |
| 1160 | + <deleteData createDataKey="createPreReqCMSPage" stepKey="deleteCreatePreReqCMSPage"/> |
| 1161 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1162 | + </after> |
| 1163 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
| 1164 | + <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
| 1165 | + </actionGroup> |
| 1166 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1167 | + <argument name="group" value="PageBuilderBannerContentBlock"/> |
| 1168 | + </actionGroup> |
| 1169 | + <actionGroup ref="dragContentBlockToStage" stepKey="dragBannerIntoStage"> |
| 1170 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1171 | + </actionGroup> |
| 1172 | + <!--Verify there are 2 buttons display when user select appearance Left--> |
| 1173 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1"> |
| 1174 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1175 | + </actionGroup> |
| 1176 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty1"> |
| 1177 | + <argument name="property" value="PageBuilderBannerCollageLeftProperty"/> |
| 1178 | + </actionGroup> |
| 1179 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/> |
| 1180 | + <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons1" /> |
| 1181 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage1"/> |
| 1182 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons1" > |
| 1183 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1184 | + <argument name="section" value="BannerOnBackend"/> |
| 1185 | + </actionGroup> |
| 1186 | + <!--Verify there are 2 buttons display when user select appearance Center--> |
| 1187 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2"> |
| 1188 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1189 | + </actionGroup> |
| 1190 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty2"> |
| 1191 | + <argument name="property" value="PageBuilderSlideCollageCenteredProperty"/> |
| 1192 | + </actionGroup> |
| 1193 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 1194 | + <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons2" /> |
| 1195 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage2"/> |
| 1196 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons2" > |
| 1197 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1198 | + <argument name="section" value="BannerOnBackend"/> |
| 1199 | + </actionGroup> |
| 1200 | + <!--Verify there are 2 buttons display when user select appearance Right--> |
| 1201 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3"> |
| 1202 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1203 | + </actionGroup> |
| 1204 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty3"> |
| 1205 | + <argument name="property" value="PageBuilderBannerCollageRightProperty"/> |
| 1206 | + </actionGroup> |
| 1207 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings3"/> |
| 1208 | + <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons3" /> |
| 1209 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage3"/> |
| 1210 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons3" > |
| 1211 | + <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/> |
| 1212 | + <argument name="section" value="BannerOnBackend"/> |
| 1213 | + </actionGroup> |
| 1214 | + </test> |
1144 | 1215 | </tests>
|
0 commit comments