Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-6783

Search for product over Edit Rule, in Discounts page, returns more then one result for the first time

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: 7.4.2 CE GA3
    • Component/s: Order Management
    • Labels:
      None
    • Severity of Issue:
      Minor

      Description

       Description

      Search for product over Edit Rule, in Discounts page, returns more then one result for the first time that it is used, resulting in the test fail due to the fact that the wrong product is selected.
      The curious thing is that this bug occurs only in the first try, getting it right for the the next ones.
      Video with the occurrence: simplescreenrecorder-2021-06-16_18.04.16.mkv

       Pre-conditions

      1. Create commerce site: "Minium"

       Steps to Reproduce

       Steps over COMMERCE-6232

      • Create a discount (discount1) with the following configuration:
        • Type: Percentage
        • Target: Products
      • Go into the edit discount page rules section

       

      • Add a rule with the following configuration:
        • Name: rule1
        • Type: Cart Total
      • Edit the rule and set Cart total to 10.
      • Save
      • Edit the rule and set Cart total to 20.
      • Save
      • Verify that the change has been correctly saved

       

      • Add a rule with the following configuration:
        • Name: rule2
        • Type: Has All of these products
      • Edit the rule select some products.
      • Save
      • Edit the rule and modify the selection of products
      • Write the SKU( MIN55857 ) at the Add products Search Bar

       

      * *Expected Result

      Only the product with the SKU MIN55857 should appear over the results

       Actual Result

      Lots of different products appear

       Reproduced In
      master: 36c4cececd0f140998d3d81341325b0c01004ca3

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              riccardo.alberti Riccardo Alberti
              Reporter:
              joao.alves Joao Alves
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.2 CE GA3