Bug 1209620 - Fix intermittent failure finding the start a conversation button in Loop's functional tests. r=dmose NPOTB DONTBUILD
authorMark Banner <standard8@mozilla.com>
Tue, 29 Sep 2015 18:35:30 +0100
changeset 265072 5c0821e57fc65c9563e2933b33360082c1dc9093
parent 265039 288d12e9236b1ae15bcada805b3acb199e802e76
child 265074 f02c4236fbdb21537f5200bd0d582dd6c264a8e2
child 265192 97254f90d33f49b0868496b74cc2e5ae5e83c848
push id65832
push userkwierso@gmail.com
push dateTue, 29 Sep 2015 23:14:05 +0000
treeherdermozilla-inbound@00ac696cdc86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmose
bugs1209620
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1209620 - Fix intermittent failure finding the start a conversation button in Loop's functional tests. r=dmose NPOTB DONTBUILD
browser/components/loop/test/functional/test_1_browser_call.py
--- a/browser/components/loop/test/functional/test_1_browser_call.py
+++ b/browser/components/loop/test/functional/test_1_browser_call.py
@@ -84,17 +84,17 @@ class Test1BrowserCall(MarionetteTestCas
                   "arguments[0], 'class', 'chat-frame');")
         frame = self.marionette.execute_script(script, [chatbox])
         self.marionette.switch_to_frame(frame)
 
     def switch_to_standalone(self):
         self.marionette.set_context("content")
 
     def local_start_a_conversation(self):
-        button = self.marionette.find_element(By.CSS_SELECTOR, ".new-room-view .btn-info")
+        button = self.wait_for_element_displayed(By.CSS_SELECTOR, ".new-room-view .btn-info")
 
         self.wait_for_element_enabled(button, 120)
 
         button.click()
 
     def local_check_room_self_video(self):
         self.switch_to_chatbox()