|
152 | 152 | </actionGroup>
|
153 | 153 | <seeElement selector="{{SlideOnFrontend.backgroundColor('3', PageBuilderBackgroundColor_RGB_Blue.rgb)}}" stepKey="seeBackgroundColorSlide2Storefront"/>
|
154 | 154 | </test>
|
| 155 | + <test name="PageBuilderCategoryVerifyCanMoveContentTypesFromOnHoverOptionMenus"> |
| 156 | + <annotations> |
| 157 | + <features value="PageBuilder"/> |
| 158 | + <stories value="Catalog Category"/> |
| 159 | + <title value="Verify That User Can Move Content Types From On-Hover Option Menus"/> |
| 160 | + <description value="This test is intended to ensure that users can move content types from the on-hover option menus within the PageBuilder stage for Category Description."/> |
| 161 | + <severity value="CRITICAL"/> |
| 162 | + <useCaseId value="MC-3330"/> |
| 163 | + <testCaseId value="MC-13965"/> |
| 164 | + <group value="pagebuilder"/> |
| 165 | + <group value="pagebuilder-column"/> |
| 166 | + <group value="pagebuilder-heading"/> |
| 167 | + <group value="pagebuilder-divider"/> |
| 168 | + <group value="pagebuilder-move"/> |
| 169 | + <group value="pagebuilder-catalog-category"/> |
| 170 | + </annotations> |
| 171 | + <before> |
| 172 | + <createData entity="_defaultCategory" stepKey="createPreReqCategory"/> |
| 173 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 174 | + <actionGroup ref="navigateToCreatedCategory" stepKey="navigateToCreatedCategory"> |
| 175 | + <argument name="Category" value="$$createPreReqCategory$$"/> |
| 176 | + </actionGroup> |
| 177 | + <conditionalClick selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.uploadButton}}" visible="false" stepKey="openContentSection"/> |
| 178 | + <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/> |
| 179 | + </before> |
| 180 | + <after> |
| 181 | + <deleteData createDataKey="createPreReqCategory" stepKey="deleteCreatedCategory"/> |
| 182 | + <actionGroup ref="logout" stepKey="logout"/> |
| 183 | + </after> |
| 184 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnToRow"> |
| 185 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 186 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 187 | + </actionGroup> |
| 188 | + <!-- Add Heading to Column 2 --> |
| 189 | + <comment userInput="Add Heading to Column 2" stepKey="commentAddHeadingToColumn2"/> |
| 190 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 191 | + <argument name="group" value="PageBuilderHeadingContentType"/> |
| 192 | + </actionGroup> |
| 193 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingToColumn2"> |
| 194 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 195 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 196 | + <argument name="containerTargetIndex" value="2" /> |
| 197 | + </actionGroup> |
| 198 | + <actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage"> |
| 199 | + <argument name="headingText" value="PageBuilderHeadingTextProperty"/> |
| 200 | + </actionGroup> |
| 201 | + <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading"> |
| 202 | + <argument name="index" value="1"/> |
| 203 | + </actionGroup> |
| 204 | + <!-- Add Divider to Column 2 --> |
| 205 | + <comment userInput="Add Divider to Column 2" stepKey="commentAddDividerToColumn2"/> |
| 206 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupElements"> |
| 207 | + <argument name="group" value="PageBuilderDividerContentType"/> |
| 208 | + </actionGroup> |
| 209 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragDividerToColumn2"> |
| 210 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 211 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 212 | + <argument name="containerTargetIndex" value="2" /> |
| 213 | + </actionGroup> |
| 214 | + <!-- Validate Stage --> |
| 215 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 216 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateHeadingPosition"> |
| 217 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 218 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 219 | + <argument name="positionInContainer" value="1"/> |
| 220 | + <argument name="contentTypeIndex" value="1"/> |
| 221 | + <argument name="containerTargetIndex" value="2"/> |
| 222 | + </actionGroup> |
| 223 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateDividerPosition"> |
| 224 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 225 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 226 | + <argument name="positionInContainer" value="2"/> |
| 227 | + <argument name="contentTypeIndex" value="1"/> |
| 228 | + <argument name="containerTargetIndex" value="2"/> |
| 229 | + </actionGroup> |
| 230 | + <!-- Move Divider --> |
| 231 | + <comment userInput="Move Divider" stepKey="commentMoveDivider"/> |
| 232 | + <actionGroup ref="moveContentTypeToContainer" stepKey="moveDividerToColumn1"> |
| 233 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 234 | + <argument name="contentTypeIndex" value="1"/> |
| 235 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 236 | + <argument name="containerTargetIndex" value="1"/> |
| 237 | + </actionGroup> |
| 238 | + <!-- Validate Stage After Move --> |
| 239 | + <comment userInput="Validate Stage After Move" stepKey="commentValidateStageAfterMove"/> |
| 240 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateHeadingPositionAfterMove"> |
| 241 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 242 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 243 | + <argument name="contentTypeIndex" value="1"/> |
| 244 | + <argument name="containerTargetIndex" value="2"/> |
| 245 | + </actionGroup> |
| 246 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateDividerPositionAfterMove"> |
| 247 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 248 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 249 | + <argument name="contentTypeIndex" value="1"/> |
| 250 | + <argument name="containerTargetIndex" value="1"/> |
| 251 | + </actionGroup> |
| 252 | + <!-- Save Category --> |
| 253 | + <comment userInput="Save Category" stepKey="commentSaveCategory"/> |
| 254 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 255 | + <actionGroup ref="saveCategoryForm" stepKey="saveCategory"/> |
| 256 | + <waitForPageLoad stepKey="waitForPageLoadSaveCategory"/> |
| 257 | + <conditionalClick selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.uploadButton}}" visible="false" stepKey="openContentSection"/> |
| 258 | + <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/> |
| 259 | + <!-- Validate Stage After Save --> |
| 260 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStageAfterSave"/> |
| 261 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateHeadingPositionAfterSave"> |
| 262 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 263 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 264 | + <argument name="contentTypeIndex" value="1"/> |
| 265 | + <argument name="containerTargetIndex" value="2"/> |
| 266 | + </actionGroup> |
| 267 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateDividerPositionAfterSave"> |
| 268 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 269 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 270 | + <argument name="contentTypeIndex" value="1"/> |
| 271 | + <argument name="containerTargetIndex" value="1"/> |
| 272 | + </actionGroup> |
| 273 | + <!-- Validate Storefront --> |
| 274 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 275 | + <amOnPage url="$$createPreReqCategory.name$$.html" stepKey="navigateToCategoryPage"/> |
| 276 | + <scrollTo selector="//div[@class='category-description']" stepKey="scrollToCategoryDescription"/> |
| 277 | + <actionGroup ref="validateContentTypeInsideContainerStorefront" stepKey="validateHeadingPositionStorefront"> |
| 278 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 279 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 280 | + <argument name="contentTypeIndex" value="1"/> |
| 281 | + <argument name="containerTargetIndex" value="2"/> |
| 282 | + </actionGroup> |
| 283 | + <actionGroup ref="validateContentTypeInsideContainerStorefront" stepKey="validateDividerPositionStorefront"> |
| 284 | + <argument name="contentType" value="PageBuilderDividerContentType"/> |
| 285 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 286 | + <argument name="contentTypeIndex" value="1"/> |
| 287 | + <argument name="containerTargetIndex" value="1"/> |
| 288 | + </actionGroup> |
| 289 | + </test> |
155 | 290 | </tests>
|
0 commit comments