mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: functional: Fix app installation test skipped on slow machines
Fixes an issue where after clicking an app install button (that disables the button), the app uninstall test is skipped because "App not available in distribution". Wait until the app install submit button is not present on the page after clicking the install button. Test performed: - Increased sleep time to 10s in SetupView. The sharing app uninstall functional test pass. Signed-off-by: Veiko Aasa <veiko17@disroot.org> [sunil: Use wait_for_page_update() instead of eventually] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
cc5c7cdf8d
commit
41675eec39
@ -427,7 +427,8 @@ def install(browser, app_name):
|
|||||||
f'App {app_name} is not available in distribution')
|
f'App {app_name} is not available in distribution')
|
||||||
pytest.skip('App not available in distribution')
|
pytest.skip('App not available in distribution')
|
||||||
else:
|
else:
|
||||||
install_button.click()
|
with wait_for_page_update(browser):
|
||||||
|
install_button.click()
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user