From 29f971a2727713152f88d340a834003227e870e6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 28 May 2020 16:14:46 -0700 Subject: [PATCH] syncthing: tests: functional: Fix to wait properly Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/syncthing/tests/test_functional.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/syncthing/tests/test_functional.py b/plinth/modules/syncthing/tests/test_functional.py index 6709948d1..e927030bc 100644 --- a/plinth/modules/syncthing/tests/test_functional.py +++ b/plinth/modules/syncthing/tests/test_functional.py @@ -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: