|
1116 | 1116 | <waitForElementNotVisible selector="{{ImageOnStage.uploadImageInput('1')}}" stepKey="waitForUploadInputNotVisible"/>
|
1117 | 1117 | <dontSeeElement selector="{{ImageOnStage.uploadImageInput('1')}}" stepKey="dontSeeUploadImageInput"/>
|
1118 | 1118 | </test>
|
| 1119 | + <test name="DuplicateRowWithImage"> |
| 1120 | + <annotations> |
| 1121 | + <features value="PageBuilder"/> |
| 1122 | + <stories value="Image"/> |
| 1123 | + <title value="Duplicate Row with an Image"/> |
| 1124 | + <description value="A user should be able to duplicate a row containing an Image content type. Verify on Stage and Storefront."/> |
| 1125 | + <severity value="CRITICAL"/> |
| 1126 | + <useCaseId value="MC-4305"/> |
| 1127 | + <testCaseId value="MC-5013"/> |
| 1128 | + <group value="pagebuilder"/> |
| 1129 | + <group value="pagebuilder-image"/> |
| 1130 | + </annotations> |
| 1131 | + <before> |
| 1132 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1133 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1134 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1135 | + </before> |
| 1136 | + <after> |
| 1137 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1138 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1139 | + <argument name="FolderName" value="{{PageBuilderImageProperty_StageJPG.path}}"/> |
| 1140 | + </actionGroup> |
| 1141 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1142 | + <argument name="Image" value="PageBuilderImageProperty_StageJPG"/> |
| 1143 | + </actionGroup> |
| 1144 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1145 | + </after> |
| 1146 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1147 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1148 | + </actionGroup> |
| 1149 | + <!-- Add Image to Stage --> |
| 1150 | + <comment userInput="Add Image to Stage" stepKey="commentAddImageToStage"/> |
| 1151 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1152 | + <argument name="group" value="PageBuilderImageContentType"/> |
| 1153 | + </actionGroup> |
| 1154 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage"> |
| 1155 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1156 | + </actionGroup> |
| 1157 | + <actionGroup ref="addImageToStage" stepKey="addImageToStage"> |
| 1158 | + <argument name="property" value="PageBuilderImageProperty_StageJPG"/> |
| 1159 | + </actionGroup> |
| 1160 | + <!-- Duplicate Row --> |
| 1161 | + <comment userInput="Duplicate Row" stepKey="commentDuplicate"/> |
| 1162 | + <actionGroup ref="duplicateContentType" stepKey="duplicateContentType"> |
| 1163 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1164 | + <argument name="contentTypeXCoordinate" value="5"/> |
| 1165 | + <argument name="contentTypeYCoordinate" value="5"/> |
| 1166 | + </actionGroup> |
| 1167 | + <!-- Validate content type is duplicated --> |
| 1168 | + <comment userInput="Validate content type is duplicated" stepKey="commentValidateDuplicateOnStage"/> |
| 1169 | + <seeElement selector="{{ImageOnStage.base('1')}}" stepKey="seeImage1"/> |
| 1170 | + <seeElement selector="{{RowOnStage.base('1')}}" stepKey="seeRow1"/> |
| 1171 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2"/> |
| 1172 | + <seeElement selector="{{RowOnStage.base('2')}}" stepKey="seeRow2"/> |
| 1173 | + <!-- Stage: Validate After Save --> |
| 1174 | + <comment userInput="Stage: Validate After Save" stepKey="CommentValidateOnStageAfterSave"/> |
| 1175 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1176 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1177 | + <seeElement selector="{{ImageOnStage.base('1')}}" stepKey="seeImage1AfterSave"/> |
| 1178 | + <seeElement selector="{{RowOnStage.base('1')}}" stepKey="seeRow1AfterSave"/> |
| 1179 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2AfterSave"/> |
| 1180 | + <seeElement selector="{{RowOnStage.base('2')}}" stepKey="seeRow2AfterSave"/> |
| 1181 | + <!-- Validate content type is duplicated in Storefront --> |
| 1182 | + <comment userInput="Validate content type is duplicated in Storefront" stepKey="commentValidateDuplicatedStorefront"/> |
| 1183 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1184 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1185 | + </actionGroup> |
| 1186 | + <seeElement selector="{{ImageOnStorefront.base('1')}}" stepKey="seeImage1Storefront"/> |
| 1187 | + <seeElement selector="{{RowOnStorefront.base('1')}}" stepKey="seeRow1Storefront"/> |
| 1188 | + <seeElement selector="{{ImageOnStorefront.base('2')}}" stepKey="seeImage2Storefront"/> |
| 1189 | + <seeElement selector="{{RowOnStorefront.base('2')}}" stepKey="seeRow2Storefront"/> |
| 1190 | + </test> |
| 1191 | + <test name="DuplicateColumnWithImage"> |
| 1192 | + <annotations> |
| 1193 | + <features value="PageBuilder"/> |
| 1194 | + <stories value="Image"/> |
| 1195 | + <title value="Duplicate Column with an Image"/> |
| 1196 | + <description value="A user should be able to duplicate a column containing an Image content type. Verify on Stage and Storefront."/> |
| 1197 | + <severity value="CRITICAL"/> |
| 1198 | + <useCaseId value="MC-4305"/> |
| 1199 | + <testCaseId value="MC-5021"/> |
| 1200 | + <group value="pagebuilder"/> |
| 1201 | + <group value="pagebuilder-image"/> |
| 1202 | + </annotations> |
| 1203 | + <before> |
| 1204 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1205 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1206 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1207 | + </before> |
| 1208 | + <after> |
| 1209 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1210 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1211 | + <argument name="FolderName" value="{{PageBuilderImageProperty_StageJPG.path}}"/> |
| 1212 | + </actionGroup> |
| 1213 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1214 | + <argument name="Image" value="PageBuilderImageProperty_StageJPG"/> |
| 1215 | + </actionGroup> |
| 1216 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1217 | + </after> |
| 1218 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1219 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1220 | + </actionGroup> |
| 1221 | + <!-- Add Column to Stage --> |
| 1222 | + <comment userInput="Add Column to Stage" stepKey="commentAddColumnToStage"/> |
| 1223 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage"> |
| 1224 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1225 | + </actionGroup> |
| 1226 | + <!-- Add Image to Column --> |
| 1227 | + <comment userInput="Add Image to Column" stepKey="commentAddImageToColumn"/> |
| 1228 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1229 | + <argument name="group" value="PageBuilderImageContentType"/> |
| 1230 | + </actionGroup> |
| 1231 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragContentTypeToContainer"> |
| 1232 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1233 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1234 | + </actionGroup> |
| 1235 | + <actionGroup ref="addImageToStage" stepKey="addImageToStage"> |
| 1236 | + <argument name="property" value="PageBuilderImageProperty_StageJPG"/> |
| 1237 | + </actionGroup> |
| 1238 | + <!-- Duplicate Column --> |
| 1239 | + <comment userInput="Duplicate Column" stepKey="commentDuplicate"/> |
| 1240 | + <actionGroup ref="duplicateContentType" stepKey="duplicateContentType"> |
| 1241 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1242 | + <argument name="contentTypeXCoordinate" value="5"/> |
| 1243 | + <argument name="contentTypeYCoordinate" value="5"/> |
| 1244 | + <argument name="expectedIndex" value="3"/> |
| 1245 | + </actionGroup> |
| 1246 | + <!-- Validate content type is duplicated --> |
| 1247 | + <comment userInput="Validate content type is duplicated" stepKey="commentValidateDuplicateOnStage"/> |
| 1248 | + <seeElement selector="{{ImageOnStage.base('1')}}" stepKey="seeImage1"/> |
| 1249 | + <seeElement selector="{{ColumnOnBackend.base('1')}}" stepKey="seeColumn1"/> |
| 1250 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2"/> |
| 1251 | + <seeElement selector="{{ColumnOnBackend.base('2')}}" stepKey="seeColumn2"/> |
| 1252 | + <!-- Stage: Validate After Save --> |
| 1253 | + <comment userInput="Stage: Validate After Save" stepKey="CommentValidateOnStageAfterSave"/> |
| 1254 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1255 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1256 | + <seeElement selector="{{ImageOnStage.base('1')}}" stepKey="seeImage1AfterSave"/> |
| 1257 | + <seeElement selector="{{ColumnOnBackend.base('1')}}" stepKey="seeColumn1AfterSave"/> |
| 1258 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2AfterSave"/> |
| 1259 | + <seeElement selector="{{ColumnOnBackend.base('2')}}" stepKey="seeColumn2AfterSave"/> |
| 1260 | + <!-- Validate content type is duplicated in Storefront --> |
| 1261 | + <comment userInput="Validate content type is duplicated in Storefront" stepKey="commentValidateDuplicatedStorefront"/> |
| 1262 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1263 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1264 | + </actionGroup> |
| 1265 | + <seeElement selector="{{ImageOnStorefront.base('1')}}" stepKey="seeImage1Storefront"/> |
| 1266 | + <seeElement selector="{{ColumnOnFrontend.base('1')}}" stepKey="seeColumn1Storefront"/> |
| 1267 | + <seeElement selector="{{ImageOnStorefront.base('2')}}" stepKey="seeImage2Storefront"/> |
| 1268 | + <seeElement selector="{{ColumnOnFrontend.base('2')}}" stepKey="seeColumn2Storefront"/> |
| 1269 | + </test> |
| 1270 | + <test name="DuplicateTabWithImage"> |
| 1271 | + <annotations> |
| 1272 | + <features value="PageBuilder"/> |
| 1273 | + <stories value="Image"/> |
| 1274 | + <title value="Duplicate Tab with an Image"/> |
| 1275 | + <description value="A user should be able to duplicate a tab group and a tab iten containing an Image content type. Verify on Stage and Storefront."/> |
| 1276 | + <severity value="CRITICAL"/> |
| 1277 | + <useCaseId value="MC-4305"/> |
| 1278 | + <testCaseId value="MC-5022"/> |
| 1279 | + <group value="pagebuilder"/> |
| 1280 | + <group value="pagebuilder-image"/> |
| 1281 | + </annotations> |
| 1282 | + <before> |
| 1283 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1284 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1285 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1286 | + </before> |
| 1287 | + <after> |
| 1288 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1289 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1290 | + <argument name="FolderName" value="{{PageBuilderImageProperty_StageJPG.path}}"/> |
| 1291 | + </actionGroup> |
| 1292 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1293 | + <argument name="Image" value="PageBuilderImageProperty_StageJPG"/> |
| 1294 | + </actionGroup> |
| 1295 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1296 | + </after> |
| 1297 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1298 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1299 | + </actionGroup> |
| 1300 | + <!-- Add Tabs to Stage --> |
| 1301 | + <comment userInput="Add Tabs to Stage" stepKey="commentAddTabsToStage"/> |
| 1302 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage"> |
| 1303 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 1304 | + </actionGroup> |
| 1305 | + <!-- Add Image to Tab --> |
| 1306 | + <comment userInput="Add Image to Tab" stepKey="commentAddImageToTab"/> |
| 1307 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1308 | + <argument name="group" value="PageBuilderImageContentType"/> |
| 1309 | + </actionGroup> |
| 1310 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragContentTypeToContainer"> |
| 1311 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1312 | + <argument name="containerTargetType" value="PageBuilderTabContentType"/> |
| 1313 | + </actionGroup> |
| 1314 | + <actionGroup ref="addImageToStage" stepKey="addImageToStage"> |
| 1315 | + <argument name="property" value="PageBuilderImageProperty_StageJPG"/> |
| 1316 | + </actionGroup> |
| 1317 | + <!-- Duplicate Tab Item --> |
| 1318 | + <comment userInput="Duplicate Tab Item" stepKey="commentDuplicateTabItem"/> |
| 1319 | + <actionGroup ref="duplicateSmallContentType" stepKey="duplicateTabItem"> |
| 1320 | + <argument name="section" value="TabOnStage"/> |
| 1321 | + <argument name="targetIndex" value="1"/> |
| 1322 | + </actionGroup> |
| 1323 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unfocusTabOptions"/> |
| 1324 | + <!-- Validate Tab Item is duplicated --> |
| 1325 | + <comment userInput="Validate Tab Item is duplicated" stepKey="commentValidateTabItemDuplicateOnStage"/> |
| 1326 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2"/> |
| 1327 | + <seeElement selector="{{TabOnStage.base('2')}}" stepKey="seeTab2"/> |
| 1328 | + <!-- Duplicate Tab Group --> |
| 1329 | + <comment userInput="Duplicate Tab Group" stepKey="commentDuplicateTabGroup"/> |
| 1330 | + <actionGroup ref="duplicateContentType" stepKey="duplicateTabGroup"> |
| 1331 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 1332 | + <argument name="contentTypeXCoordinate" value="5"/> |
| 1333 | + <argument name="contentTypeYCoordinate" value="5"/> |
| 1334 | + </actionGroup> |
| 1335 | + <!-- Validate Tab Group is duplicated --> |
| 1336 | + <comment userInput="Validate Tab Group is duplicated" stepKey="commentValidateTabGroupDuplicateOnStage"/> |
| 1337 | + <seeElement selector="{{TabsOnStage.base('2')}}" stepKey="seeTabGroup1"/> |
| 1338 | + <seeElement selector="{{TabOnStage.base('3')}}" stepKey="seeTab3"/> |
| 1339 | + <seeElement selector="{{ImageOnStage.base('3')}}" stepKey="seeImage3"/> |
| 1340 | + <click selector="{{TabOnStage.tabHeader('4')}}" stepKey="switchToTab4Stage"/> |
| 1341 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 1342 | + <seeElement selector="{{TabOnStage.base('4')}}" stepKey="seeTab4"/> |
| 1343 | + <seeElement selector="{{ImageOnStage.base('4')}}" stepKey="seeImage4"/> |
| 1344 | + <!-- Stage: Validate After Save --> |
| 1345 | + <comment userInput="Stage: Validate After Save" stepKey="CommentValidateOnStageAfterSave"/> |
| 1346 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1347 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1348 | + <seeElement selector="{{TabsOnStage.base('1')}}" stepKey="seeTabGroup1AfterSave"/> |
| 1349 | + <seeElement selector="{{TabOnStage.base('1')}}" stepKey="seeTab1AfterSave"/> |
| 1350 | + <seeElement selector="{{ImageOnStage.base('1')}}" stepKey="seeImage1AfterSave"/> |
| 1351 | + <actionGroup ref="switchTabs" stepKey="switchToTab2StageAfterSave"> |
| 1352 | + <argument name="section" value="TabOnStage"/> |
| 1353 | + <argument name="from" value="1"/> |
| 1354 | + <argument name="to" value="2"/> |
| 1355 | + </actionGroup> |
| 1356 | + <seeElement selector="{{TabOnStage.base('2')}}" stepKey="seeTab2AfterSave"/> |
| 1357 | + <seeElement selector="{{ImageOnStage.base('2')}}" stepKey="seeImage2AfterSave"/> |
| 1358 | + <seeElement selector="{{TabsOnStage.base('2')}}" stepKey="seeTabGroup2AfterSave"/> |
| 1359 | + <seeElement selector="{{TabOnStage.base('3')}}" stepKey="seeTab3AfterSave"/> |
| 1360 | + <seeElement selector="{{ImageOnStage.base('3')}}" stepKey="seeImage3AfterSave"/> |
| 1361 | + <click selector="{{TabOnStage.tabHeader('4')}}" stepKey="switchToTab4StageAfterSave"/> |
| 1362 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 1363 | + <seeElement selector="{{TabOnStage.base('4')}}" stepKey="seeTab4AfterSave"/> |
| 1364 | + <seeElement selector="{{ImageOnStage.base('4')}}" stepKey="seeImage4AfterSave"/> |
| 1365 | + <!-- Validate content type is duplicated in Storefront --> |
| 1366 | + <comment userInput="Validate content type is duplicated in Storefront" stepKey="commentValidateDuplicatedStorefront"/> |
| 1367 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1368 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1369 | + </actionGroup> |
| 1370 | + <seeElement selector="{{TabsOnFrontend.base('1')}}" stepKey="seeTabGroup1Storefront"/> |
| 1371 | + <seeElement selector="{{TabOnStorefront.base('1')}}" stepKey="seeTab1Storefront"/> |
| 1372 | + <seeElement selector="{{ImageOnStorefront.base('1')}}" stepKey="seeImage1Storefront"/> |
| 1373 | + <actionGroup ref="switchTabs" stepKey="switchToTab2Storefront"> |
| 1374 | + <argument name="section" value="TabOnStorefront"/> |
| 1375 | + <argument name="from" value="1"/> |
| 1376 | + <argument name="to" value="2"/> |
| 1377 | + </actionGroup> |
| 1378 | + <seeElement selector="{{TabOnStorefront.base('2')}}" stepKey="seeTab2Storefront"/> |
| 1379 | + <seeElement selector="{{ImageOnStorefront.base('2')}}" stepKey="seeImage2Storefront"/> |
| 1380 | + <seeElement selector="{{TabsOnFrontend.base('2')}}" stepKey="seeTabGroup2Storefront"/> |
| 1381 | + <seeElement selector="{{TabOnStorefront.base('3')}}" stepKey="seeTab3Storefront"/> |
| 1382 | + <seeElement selector="{{ImageOnStorefront.base('3')}}" stepKey="seeImage3Storefront"/> |
| 1383 | + <click selector="{{TabOnStorefront.tabHeader('4')}}" stepKey="switchToTab4Storefront"/> |
| 1384 | + <waitForPageLoad stepKey="waitForPageLoad3"/> |
| 1385 | + <seeElement selector="{{TabOnStorefront.base('4')}}" stepKey="seeTab4Storefront"/> |
| 1386 | + <seeElement selector="{{ImageOnStorefront.base('4')}}" stepKey="seeImage4Storefront"/> |
| 1387 | + </test> |
1119 | 1388 | </tests>
|
0 commit comments