|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="PageBuilderCategoryAddContentDirectlyToStageTest" extends="PageBuilderCMSPageAddContentDirectlyToStageTest"> |
| 11 | + <annotations> |
| 12 | + <features value="PageBuilder"/> |
| 13 | + <stories value="Catalog Category"/> |
| 14 | + <title value="Verify Can Only Add Expected Content Types to Category Stage Directly"/> |
| 15 | + <description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to Category stage directly. Verify user cannot add any other content type to Category stage directly"/> |
| 16 | + <severity value="BLOCKER"/> |
| 17 | + <group value="pagebuilder"/> |
| 18 | + <group value="pagebuilder-stage"/> |
| 19 | + <group value="pagebuilder-catalog-category"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="_defaultCategory" stepKey="createPreReqCategory" after="loginAsAdmin"/> |
| 23 | + <actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="navigateToCreatedCMSPage"> |
| 24 | + <argument name="Category" value="$$createPreReqCategory$$"/> |
| 25 | + </actionGroup> |
| 26 | + <actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection" after="navigateToCreatedCMSPage"/> |
| 27 | + </before> |
| 28 | + <after> |
| 29 | + <deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/> |
| 30 | + </after> |
| 31 | + <!-- Save Category and Verify Expected Content Types on Stage --> |
| 32 | + <actionGroup ref="saveCatalogCategory" stepKey="saveAndContinueEditCmsPage"/> |
| 33 | + <actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection" after="saveAndContinueEditCmsPage"/> |
| 34 | + <actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="switchToPageBuilderStage"/> |
| 35 | + <!-- Verify Expected Content Types on Storefront --> |
| 36 | + <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront4"> |
| 37 | + <argument name="page" value="$$createPreReqCategory.name$$.html"/> |
| 38 | + </actionGroup> |
| 39 | + </test> |
| 40 | +</tests> |
0 commit comments