|
| 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="AdminPageBuilderProductsSelectBySKUWithSpecialCharacterAndVerifyProductIsDisplayedTest"> |
| 11 | + <annotations> |
| 12 | + <features value="PageBuilder"/> |
| 13 | + <stories value="Products"/> |
| 14 | + <title value="Grid - Select Products By SKU with special characters, delete one product, verify product is displayed in the content preview and storefront"/> |
| 15 | + <description value="Verify that a product is shown in the content preview and storefront if the content type is filtered by 'Select By SKU' and the SKU contains special characters"/> |
| 16 | + <severity value="MINOR"/> |
| 17 | + <useCaseId value="ACP2E-1444"/> |
| 18 | + <testCaseId value="AC-7586"/> |
| 19 | + <group value="pagebuilder"/> |
| 20 | + <group value="pagebuilder-products"/> |
| 21 | + <group value="pagebuilder-productsGrid"/> |
| 22 | + </annotations> |
| 23 | + <before> |
| 24 | + <createData entity="ProductWithSpecialCharsInSKU" stepKey="createProduct1"/> |
| 25 | + <createData entity="SimpleProduct" stepKey="createProduct2"/> |
| 26 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 27 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 28 | + <actionGroup ref="navigateToCMSPage" stepKey="navigateToCMSPage"> |
| 29 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 30 | + </actionGroup> |
| 31 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 32 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer"> |
| 33 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 34 | + <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/> |
| 35 | + </actionGroup> |
| 36 | + </before> |
| 37 | + <after> |
| 38 | + <deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/> |
| 39 | + <deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/> |
| 40 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 41 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 42 | + </after> |
| 43 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionAddContent"> |
| 44 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragProductsIntoStage"> |
| 47 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 50 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 51 | + </actionGroup> |
| 52 | + <actionGroup ref="chooseVisualSelectOption" stepKey="selectAppearance"> |
| 53 | + <argument name="property" value="PageBuilderProductsProductGridAppearance"/> |
| 54 | + </actionGroup> |
| 55 | + <actionGroup ref="chooseVisualSelectOption" stepKey="chooseSelectProductsBy"> |
| 56 | + <argument name="property" value="PageBuilderProductsSelectProductsBySKU"/> |
| 57 | + </actionGroup> |
| 58 | + <actionGroup ref="addSKUsToSelectProductsBySKU" stepKey="addProductsSKUsToInputField"> |
| 59 | + <argument name="SKUs" value="$$createProduct1.sku$$"/> |
| 60 | + </actionGroup> |
| 61 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterProductsCount"> |
| 62 | + <argument name="property" value="PageBuilderProductsCountPropertyFour"/> |
| 63 | + </actionGroup> |
| 64 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 65 | + <actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStage"> |
| 66 | + <argument name="page" value="ProductsOnStage"/> |
| 67 | + <argument name="count" value="1"/> |
| 68 | + </actionGroup> |
| 69 | + <actionGroup ref="validateProductInProducts" stepKey="validateProduct1Stage"> |
| 70 | + <argument name="page" value="ProductsOnStage"/> |
| 71 | + <argument name="product" value="ProductWithSpecialCharsInSKU"/> |
| 72 | + <argument name="productIndex" value="1"/> |
| 73 | + </actionGroup> |
| 74 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 75 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 76 | + <reloadPage stepKey="reloadPage"/> |
| 77 | + <waitForPageLoad stepKey="waitForReload"/> |
| 78 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage1"/> |
| 79 | + <actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStage2"> |
| 80 | + <argument name="page" value="ProductsOnStage"/> |
| 81 | + <argument name="count" value="1"/> |
| 82 | + </actionGroup> |
| 83 | + <actionGroup ref="validateProductInProducts" stepKey="validateProduct2Stage2"> |
| 84 | + <argument name="page" value="ProductsOnStage"/> |
| 85 | + <argument name="product" value="ProductWithSpecialCharsInSKU"/> |
| 86 | + <argument name="productIndex" value="1"/> |
| 87 | + </actionGroup> |
| 88 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openProductsContentType"> |
| 89 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 90 | + </actionGroup> |
| 91 | + <actionGroup ref="assertFieldSlideOutPropertyValueEquals" stepKey="assertSKUFilterValueEqualsToProductSKU"> |
| 92 | + <argument name="property" value="PageBuilderProductsEnterSKUsInput"/> |
| 93 | + <argument name="value" value="$$createProduct1.sku$$"/> |
| 94 | + </actionGroup> |
| 95 | + </test> |
| 96 | +</tests> |
0 commit comments