From 459b084763f8d5d55c26a1e18b33cba953eae692 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Wed, 25 Dec 2024 18:44:18 +0200 Subject: [PATCH] samba: tests: functional: Wait for page update after enable/disable share Tests: - All samba tests pass. Signed-off-by: Veiko Aasa [sunil: Update to reflect the new utility function name] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/samba/tests/test_functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/samba/tests/test_functional.py b/plinth/modules/samba/tests/test_functional.py index aac4d0629..87fe015c7 100644 --- a/plinth/modules/samba/tests/test_functional.py +++ b/plinth/modules/samba/tests/test_functional.py @@ -51,9 +51,9 @@ def _set_share(browser, share_type, status='enabled'): share_btn = share.find_by_css('.share-status').find_by_tag('button').first if status == 'enabled' and share_btn['value'] == 'enable': - share_btn.click() + functional.click_and_wait(browser, share_btn) elif status == 'disabled' and share_btn['value'] == 'disable': - share_btn.click() + functional.click_and_wait(browser, share_btn) def _write_to_share(share_type, as_guest=False):