mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
samba: tests: functional: Wait for page update after enable/disable share
Tests: - All samba tests pass. Signed-off-by: Veiko Aasa <veiko17@disroot.org> [sunil: Update to reflect the new utility function name] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
2ae0f19417
commit
459b084763
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user