syncthing: tests: functional: Fix to wait properly

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-05-28 16:14:46 -07:00 committed by James Valleroy
parent ad5fae2180
commit 29f971a272
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -78,6 +78,7 @@ def _load_main_interface(browser):
lambda: browser.evaluate_script('document.is_ui_online'), timeout=5)
# Dismiss the Usage Reporting consent dialog
functional.eventually(browser.find_by_id, ['ur'])
usage_reporting = browser.find_by_id('ur').first
functional.eventually(lambda: usage_reporting.visible, timeout=2)
if usage_reporting.visible: