From fbd6adeac1b3a1f9b7fa18f6f214c923fbb25588 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Tue, 7 Jan 2025 11:14:27 +0200 Subject: [PATCH] deluge: tests: functional: Fix deluge client logged in detection Tests: - All deluge functional tests pass and monitored that there are no unreasonable delays in deluge web client while tests are running. Signed-off-by: Veiko Aasa Reviewed-by: Joseph Nuthalapati --- plinth/modules/deluge/tests/test_functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/deluge/tests/test_functional.py b/plinth/modules/deluge/tests/test_functional.py index d6918fa0a..56ce7d5ac 100644 --- a/plinth/modules/deluge/tests/test_functional.py +++ b/plinth/modules/deluge/tests/test_functional.py @@ -83,7 +83,6 @@ def _ensure_logged_in(browser): def logged_in(): active_window_title = _get_active_window_title(browser) - # Change Default Password window appears once. if active_window_title == 'Change Default Password': _click_active_window_button(browser, 'No') @@ -92,7 +91,8 @@ def _ensure_logged_in(browser): browser.find_by_id('_password').first.fill('deluge') _click_active_window_button(browser, 'Login') - return browser.is_element_not_present_by_css('#add .x-item-disabled') + return browser.is_element_present_by_css( + '.x-deluge-statusbar.x-connected') functional.eventually(logged_in)