Closed
Description
Preconditions
- Magento 2.3.0
Steps to reproduce
- Create a custom MFTF Test and use the action group ProductSetAdvancedPricing with argument price = "Fixed"
- Run the test
Expected result
- This should normally fill the advanced price form with a fixed discount amount.
Actual result
- The test fails and does not find the selector
[name='product[tier_price][0][percentage_value]']
In magento/module-catalog/Test/Mftf/ActionGroup/AdminProductActionGroup.xml line 205 the amount is inserted into the field with the selector {{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput('0')}}
But this field only exists, when the price argument is set to "Discount". As soon as this is "Fixed", the field is called product[tier_price][0][price]
.
So either the action group should be renamed to "ProductSetAdvancedPricingDiscountAmount" and the price removed or there should be a condition check which decides which field to fill.