|
1107 | 1107 | <dontSeeElementInDOM selector="{{BlockOnStorefront.hidden('1')}}" stepKey="dontSeeHiddenElement"/>
|
1108 | 1108 | <seeElement selector="{{BlockOnStorefront.base('1')}}" stepKey="waitForContentTypeVisible" />
|
1109 | 1109 | </test>
|
| 1110 | + <test name="BlockRowContentIsVerticallyAligned"> |
| 1111 | + <annotations> |
| 1112 | + <features value="PageBuilder"/> |
| 1113 | + <stories value="Block"/> |
| 1114 | + <title value="Row Content Can Be Vertically Aligned In Block"/> |
| 1115 | + <description value="A user can vertically align row contents in a Block"/> |
| 1116 | + <severity value="CRITICAL"/> |
| 1117 | + <useCaseId value="MC-4280"/> |
| 1118 | + <testCaseId value="MC-5061"/> |
| 1119 | + <group value="pagebuilder"/> |
| 1120 | + <group value="pagebuilder-block"/> |
| 1121 | + <group value="pagebuilder-row"/> |
| 1122 | + </annotations> |
| 1123 | + <before> |
| 1124 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin" /> |
| 1125 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 1126 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage"> |
| 1127 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$" /> |
| 1128 | + </actionGroup> |
| 1129 | + </before> |
| 1130 | + <after> |
| 1131 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 1132 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1133 | + </after> |
| 1134 | + <!-- Edit Block and configure Row - Vertical Align Bottom --> |
| 1135 | + <comment userInput="Edit Block and configure row vertical align bottom" stepKey="commentConfigureRowVerticalAlignBottom"/> |
| 1136 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 1137 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1138 | + </actionGroup> |
| 1139 | + <actionGroup ref="fillSlideOutPanelField" stepKey="enterMinHeightProperty"> |
| 1140 | + <argument name="property" value="PageBuilderMinHeightProperty_500"/> |
| 1141 | + </actionGroup> |
| 1142 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterVerticalAlignmentBottomProperty"> |
| 1143 | + <argument name="property" value="PageBuilderVerticalAlignmentPropertyBottom"/> |
| 1144 | + </actionGroup> |
| 1145 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsInBlock"/> |
| 1146 | + <click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveBlock"/> |
| 1147 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
| 1148 | + <!-- Go to CMS Page and choose Block --> |
| 1149 | + <comment userInput="Go to CMS Page and choose Block" stepKey="commentGoToCMSPage"/> |
| 1150 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1151 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1152 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle1"> |
| 1153 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1154 | + </actionGroup> |
| 1155 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1156 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1157 | + </actionGroup> |
| 1158 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragBlockIntoStage"> |
| 1159 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1160 | + </actionGroup> |
| 1161 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1162 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1163 | + </actionGroup> |
| 1164 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1165 | + <!-- Verify Vertical Alignment On Stage - Before Save --> |
| 1166 | + <comment userInput="Verify min height and vertical alignment on stage before save" stepKey="commentVerifyMinHeightAndVerticalAlignmentOnStageBeforeSave"/> |
| 1167 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderMinHeightProperty_500.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowMinHeightBeforeSave"/> |
| 1168 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderVerticalAlignmentPropertyBottom.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowVerticalAlignmentBottomBeforeSave"/> |
| 1169 | + <actionGroup ref="verifyVerticalAlignmentBottomInBlock" stepKey="verifyBottomAlignmentBeforeSave"> |
| 1170 | + <argument name="container" value="RowOnStorefront"/> |
| 1171 | + <argument name="content" value="HtmlOnStorefront"/> |
| 1172 | + <argument name="padding" value="PageBuilderPaddingProperty10"/> |
| 1173 | + <argument name="minHeight" value="PageBuilderMinHeightProperty_500.value"/> |
| 1174 | + </actionGroup> |
| 1175 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1176 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave"/> |
| 1177 | + <!-- Verify Vertical Alignment On Stage - After Save --> |
| 1178 | + <comment userInput="Verify min height and vertical alignment on stage after save" stepKey="commentVerifyMinHeightAndVerticalAlignmentOnStageAfterSave"/> |
| 1179 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderMinHeightProperty_500.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowMinHeightAfterSave"/> |
| 1180 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderVerticalAlignmentPropertyBottom.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowVerticalAlignmentBottomAfterSave"/> |
| 1181 | + <actionGroup ref="verifyVerticalAlignmentBottomInBlock" stepKey="verifyBottomAlignmentAfterSave"> |
| 1182 | + <argument name="container" value="RowOnStorefront"/> |
| 1183 | + <argument name="content" value="HtmlOnStorefront"/> |
| 1184 | + <argument name="padding" value="PageBuilderPaddingProperty10"/> |
| 1185 | + <argument name="minHeight" value="PageBuilderMinHeightProperty_500.value"/> |
| 1186 | + </actionGroup> |
| 1187 | + <!-- Verify Min Height and Vertical Alignment In Storefront --> |
| 1188 | + <comment userInput="Verify min height and vertical alignment in storefront" stepKey="commentVerifyMinHeightAndVerticalAlignmentInStorefront"/> |
| 1189 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1190 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1191 | + </actionGroup> |
| 1192 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderMinHeightProperty_500.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowMinHeightStorefront"/> |
| 1193 | + <seeElement selector="({{RowOnStorefront.rowStyle('1', PageBuilderVerticalAlignmentPropertyBottom.style)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeRowVerticalAlignmentBottomStorefront"/> |
| 1194 | + <actionGroup ref="verifyVerticalAlignmentBottomInBlock" stepKey="verifyBottomAlignmentStorefront"> |
| 1195 | + <argument name="container" value="RowOnStorefront"/> |
| 1196 | + <argument name="content" value="HtmlOnStorefront"/> |
| 1197 | + <argument name="padding" value="PageBuilderPaddingProperty10"/> |
| 1198 | + <argument name="minHeight" value="PageBuilderMinHeightProperty_500.value"/> |
| 1199 | + <argument name="storefrontBugOffset" value="20"/> |
| 1200 | + </actionGroup> |
| 1201 | + </test> |
1110 | 1202 | </tests>
|
0 commit comments