Related to issue 38888: Failing SS Build
authorMartin Taal <martin.taal@openbravo.com>
Sat, 24 Nov 2018 22:01:42 +0100
changeset 7904 33fcfe595e63
parent 7903 d5a0cfb1dc24
child 7905 de65d0ab00ec
Related to issue 38888: Failing SS Build
force online for browser
src-test/org/openbravo/test/mobile/retail/multiserver/selenium/tests/offline/OfflineMSCentral003_CreateMultiorder.java
--- a/src-test/org/openbravo/test/mobile/retail/multiserver/selenium/tests/offline/OfflineMSCentral003_CreateMultiorder.java	Sat Nov 24 15:33:13 2018 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/multiserver/selenium/tests/offline/OfflineMSCentral003_CreateMultiorder.java	Sat Nov 24 22:01:42 2018 +0100
@@ -7,9 +7,12 @@
 import java.sql.SQLException;
 
 import org.junit.Test;
+import org.openbravo.test.mobile.core.selenium.SeleniumHelper;
+import org.openbravo.test.mobile.core.utils.TestLogger;
 import org.openbravo.test.mobile.retail.mobilecore.annotations.TestClassAnnotations;
 import org.openbravo.test.mobile.retail.mobilecore.database.DatabaseHelperSelect;
 import org.openbravo.test.mobile.retail.mobilecore.javascript.BackboneHelper;
+import org.openbravo.test.mobile.retail.mobilecore.javascript.SynchronizationMonitor;
 import org.openbravo.test.mobile.retail.multiserver.MultiserverOfflineUtils;
 import org.openbravo.test.mobile.retail.multiserver.MultiserverUtils;
 import org.openbravo.test.mobile.retail.multiserver.selenium.terminals.WebPOSCentralOfflineTerminalHelper;
@@ -57,6 +60,9 @@
     tap(TestIdPack.BUTTON_SEARCHPRODUCT_BASECAMPLANTERN);
     verify(TestIdPack.LABEL_TOTALTOPAY, totalToPay2);
 
+    SynchronizationMonitor.waitUntiTheApplicationHasSynchronized();
+    TestLogger.getLogger().debug("Forcing the WebPOS to check the connectivity status");
+    SeleniumHelper.executeScript("OB.UTIL.checkConnectivityStatus(null, null, true)");
     waitForOnline(2000, 60);
 
     // pay open tickets