Skip to content

actionGroup ProductSetAdvancedPricing does not work for Fixed Price #352

Closed
@norgeindian

Description

@norgeindian

Preconditions

  1. Magento 2.3.0

Steps to reproduce

  1. Create a custom MFTF Test and use the action group ProductSetAdvancedPricing with argument price = "Fixed"
  2. Run the test

Expected result

  1. This should normally fill the advanced price form with a fixed discount amount.

Actual result

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions