From 41675eec3919ff86b4176dd9ea82babf0dd50130 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Fri, 6 Dec 2024 13:54:51 +0200 Subject: [PATCH] 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 [sunil: Use wait_for_page_update() instead of eventually] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/tests/functional/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 9a5b6394f..9d4fe828d 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -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