Verifies issue 40082 : Modified Automated Test 'Communit6781_BuyXPayYSameProduct'
authorRanjith S R <ranjith@qualiantech.com>
Tue, 12 Feb 2019 15:23:55 +0530
changeset 8207 f83bd6e8e78b
parent 8206 afe409e21659
child 8208 70c2b77dcb21
Verifies issue 40082 : Modified Automated Test 'Communit6781_BuyXPayYSameProduct'

* Communit6781_BuyXPayYSameProduct
* Communit6782_BuyXPayYDifferentProductCheapest_I
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6781_BuyXPayYSameProduct.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6782_BuyXPayYDifferentProductCheapest_I.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6781_BuyXPayYSameProduct.java	Tue Feb 12 10:30:36 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6781_BuyXPayYSameProduct.java	Tue Feb 12 15:23:55 2019 +0530
@@ -98,7 +98,7 @@
         if (++recordIndex == 1) {
           assertEquals(recordIndex * 10, line);
           assertEquals("Sun Cream 3x2", promotionName);
-          assertEquals(4.17, discountPerUnit, 0.1);
+          assertEquals(12.50, discountPerUnit, 0.1);
           assertEquals(25, totalDiscount, 0);
         } else {
           assertEquals(recordIndex * 10, line);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6782_BuyXPayYDifferentProductCheapest_I.java	Tue Feb 12 10:30:36 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6782_BuyXPayYDifferentProductCheapest_I.java	Tue Feb 12 15:23:55 2019 +0530
@@ -107,7 +107,7 @@
         } else {
           assertEquals(recordIndex * 10, line);
           assertEquals("3 x 2 Bottles", promotionName);
-          assertEquals(3.17, discountPerUnit, 0.1);
+          assertEquals(9.5, discountPerUnit, 0.1);
           assertEquals(19, totalDiscount, 0);
         }
       }