From 41cf738f8ea507a6d0ee2779b7cc02f0d075a754 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 30 Aug 2022 22:19:33 -0700 Subject: [PATCH] bepasty: tests: functional: Minor refactor for form submission Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/bepasty/tests/test_functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/bepasty/tests/test_functional.py b/plinth/modules/bepasty/tests/test_functional.py index e5dabd75f..64613b950 100644 --- a/plinth/modules/bepasty/tests/test_functional.py +++ b/plinth/modules/bepasty/tests/test_functional.py @@ -81,7 +81,7 @@ def _remove_all_passwords(browser): while True: remove_button = browser.find_by_css('.password-remove') if remove_button: - functional.submit(browser, remove_button) + functional.submit(browser, element=remove_button) else: break @@ -95,7 +95,7 @@ def _can_login(browser, password): _logout(browser) browser.fill('token', password) login = browser.find_by_xpath('//form//button') - functional.submit(browser, login, '/bepasty') + functional.submit(browser, element=login) return bool(browser.find_by_value('Logout'))