Skip to content

Commit 2949b01

Browse files
MAGETWO-98818: [Magento Cloud] Tier price was not set as a discount on the original price
- Added automated test script
1 parent 60e3a73 commit 2949b01

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminProductActionGroup.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,17 @@
472472
<click selector="{{AdminAddUpSellProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected"/>
473473
<waitForPageLoad stepKey="waitForPageToLoad1"/>
474474
</actionGroup>
475+
<actionGroup name="AdminProductAdvancedPricingNewCustomerGroupPrice">
476+
<arguments>
477+
<argument name="qty" type="string"/>
478+
<argument name="priceType" type="string"/>
479+
<argument name="discount" type="string"/>
480+
<argument name="customerGroup" type="string"/>
481+
</arguments>
482+
<click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="addCustomerGroup"/>
483+
<fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPriceQtyInput(customerGroup)}}" userInput="{{qty}}" stepKey="fillProductTierPriceQtyInput1"/>
484+
<selectOption selector="{{AdminProductFormAdvancedPricingSection.productTierPriceValueTypeSelect(customerGroup)}}" userInput="{{priceType}}" stepKey="selectProductTierPriceValueType1"/>
485+
<fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput(customerGroup)}}" userInput="{{discount}}" stepKey="selectProductTierPricePriceInput"/>
486+
<click selector="{{AdminProductFormAdvancedPricingSection.doneButton}}" stepKey="clickDoneButton1"/>
487+
</actionGroup>
475488
</actionGroups>

0 commit comments

Comments
 (0)