|
| 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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="StorefrontCheckConfigurableProductPriceWhenChildProductPriceUpdatedTest" extends="AdminCheckConfigurableProductPriceWhenChildProductPriceUpdatedTest"> |
| 11 | + <annotations> |
| 12 | + <stories value="Configurable Product"/> |
| 13 | + <title value="Page Cache is not cleared for the parent product on the child product save"/> |
| 14 | + <description value="Verify the updated price of a configurable child product on the storefront when the indexer mode is set to `Update by Schedule` and the price of the child product is updated by admin."/> |
| 15 | + <severity value="AVERAGE"/> |
| 16 | + <testCaseId value="AC-7815"/> |
| 17 | + <useCaseId value="ACP2E-1524"/> |
| 18 | + <group value="product"/> |
| 19 | + </annotations> |
| 20 | + |
| 21 | + <remove keyForRemoval="updateSimpleProductOne"/> |
| 22 | + <actionGroup ref="AdminFillProductPriceFieldAndPressEnterOnProductEditPageActionGroup" stepKey="fillProductPrice" after="waitForProductPageToLoad"> |
| 23 | + <argument name="price" value="{{SimpleProductUpdatePrice90.price}}"/> |
| 24 | + </actionGroup> |
| 25 | + <actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickSaveButton" after="fillProductPrice"/> |
| 26 | + |
| 27 | + <remove keyForRemoval="index"/> |
| 28 | + <remove keyForRemoval="flushCache"/> |
| 29 | + <remove keyForRemoval="waitForUpdateStarts"/> |
| 30 | + |
| 31 | + <!--Select product Attribute option1 and verify changes in the price --> |
| 32 | + <remove keyForRemoval="seeChildProduct1PriceInStoreFrontAfterUpdate"/> |
| 33 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeChildProduct1PriceInStoreFrontAfterUpdate" after="selectOption1AfterUpdate"> |
| 34 | + <argument name="productPrice" value="{{SimpleProductUpdatePrice90.price}}"/> |
| 35 | + </actionGroup> |
| 36 | + |
| 37 | + <!--Select product Attribute option2 and verify no changes in the price --> |
| 38 | + <actionGroup ref="StorefrontProductPageSelectDropDownOptionValueActionGroup" stepKey="selectOption2AfterUpdate" after="seeChildProduct1PriceInStoreFrontAfterUpdate"> |
| 39 | + <argument name="attributeLabel" value="$$createConfigProductAttribute.default_value$$"/> |
| 40 | + <argument name="optionLabel" value="$$getConfigAttributeOption2.label$$"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeChildProduct2PriceInStoreFrontAfterUpdate" after="selectOption2AfterUpdate"> |
| 43 | + <argument name="productPrice" value="$$createConfigChildProduct2.price$$"/> |
| 44 | + </actionGroup> |
| 45 | + </test> |
| 46 | +</tests> |
0 commit comments