[bitbake-devel] [PATCH 5/8] toaster: test browser test_layerdetails_page add wait_until_visible

Ed Bartosh ed.bartosh at linux.intel.com
Fri Oct 28 15:48:46 UTC 2016


From: Michael Wood <michael.g.wood at intel.com>

Add an additional wait_until_visible for the save buttons as firefox
animates this into view so slowly we get a race on them being visible

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/tests/browser/test_layerdetails_page.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/toaster/tests/browser/test_layerdetails_page.py b/lib/toaster/tests/browser/test_layerdetails_page.py
index 6392d1e..f24fb09 100644
--- a/lib/toaster/tests/browser/test_layerdetails_page.py
+++ b/lib/toaster/tests/browser/test_layerdetails_page.py
@@ -91,9 +91,10 @@ class TestLayerDetailsPage(SeleniumTestCase):
         for btn in self.find_all("dd .glyphicon-edit"):
             btn.click()
 
-        # Wait for the inputs to become visible
+        # Wait for the inputs to become visible after animation
         self.wait_until_visible("#layer-git input[type=text]")
         self.wait_until_visible("dd textarea")
+        self.wait_until_visible("dd .change-btn")
 
         # Edit each value
         for inputs in self.find_all("#layer-git input[type=text]") + \
-- 
2.1.4




More information about the bitbake-devel mailing list