|
1311 | 1311 | <argument name="storefrontBugOffset" value="20"/>
|
1312 | 1312 | </actionGroup>
|
1313 | 1313 | </test>
|
| 1314 | + <test name="BlockRowContainedAppearanceHasEqualWidthToContents"> |
| 1315 | + <annotations> |
| 1316 | + <features value="PageBuilder"/> |
| 1317 | + <stories value="Block"/> |
| 1318 | + <title value="Row contained appearance has equal width to contents in Block"/> |
| 1319 | + <description value="A user can see a row contained appearance has equal width to contents in a Block"/> |
| 1320 | + <severity value="MAJOR"/> |
| 1321 | + <useCaseId value="MC-5432"/> |
| 1322 | + <testCaseId value="MC-5958"/> |
| 1323 | + <group value="pagebuilder"/> |
| 1324 | + <group value="pagebuilder-block"/> |
| 1325 | + <group value="pagebuilder-row"/> |
| 1326 | + <group value="pagebuilder-banner"/> |
| 1327 | + <group value="pagebuilder-bannerPoster"/> |
| 1328 | + </annotations> |
| 1329 | + <before> |
| 1330 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin" /> |
| 1331 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 1332 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage"> |
| 1333 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$" /> |
| 1334 | + </actionGroup> |
| 1335 | + </before> |
| 1336 | + <after> |
| 1337 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 1338 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1339 | + </after> |
| 1340 | + <!-- Edit Block and configure Row --> |
| 1341 | + <comment userInput="Edit Block and configure Row" stepKey="commentConfigureRowInBlock"/> |
| 1342 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 1343 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1344 | + </actionGroup> |
| 1345 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRow1"> |
| 1346 | + <argument name="property" value="PageBuilderRowAppearance_Contained"/> |
| 1347 | + </actionGroup> |
| 1348 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsInBlock"/> |
| 1349 | + <!-- Edit Block and configure Banner --> |
| 1350 | + <comment userInput="Edit Block and configure Banner" stepKey="commentConfigureBannerInBlock"/> |
| 1351 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupElements"> |
| 1352 | + <argument name="group" value="PageBuilderBannerContentType"/> |
| 1353 | + </actionGroup> |
| 1354 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragIntoStage"> |
| 1355 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 1356 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 1357 | + </actionGroup> |
| 1358 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2"> |
| 1359 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 1360 | + </actionGroup> |
| 1361 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceProperty"> |
| 1362 | + <argument name="property" value="PageBuilderAppearance_Poster"/> |
| 1363 | + </actionGroup> |
| 1364 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBannerMinHeight"> |
| 1365 | + <argument name="property" value="PageBuilderBannerMinimumHeightProperty"/> |
| 1366 | + </actionGroup> |
| 1367 | + <actionGroup ref="attachFileSlideOutProperty" stepKey="attachImage"> |
| 1368 | + <argument name="property" value="PageBuilderBackgroundImage_JPG"/> |
| 1369 | + </actionGroup> |
| 1370 | + <actionGroup ref="chooseVisualSelectOption" stepKey="selectBackgroundSize"> |
| 1371 | + <argument name="property" value="PageBuilderBackgroundSize_Contain"/> |
| 1372 | + </actionGroup> |
| 1373 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsInBlock2"/> |
| 1374 | + <click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveBlock"/> |
| 1375 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
| 1376 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1377 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1378 | + <!-- Go to CMS page and choose Block --> |
| 1379 | + <comment userInput="Go to CMS page and choose Block" stepKey="commentGoToCMSPage"/> |
| 1380 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle1"> |
| 1381 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1382 | + </actionGroup> |
| 1383 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1384 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1385 | + </actionGroup> |
| 1386 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
| 1387 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1388 | + </actionGroup> |
| 1389 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 1390 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1391 | + </actionGroup> |
| 1392 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1393 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1394 | + </actionGroup> |
| 1395 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1396 | + <!-- Validate width before save --> |
| 1397 | + <comment userInput="Validate width before save" stepKey="commentValidateBeforeSave"/> |
| 1398 | + <actionGroup ref="validateContentWidthEqualToContainerWidth" stepKey="validateContentWidthEqualToContainerWidthBeforeSave"> |
| 1399 | + <argument name="content" value="{{BannerOnFrontend.appearancePosterCSS}}"/> |
| 1400 | + <argument name="contentIndex" value="1"/> |
| 1401 | + <argument name="container" value="{{RowOnStorefront.appearanceContainedCSS}}"/> |
| 1402 | + <argument name="containerIndex" value="2"/> |
| 1403 | + <argument name="containerPadding" value="PageBuilderPaddingPropertyRowDefault"/> |
| 1404 | + </actionGroup> |
| 1405 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1406 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 1407 | + <!-- Validate width after save --> |
| 1408 | + <comment userInput="Validate width after save" stepKey="commentValidateAfterSave"/> |
| 1409 | + <actionGroup ref="validateContentWidthEqualToContainerWidth" stepKey="validateContentWidthEqualToContainerWidthAfterSave"> |
| 1410 | + <argument name="content" value="{{BannerOnFrontend.appearancePosterCSS}}"/> |
| 1411 | + <argument name="contentIndex" value="1"/> |
| 1412 | + <argument name="container" value="{{RowOnStorefront.appearanceContainedCSS}}"/> |
| 1413 | + <argument name="containerIndex" value="2"/> |
| 1414 | + <argument name="containerPadding" value="PageBuilderPaddingPropertyRowDefault"/> |
| 1415 | + </actionGroup> |
| 1416 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1417 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1418 | + </actionGroup> |
| 1419 | + <!-- Validate width storefront --> |
| 1420 | + <comment userInput="Validate width storefront" stepKey="commentValidateStorefront"/> |
| 1421 | + <actionGroup ref="validateContentWidthEqualToContainerWidth" stepKey="validateContentWidthEqualToContainerWidthStorefront"> |
| 1422 | + <argument name="content" value="{{BannerOnFrontend.appearancePosterCSS}}"/> |
| 1423 | + <argument name="contentIndex" value="1"/> |
| 1424 | + <argument name="container" value="{{RowOnStorefront.appearanceContainedCSS}}"/> |
| 1425 | + <argument name="containerIndex" value="2"/> |
| 1426 | + <argument name="containerPadding" value="PageBuilderPaddingPropertyRowDefault"/> |
| 1427 | + </actionGroup> |
| 1428 | + </test> |
1314 | 1429 | <test name="BlockBannerPosterContentCanWordWrap">
|
1315 | 1430 | <annotations>
|
1316 | 1431 | <features value="PageBuilder"/>
|
|
0 commit comments