|
| 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 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminBundleDynamicAttributesAfterMassUpdateTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Bundle"/> |
| 14 | + <stories value="Create/Edit bundle product in Admin"/> |
| 15 | + <title value="Verify dynamic attributes of bundle product after mass update"/> |
| 16 | + <description value="Verifies that dynamic attributes of bundle product are correctly updated using mass update"/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <testCaseId value="AC-2884"/> |
| 19 | + <group value="Bundle"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <deleteData createDataKey="createBundleProduct" stepKey="deleteFixedBundleProduct"/> |
| 26 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 27 | + </after> |
| 28 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 29 | + |
| 30 | + <actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToCatalogProductPage"/> |
| 31 | + <actionGroup ref="FilterProductGridByNameActionGroup" stepKey="filterBundleProductByName"> |
| 32 | + <argument name="product" value="ApiFixedBundleProduct"/> |
| 33 | + </actionGroup> |
| 34 | + |
| 35 | + <checkOption selector="{{AdminProductGridSection.productGridCheckboxOnRow('1')}}" stepKey="selectFirstProductFromGrid"/> |
| 36 | + <actionGroup ref="AdminClickMassUpdateProductAttributesActionGroup" stepKey="goToUpdateProductAttributesPage"/> |
| 37 | + |
| 38 | + <checkOption selector="{{AdminEditProductAttributesSection.ChangeAttributeDynamicPriceToggle}}" stepKey="toggleToChangeDynamicPrice"/> |
| 39 | + <selectOption selector="{{AdminEditProductAttributesSection.AttributeDynamicPrice}}" userInput="No" stepKey="disableDynamicPrice"/> |
| 40 | + <checkOption selector="{{AdminEditProductAttributesSection.ChangeAttributeDynamicSKUToggle}}" stepKey="toggleToChangeDynamicSKU"/> |
| 41 | + <checkOption selector="{{AdminEditProductAttributesSection.ChangeAttributeDynamicWeightToggle}}" stepKey="toggleToChangeDynamicWeight"/> |
| 42 | + <selectOption selector="{{AdminEditProductAttributesSection.AttributeDynamicSKU}}" userInput="No" stepKey="disableDynamicSKU"/> |
| 43 | + <selectOption selector="{{AdminEditProductAttributesSection.AttributeDynamicWeight}}" userInput="No" stepKey="disableDynamicWeight"/> |
| 44 | + <actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="saveMassAttributeUpdate"/> |
| 45 | + |
| 46 | + <actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueueConsumer"> |
| 47 | + <argument name="consumerName" value="{{AdminProductAttributeUpdateConsumerData.consumerName}}"/> |
| 48 | + <argument name="maxMessages" value="{{AdminProductAttributeUpdateConsumerData.messageLimit}}"/> |
| 49 | + </actionGroup> |
| 50 | + <magentoCLI command="cron:run" stepKey="runCron"/> |
| 51 | + |
| 52 | + <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProductForEdit"/> |
| 53 | + |
| 54 | + <actionGroup ref="AdminAssertBundleDynamicAttributesOnProductEditPageActionGroup" stepKey="assertBundleProductDynamicAttributesOnEditPage"> |
| 55 | + <argument name="dynamicSku" value="false"/> |
| 56 | + <argument name="dynamicPrice" value="false"/> |
| 57 | + <argument name="dynamicWeight" value="false"/> |
| 58 | + </actionGroup> |
| 59 | + </test> |
| 60 | +</tests> |
0 commit comments