From 104cbc0b0d9b71210b5619adf2e3dc75950d3118 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 18 Sep 2021 17:31:02 -0700 Subject: [PATCH] users: tests: functional: Use newer splinter API for finding links Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/modules/users/tests/test_functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/users/tests/test_functional.py b/plinth/modules/users/tests/test_functional.py index a8fe4a6c7..6e6ecfe2c 100644 --- a/plinth/modules/users/tests/test_functional.py +++ b/plinth/modules/users/tests/test_functional.py @@ -225,8 +225,8 @@ def new_user_is_not_listed(session_browser, name): def _rename_user(browser, old_name, new_name): functional.nav_to_module(browser, 'users') with functional.wait_for_page_update(browser): - browser.find_link_by_href('/plinth/sys/users/' + old_name + - '/edit/').first.click() + browser.links.find_by_href('/plinth/sys/users/' + old_name + + '/edit/').first.click() browser.find_by_id('id_username').fill(new_name) browser.find_by_id('id_confirm_password').fill(_admin_password) functional.submit(browser)