|
982 | 982 | </test>
|
983 | 983 | <test name="BannerCanAddImageToBanner">
|
984 | 984 | <annotations>
|
985 |
| - <features value="Pagebuilder: Banner"/> |
| 985 | + <features value="Pagebuilder"/> |
986 | 986 | <stories value="MAGETWO-86533: [UI component] MediaGalleryImage: inside form"/>
|
987 | 987 | <title value="Add an image content block into banner"/>
|
988 | 988 | <description value="A user should be able to add an image into a banner."/>
|
|
1068 | 1068 | </test>
|
1069 | 1069 | <test name="AddImageToBannerStage">
|
1070 | 1070 | <annotations>
|
1071 |
| - <features value="Pagebuilder: Banner"/> |
| 1071 | + <features value="Pagebuilder"/> |
1072 | 1072 | <stories value="MAGETWO-75104: Add image into Slide, Banner from the Stage"/>
|
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."/>
|
|
1080 | 1080 | </annotations>
|
1081 | 1081 | <before>
|
1082 | 1082 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
1083 |
| - <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
1084 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
1085 | 1083 | <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage" />
|
1086 | 1084 | </before>
|
1087 | 1085 | <after>
|
|
1099 | 1097 | </actionGroup>
|
1100 | 1098 | <!--Verify there are 2 buttons when hovering-->
|
1101 | 1099 | <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons" />
|
1102 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage"/> |
| 1100 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" stepKey="onMouseOverBannerContentBlockStage"/> |
1103 | 1101 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons" >
|
1104 | 1102 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1105 |
| - <argument name="section" value="BannerOnBackend"/> |
| 1103 | + <argument name="section" value="PageBuilderActionsSection"/> |
1106 | 1104 | </actionGroup>
|
1107 | 1105 | <!--Upload image from local machine -->
|
1108 | 1106 | <comment userInput="Upload image from local machine" stepKey="commentUploadImageFromLocal" />
|
1109 |
| - <attachFile userInput="{{PageBuilderLocalImagePropertyJpg.value}}" selector="{{BannerOnBackend.uploadLocalImageBtn}}" stepKey="attachImageFromLocalToStage"/> |
| 1107 | + <attachFile userInput="{{PageBuilderLocalImagePropertyJpg.value}}" selector="{{PageBuilderActionsSection.uploadLocalImageBtn}}" stepKey="attachImageFromLocalToStage"/> |
1110 | 1108 | <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource1"/>
|
1111 | 1109 | <!--Upload image from Media Gallery Storage -->
|
1112 | 1110 | <comment userInput="Upload image from Media Gallery Storage" stepKey="commentUploadImageFromStorage"/>
|
|
1117 | 1115 | <argument name="ImageFolder" value="ImageFolder"/>
|
1118 | 1116 | </actionGroup>
|
1119 | 1117 | <actionGroup ref="attachImage" stepKey="attachImageFile1">
|
1120 |
| - <argument name="Image" value="PageBuilderImagePropertyJpg"/> |
| 1118 | + <argument name="Image" value="PageBuilderBannerBackgroundImageProperty"/> |
1121 | 1119 | </actionGroup>
|
1122 | 1120 | <actionGroup ref="saveImage" stepKey="saveImage"/>
|
1123 |
| - <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource2"/> |
| 1121 | + <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderBannerBackgroundImageProperty.fileName)}}" stepKey="seeMainImageSource2"/> |
1124 | 1122 | <comment userInput="Go to Banner slide-out to verify uploaded image" stepKey="commentGoToBannerSlideOut"/>
|
1125 | 1123 | <!--Verify uploaded image is displayed on slide-out-->
|
1126 | 1124 | <comment userInput="Verify uploaded image is displayed on slide-out" stepKey="commentVerifyImageOnSlideout"/>
|
1127 | 1125 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
1128 | 1126 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1129 | 1127 | </actionGroup>
|
1130 |
| - <seeElement selector="{{ImageOnConfigurationPanel.imageName(PageBuilderImagePropertyJpg.value)}}" stepKey="seeImageNameOnPreview2"/> |
1131 |
| - <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSource3"/> |
| 1128 | + <actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeImageOnSlideOut1"> |
| 1129 | + <argument name="property" value="PageBuilderBannerBackgroundImageProperty"/> |
| 1130 | + </actionGroup> |
1132 | 1131 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1133 | 1132 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1134 | 1133 | <!-- Validate Storefront -->
|
1135 | 1134 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1136 |
| - <openNewTab stepKey="openNewTab"/> |
1137 | 1135 | <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCmsStorefront" />
|
1138 | 1136 | <waitForPageLoad stepKey="waitForPageLoad3" />
|
1139 |
| - <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImagePropertyJpg.fileName)}}" stepKey="seeMainImageSourceOnFrontend"/> |
| 1137 | + <seeElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderBannerBackgroundImageProperty.fileName)}}" stepKey="seeMainImageSourceOnFrontend"/> |
1140 | 1138 | </test>
|
1141 | 1139 | <test name="VerifyUploadImageOnBannerStageDependOnEachTypeOfAppearance">
|
1142 | 1140 | <annotations>
|
1143 |
| - <features value="Pagebuilder: Banner"/> |
| 1141 | + <features value="Pagebuilder:"/> |
1144 | 1142 | <stories value="MAGETWO-75104: Add image into Slide, Banner from the Stage"/>
|
1145 | 1143 | <title value="Add image into Banner from the Stage"/>
|
1146 | 1144 | <description value="A user should be able to add image to Banner stage when switching between appearance type"/>
|
|
1152 | 1150 | </annotations>
|
1153 | 1151 | <before>
|
1154 | 1152 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
1155 |
| - <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
1156 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
1157 | 1153 | <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage" />
|
1158 | 1154 | </before>
|
1159 | 1155 | <after>
|
|
1178 | 1174 | </actionGroup>
|
1179 | 1175 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/>
|
1180 | 1176 | <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons1" />
|
1181 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage1"/> |
| 1177 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" stepKey="onMouseOverBannerContentBlockStage1"/> |
1182 | 1178 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons1" >
|
1183 | 1179 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1184 |
| - <argument name="section" value="BannerOnBackend"/> |
| 1180 | + <argument name="section" value="PageBuilderActionsSection"/> |
1185 | 1181 | </actionGroup>
|
1186 | 1182 | <!--Verify there are 2 buttons display when user select appearance Center-->
|
1187 | 1183 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
1188 | 1184 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1189 | 1185 | </actionGroup>
|
1190 | 1186 | <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty2">
|
1191 |
| - <argument name="property" value="PageBuilderSlideCollageCenteredProperty"/> |
| 1187 | + <argument name="property" value="PageBuilderBannerCollageCenteredProperty"/> |
1192 | 1188 | </actionGroup>
|
1193 | 1189 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/>
|
1194 | 1190 | <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons2" />
|
1195 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage2"/> |
| 1191 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" stepKey="onMouseOverBannerContentBlockStage2"/> |
1196 | 1192 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons2" >
|
1197 | 1193 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1198 |
| - <argument name="section" value="BannerOnBackend"/> |
| 1194 | + <argument name="section" value="PageBuilderActionsSection"/> |
1199 | 1195 | </actionGroup>
|
1200 | 1196 | <!--Verify there are 2 buttons display when user select appearance Right-->
|
1201 | 1197 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3">
|
|
1206 | 1202 | </actionGroup>
|
1207 | 1203 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings3"/>
|
1208 | 1204 | <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons3" />
|
1209 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" x="10" y="0" stepKey="onMouseOverBannerContentBlockStage3"/> |
| 1205 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderBannerContentBlock.role)}}" stepKey="onMouseOverBannerContentBlockStage3"/> |
1210 | 1206 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons3" >
|
1211 | 1207 | <argument name="contentBlockType" value="PageBuilderBannerContentBlock"/>
|
1212 |
| - <argument name="section" value="BannerOnBackend"/> |
| 1208 | + <argument name="section" value="PageBuilderActionsSection"/> |
1213 | 1209 | </actionGroup>
|
1214 | 1210 | </test>
|
1215 | 1211 | </tests>
|
0 commit comments