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:
Veiko Aasa 2024-12-06 13:54:51 +02:00 committed by Sunil Mohan Adapa
parent cc5c7cdf8d
commit 41675eec39
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -427,7 +427,8 @@ def install(browser, app_name):
f'App {app_name} is not available in distribution')
pytest.skip('App not available in distribution')
else:
install_button.click()
with wait_for_page_update(browser):
install_button.click()
else:
break