|
1093 | 1093 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1094 | 1094 | <!-- Validate Stage -->
|
1095 | 1095 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1096 |
| - <seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="seeSlide1ContentDisplayedAdmin"/> |
| 1096 | + <seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="seeSlide1ContentStage"/> |
1097 | 1097 | <executeJS function="{{PageBuilderStage.computedHeightOnStage(PageBuilderSliderContentType.role, '1')}}" stepKey="slideNewHeightStage"/>
|
1098 | 1098 | <assertGreaterThan stepKey="assertSlideHeightGrewStage">
|
1099 | 1099 | <expectedResult type="variable">slideInitialHeightStage</expectedResult>
|
|
1103 | 1103 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
1104 | 1104 | <!-- Validate Stage 2 -->
|
1105 | 1105 | <comment userInput="Validate Stage 2" stepKey="commentValidateStage2"/>
|
1106 |
| - <seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="test"/> |
| 1106 | + <seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="seeSlide1ContentStage2"/> |
1107 | 1107 | <executeJS function="{{PageBuilderStage.computedHeightOnStage(PageBuilderSliderContentType.role, '1')}}" stepKey="slideNewHeightStage2"/>
|
1108 | 1108 | <assertEquals stepKey="assertSlideHeightSameStage">
|
1109 | 1109 | <expectedResult type="variable">slideNewHeightStage</expectedResult>
|
|
1113 | 1113 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1114 | 1114 | <switchToNextTab stepKey="switchToNextTab"/>
|
1115 | 1115 | <reloadPage stepKey="reloadPage2"/>
|
1116 |
| - <seeElement selector="{{SlideOnFrontend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="test2"/> |
| 1116 | + <seeElement selector="{{SlideOnFrontend.messageContent('1', PageBuilderSlideItemMessage_Long.value)}}" stepKey="seeSlide1ContentStorefront"/> |
1117 | 1117 | <executeJS function="{{PageBuilderStoreFront.computedHeight(PageBuilderSliderContentType.role, '0')}}" stepKey="slideNewHeightStorefront"/>
|
1118 | 1118 | <assertGreaterThan stepKey="assertSlideHeightGrewStorefront">
|
1119 | 1119 | <expectedResult type="variable">slideInitialHeightStorefront</expectedResult>
|
1120 | 1120 | <actualResult type="variable">slideNewHeightStorefront</actualResult>
|
1121 | 1121 | </assertGreaterThan>
|
1122 | 1122 | </test>
|
1123 | 1123 | <test name="SlideItemUploadImageFromStage">
|
1124 |
| - <!--todo: fix after merging in wysiwyg banner branch--> |
1125 | 1124 | <annotations>
|
1126 | 1125 | <features value="PageBuilder"/>
|
1127 | 1126 | <stories value="Slider"/>
|
|
1136 | 1135 | </annotations>
|
1137 | 1136 | <before>
|
1138 | 1137 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
1139 |
| - <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage" /> |
| 1138 | + <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage"/> |
| 1139 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
| 1140 | + <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
| 1141 | + </actionGroup> |
1140 | 1142 | </before>
|
1141 | 1143 | <after>
|
1142 | 1144 | <deleteData createDataKey="createPreReqCMSPage" stepKey="deleteCreatePreReqCMSPage"/>
|
| 1145 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1146 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1147 | + <argument name="FolderName" value="{{PageBuilderBackgroundImage_JPG.path}}"/> |
| 1148 | + </actionGroup> |
| 1149 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1150 | + <argument name="Image" value="PageBuilderBackgroundImage_JPG"/> |
| 1151 | + </actionGroup> |
1143 | 1152 | <actionGroup ref="logout" stepKey="logout"/>
|
1144 | 1153 | </after>
|
1145 |
| - <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
1146 |
| - <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
1147 |
| - </actionGroup> |
| 1154 | + <!-- Add Slider --> |
| 1155 | + <comment userInput="Add Slider" stepKey="commentAddSlider"/> |
1148 | 1156 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
|
1149 | 1157 | <argument name="group" value="PageBuilderSliderContentType"/>
|
1150 | 1158 | </actionGroup>
|
1151 |
| - <actionGroup ref="dragContentTypeToStage" stepKey="dragSliderIntoStage"> |
| 1159 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragSliderOntoStage"> |
1152 | 1160 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1153 | 1161 | </actionGroup>
|
1154 | 1162 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
|
1155 |
| - <!--Verify there are 2 buttons when hovering--> |
| 1163 | + <!-- Verify On Hover Upload Button Work--> |
| 1164 | + <comment userInput="Verify On Hover Upload Buttons Work" stepKey="commentVerifyButtons"/> |
1156 | 1165 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/>
|
1157 |
| - <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons" /> |
1158 |
| - <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons" > |
| 1166 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons"> |
1159 | 1167 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1160 |
| - <argument name="section" value="PageBuilderStage"/> |
1161 | 1168 | </actionGroup>
|
1162 |
| - <!--Upload image from local machine --> |
1163 |
| - <comment userInput="Upload image from local machine" stepKey="commentUploadImageFromLocal" /> |
1164 |
| - <attachFile userInput="{{PageBuilderImageProperty_JPG.value}}" selector="{{PageBuilderStage.uploadImageInput('1')}}" stepKey="attachImageFromLocalToStage"/> |
1165 |
| - <waitForPageLoad stepKey="waitForPageLoad4" /> |
1166 |
| - <waitForElementVisible selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderImageProperty_JPG.fileName)}}" stepKey="waitForMainImageSource1"/> |
1167 |
| - <!--Upload image from Media Gallery Storage --> |
1168 |
| - <comment userInput="Upload image from Media Gallery Storage" stepKey="commentUploadImageFromStorage"/> |
1169 |
| - <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide2"/> |
1170 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStage(PageBuilderSliderContentType.role)}}" stepKey="onMouseOverContentTypeStage"/> |
1171 |
| - <waitForElementVisible selector="{{ImageOnStage.selectFromGalleryImageBtn}}" stepKey="seeSelectFromGalleryBtn2" /> |
1172 |
| - <click selector="{{ImageOnStage.selectFromGalleryImageBtn}}" stepKey="clickSelectFromGallery" /> |
1173 |
| - <waitForPageLoad stepKey="waitForPageLoad2" /> |
1174 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoading2" /> |
1175 |
| - <actionGroup ref="CreateImageFolder" stepKey="createImageFolder"> |
1176 |
| - <argument name="ImageFolder" value="ImageFolder"/> |
1177 |
| - </actionGroup> |
1178 |
| - <actionGroup ref="attachImage" stepKey="attachImageFile1"> |
1179 |
| - <argument name="Image" value="PageBuilderBackgroundImage_JPG"/> |
| 1169 | + <attachFile selector="{{PageBuilderStage.uploadImageInput('1')}}" userInput="{{PageBuilderImageProperty_JPG.value}}" stepKey="attachImageFromLocalToStage"/> |
| 1170 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 1171 | + <actionGroup ref="validateBackgroundImage" stepKey="validateBackgroundImageStage"> |
| 1172 | + <argument name="section" value="SlideOnBackend"/> |
| 1173 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 1174 | + </actionGroup> |
| 1175 | + <actionGroup ref="verifySelectFromGalleryButtonWorks" stepKey="verifySelectFromGalleryButtonWorks"> |
| 1176 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
1180 | 1177 | </actionGroup>
|
1181 |
| - <actionGroup ref="saveImage" stepKey="saveImage"/> |
1182 |
| - <waitForElement selector="{{ImageOnConfigurationPanel.imageSource(PageBuilderBackgroundImage_JPG.fileName)}}" stepKey="seeImageInDOM"/> |
1183 |
| - <!--Verify uploaded image is displayed on slide-out--> |
1184 |
| - <comment userInput="Verify uploaded image is displayed on slide-out" stepKey="commentVerifyImageOnSlideout"/> |
| 1178 | + <!-- Verify Edit Panel --> |
| 1179 | + <comment userInput="Verify Edit Panel" stepKey="commentVerifyEditPanel"/> |
1185 | 1180 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel">
|
1186 | 1181 | <argument name="section" value="SlideOnBackend"/>
|
1187 | 1182 | </actionGroup>
|
1188 |
| - <actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeImageOnSlideOut1"> |
| 1183 | + <actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeImageOnSlideOut"> |
1189 | 1184 | <argument name="property" value="PageBuilderBackgroundImage_JPG"/>
|
1190 | 1185 | </actionGroup>
|
1191 |
| - <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1186 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/> |
1192 | 1187 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1193 | 1188 | <!-- Validate Storefront -->
|
1194 | 1189 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1195 |
| - <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCmsStorefront" /> |
1196 |
| - <waitForPageLoad stepKey="waitForPageLoad3" /> |
1197 |
| - <waitForElement selector="{{PageBuilderStoreFront.imageSourceOnFrontEnd(PageBuilderBackgroundImage_JPG.fileName)}}" stepKey="seeMainImageSourceOnFrontend"/> |
| 1190 | + <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCmsStorefront"/> |
| 1191 | + <waitForPageLoad stepKey="waitForPageLoad4"/> |
| 1192 | + <actionGroup ref="validateBackgroundImage" stepKey="validateBackgroundImageStorefront"> |
| 1193 | + <argument name="section" value="SlideOnFrontend"/> |
| 1194 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 1195 | + </actionGroup> |
1198 | 1196 | </test>
|
1199 | 1197 | <test name="SlideItemVerifyStageUploadImageButtonsForEachAppearance">
|
1200 |
| - <!--todo: fix after merging in wysiwyg banner branch--> |
1201 | 1198 | <annotations>
|
1202 | 1199 | <features value="PageBuilder"/>
|
1203 | 1200 | <stories value="Slider"/>
|
|
1212 | 1209 | </annotations>
|
1213 | 1210 | <before>
|
1214 | 1211 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
1215 |
| - <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage" /> |
| 1212 | + <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage"/> |
| 1213 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
| 1214 | + <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
| 1215 | + </actionGroup> |
1216 | 1216 | </before>
|
1217 | 1217 | <after>
|
1218 | 1218 | <deleteData createDataKey="createPreReqCMSPage" stepKey="deleteCreatePreReqCMSPage"/>
|
1219 | 1219 | <actionGroup ref="logout" stepKey="logout"/>
|
1220 | 1220 | </after>
|
1221 |
| - <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
1222 |
| - <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
1223 |
| - </actionGroup> |
| 1221 | + <!-- Add Slider --> |
| 1222 | + <comment userInput="Add Slider" stepKey="commentAddSlider"/> |
1224 | 1223 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
|
1225 | 1224 | <argument name="group" value="PageBuilderSliderContentType"/>
|
1226 | 1225 | </actionGroup>
|
1227 |
| - <actionGroup ref="dragContentTypeToStage" stepKey="dragSliderIntoStage"> |
| 1226 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragSliderOntoStage"> |
1228 | 1227 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1229 | 1228 | </actionGroup>
|
1230 |
| - <!--Verify there are 2 buttons display when user select appearance Left--> |
1231 | 1229 | <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty1">
|
1232 | 1230 | <argument name="property" value="PageBuilderAppearance_CollageLeft"/>
|
1233 | 1231 | </actionGroup>
|
1234 | 1232 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/>
|
| 1233 | + <!-- Collage Left: Verify On Hover Upload Buttons --> |
| 1234 | + <comment userInput="Collage Left: Verify On Hover Upload Buttons" stepKey="commentVerifyButtons1"/> |
1235 | 1235 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/>
|
1236 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStage(PageBuilderSliderContentType.role)}}" stepKey="onMouseOverContentTypeStage1"/> |
1237 |
| - <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons1" /> |
1238 |
| - <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons1" > |
| 1236 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons1"> |
1239 | 1237 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1240 |
| - <argument name="section" value="PageBuilderStage"/> |
1241 | 1238 | </actionGroup>
|
1242 |
| - <!--Verify there are 2 buttons display when user select appearance Center--> |
1243 |
| - <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel1"> |
| 1239 | + <actionGroup ref="verifySelectFromGalleryButtonWorks" stepKey="verifySelectFromGalleryButtonWorks"> |
| 1240 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1241 | + </actionGroup> |
| 1242 | + <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel"> |
1244 | 1243 | <argument name="section" value="SlideOnBackend"/>
|
1245 | 1244 | </actionGroup>
|
1246 | 1245 | <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty2">
|
1247 | 1246 | <argument name="property" value="PageBuilderAppearance_CollageCentered"/>
|
1248 | 1247 | </actionGroup>
|
1249 | 1248 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/>
|
| 1249 | + <!-- Collage Center: Verify On Hover Upload Buttons --> |
| 1250 | + <comment userInput="Collage Center: Verify On Hover Upload Buttons" stepKey="commentVerifyButtons2"/> |
1250 | 1251 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide2"/>
|
1251 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStage(PageBuilderSliderContentType.role)}}" stepKey="onMouseOverContentTypeStage2"/> |
1252 |
| - <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons2" /> |
1253 |
| - <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons2" > |
| 1252 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons2"> |
1254 | 1253 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1255 | 1254 | <argument name="section" value="PageBuilderStage"/>
|
1256 | 1255 | </actionGroup>
|
1257 |
| - <!--Verify there are 2 buttons display when user select appearance Right--> |
| 1256 | + <actionGroup ref="verifySelectFromGalleryButtonWorks" stepKey="verifySelectFromGalleryButtonWorks2"> |
| 1257 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1258 | + </actionGroup> |
1258 | 1259 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel2">
|
1259 | 1260 | <argument name="section" value="SlideOnBackend"/>
|
1260 | 1261 | </actionGroup>
|
1261 | 1262 | <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty3">
|
1262 | 1263 | <argument name="property" value="PageBuilderAppearance_CollageRight"/>
|
1263 | 1264 | </actionGroup>
|
1264 | 1265 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings3"/>
|
1265 |
| - <!--Verify there are 2 buttons when hovering--> |
| 1266 | + <!-- Collage Right: Verify On Hover Upload Buttons --> |
| 1267 | + <comment userInput="Collage Right: Verify On Hover Upload Buttons" stepKey="commentVerifyButtons3"/> |
1266 | 1268 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide3"/>
|
1267 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStage(PageBuilderSliderContentType.role)}}" stepKey="onMouseOverContentTypeStage3"/> |
1268 |
| - <comment userInput="Verify there are 2 buttons when hovering" stepKey="commentVerifyButtons3" /> |
1269 |
| - <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons3" > |
| 1269 | + <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons3"> |
1270 | 1270 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
1271 | 1271 | <argument name="section" value="PageBuilderStage"/>
|
1272 | 1272 | </actionGroup>
|
| 1273 | + <actionGroup ref="verifySelectFromGalleryButtonWorks" stepKey="verifySelectFromGalleryButtonWorks3"> |
| 1274 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1275 | + </actionGroup> |
1273 | 1276 | </test>
|
1274 | 1277 | <test name="SlideItemDeleteImage">
|
1275 | 1278 | <annotations>
|
|
0 commit comments