# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1491569497 -19800
#      Fri Apr 07 18:21:37 2017 +0530
# Node ID b1f0678843c7f9d70fd0e265c7b00e2120a25e91
# Parent  443fdf474efa7f5852edfbec9b87dff0828677c9
Verifies issue 35661 : Added automated test 'I35661_VerifyKeyEventOnButton'

diff -r 443fdf474efa -r b1f0678843c7 src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/rfid/DisableScaningFocusRFID.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/rfid/DisableScaningFocusRFID.java	Fri Apr 07 16:14:57 2017 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/rfid/DisableScaningFocusRFID.java	Fri Apr 07 18:21:37 2017 +0530
@@ -107,12 +107,12 @@
       @Override
       protected boolean until(final int currentIteration) {
         return (Boolean) TestIdPack.LABEL_RFID_ICON.enyoNode().executeExtensionWithReturn(
-            ".attributes.class === '" + CSSRFIDICONDISABLED + "'");
+            ".attributes.class === '" + CSSRFIDICONENABLED + "'");
       }
 
       @Override
       protected void timeout() {
-        throw new RuntimeException("Scanning focus was expected to turn on with red color icon.");
+        throw new RuntimeException("Scanning focus was expected to turn on with green color icon.");
       }
     };
     tap(TestIdPack.BUTTON_MENU);
diff -r 443fdf474efa -r b1f0678843c7 src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/externalInput/I35661_VerifyKeyEventOnButton.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/externalInput/I35661_VerifyKeyEventOnButton.java	Fri Apr 07 16:14:57 2017 +0530
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/externalInput/I35661_VerifyKeyEventOnButton.java	Fri Apr 07 18:21:37 2017 +0530
@@ -55,6 +55,7 @@
         .executeScript("TestRegistry.registry('products_row1_renderProduct').enyoObject.focus()");
 
     // Enter Event on Focused Button "ADHESIVE BODYWARMERS CLASSIC"
+    OBUtils.pause(1000);
     SeleniumHelper.pressKey(Keys.ENTER);
     SeleniumHelper.pressKey(Keys.ENTER);
     verify(TestIdPack.LABEL_TOTALTOPAY, "155.50");
