Verifies Issue 44112 : Modified Test I40868_VerifyCashupWithUnPaidOrder
authorRanjith S R <ranjith@qualiantech.com>
Fri, 22 May 2020 11:19:25 +0530
changeset 9882 09d5f2a35603
parent 9881 cfa87e750112
child 9883 4dc51a610fba
Verifies Issue 44112 : Modified Test I40868_VerifyCashupWithUnPaidOrder

* Modified following Test for changes in ADMessage
I40868_VerifyCashupWithUnPaidOrder
I34219_VerifyOpenTillOnCloseStore
I36968_VerifyOpenTillAfterCloseStore
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I34219_VerifyOpenTillOnCloseStore.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I36968_VerifyOpenTillAfterCloseStore.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I39569_VerifyDateWhenEnableCloseStoreInWebPOSPrefIsActive.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I40868_VerifyCashupWithUnPaidOrder.java
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I34219_VerifyOpenTillOnCloseStore.java	Thu May 21 10:32:46 2020 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I34219_VerifyOpenTillOnCloseStore.java	Fri May 22 11:19:25 2020 +0530
@@ -45,7 +45,7 @@
     verify(TestIdExtModules.LABEL_POPUP_TITLE, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.LABEL_POPUP_CONFIRMATION_TITLE_ALT, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     tap(TestIdExtModules.BUTTON_POPUP_OK);
     waitUntilCertainWindowIsReached(ApplicationWindow.CASHUP);
     doCashupProcess();
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I36968_VerifyOpenTillAfterCloseStore.java	Thu May 21 10:32:46 2020 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I36968_VerifyOpenTillAfterCloseStore.java	Fri May 22 11:19:25 2020 +0530
@@ -73,7 +73,7 @@
     verify(TestIdExtModules.LABEL_POPUP_TITLE, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.LABEL_POPUP_CONFIRMATION_TITLE_ALT, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     tap(TestIdExtModules.BUTTON_POPUP_OK);
     waitUntilCertainWindowIsReached(ApplicationWindow.CASHUP);
     tap(TestIdExtModules.BUTTON_CASHUP_CANCEL);
@@ -87,7 +87,7 @@
     verify(TestIdExtModules.LABEL_POPUP_TITLE, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.LABEL_POPUP_CONFIRMATION_TITLE_ALT, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     tap(TestIdExtModules.BUTTON_POPUP_OK);
     waitUntilCertainWindowIsReached(ApplicationWindow.CASHUP);
     doCashupProcess();
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I39569_VerifyDateWhenEnableCloseStoreInWebPOSPrefIsActive.java	Thu May 21 10:32:46 2020 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I39569_VerifyDateWhenEnableCloseStoreInWebPOSPrefIsActive.java	Fri May 22 11:19:25 2020 +0530
@@ -53,7 +53,7 @@
     verify(TestIdExtModules.LABEL_POPUP_TITLE, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.LABEL_POPUP_CONFIRMATION_TITLE_ALT, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     tap(TestIdExtModules.BUTTON_POPUP_OK);
     waitUntilCertainWindowIsReached(ApplicationWindow.CASHUP);
     doCashupProcess();
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I40868_VerifyCashupWithUnPaidOrder.java	Thu May 21 10:32:46 2020 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I40868_VerifyCashupWithUnPaidOrder.java	Fri May 22 11:19:25 2020 +0530
@@ -73,7 +73,7 @@
     verify(TestIdExtModules.STANDARD_CONFIRMATION_POPUP_LABEL_HEADER, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.STANDARD_CONFIRMATION_POPUP_LABEL_BODY, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     tap(TestIdExtModules.BUTTON_POPUP_OK);
     waitUntilCertainWindowIsReached(ApplicationWindow.CASHUP);
     tap(TestIdExtModules.BUTTON_CASHUP_CANCEL);
@@ -86,7 +86,7 @@
     verify(TestIdExtModules.STANDARD_CONFIRMATION_POPUP_LABEL_HEADER, (String) SeleniumHelper
         .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupTitle')"));
     verify(TestIdExtModules.STANDARD_CONFIRMATION_POPUP_LABEL_BODY, (String) SeleniumHelper
-        .executeScriptWithReturn("OB.I18N.getLabel('POSS_OrdersExistForCashupMessage')"));
+        .executeScriptWithReturn("OB.I18N.getLabel('POSS_CashupPending_TillClosed')"));
     TestIdConstructor buttonNavigateToPOS = new TestIdConstructor(
         "confirmationPopup_btnNavigateToPOS");
     isVisible(buttonNavigateToPOS, true);