From 1db2f4982aba180795402dff6805bf1b79fbedd4 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 28 May 2020 14:26:07 -0700 Subject: [PATCH] mldonkey: tests: functional: Wait for frame to load properly Before counting the number of downloads. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/mldonkey/tests/test_functional.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/mldonkey/tests/test_functional.py b/plinth/modules/mldonkey/tests/test_functional.py index 5a53cc855..6306e88ef 100644 --- a/plinth/modules/mldonkey/tests/test_functional.py +++ b/plinth/modules/mldonkey/tests/test_functional.py @@ -58,5 +58,6 @@ def _get_number_of_ed2k_files(browser): '//tr//td[contains(text(), "Transfers")]').click() with browser.get_iframe('output') as output_frame: + functional.eventually(output_frame.find_by_css, ['.downloaded']) return len(output_frame.find_by_css('.dl-1')) + len( output_frame.find_by_css('.dl-2'))