Related to issue 39647: It is not possible to edit the style of the
authorRafael Queralta <rafaelcuba81@gmail.com>
Tue, 27 Nov 2018 10:49:35 -0500
changeset 7916 fbdafcd6f552
parent 7915 fcd8bc678b49
child 7917 390c13cdc1d0
Related to issue 39647: It is not possible to edit the style of the
modal-dialog popups because is overwritten with the default value

- Changed script executed, to search a substring into style string.
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35170_HideOpenedPopupOnShowLoading.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35170_HideOpenedPopupOnShowLoading.java	Tue Nov 27 21:28:31 2018 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35170_HideOpenedPopupOnShowLoading.java	Tue Nov 27 10:49:35 2018 -0500
@@ -55,10 +55,9 @@
   }
 
   private void popupIsShowing(boolean isShowing) {
-    boolean result = (boolean) SeleniumHelper
-        .executeScriptWithReturn("OB.MobileApp.view.openedPopup.getStyle() !== 'display:none'");
-
-    assertThat(result, equalTo(isShowing));
+    boolean result = ((Long) SeleniumHelper
+        .executeScriptWithReturn("OB.MobileApp.view.openedPopup.getStyle().search('display:none')") >= 0);
+    assertThat(!result, equalTo(isShowing));
   }
 
 }