From 9824f2056670baa86a93552d7876549acdd1d916 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 11 Sep 2020 16:18:15 -0700 Subject: [PATCH] Slow down desktop_browser a bit to try and make it more reliable Getting some odd failures where the downloaded file doesn't show up in the right place which I think might be due to over rapid clicking here. Try and slow it down a bit. Signed-off-by: Adam Williamson --- tests/desktop_browser.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/desktop_browser.pm b/tests/desktop_browser.pm index 1d4a9c9e..71d0eb05 100644 --- a/tests/desktop_browser.pm +++ b/tests/desktop_browser.pm @@ -50,11 +50,14 @@ sub run { type_very_safely "https://kernel.org\n"; assert_and_click "browser_kernelorg_patch"; assert_and_click "browser_download_save"; + sleep 2; send_key 'ret'; + wait_still_screen 3; # browsers do...something...when the download completes, and we # expect there's a single click to make it go away and return # browser to a state where we can open a new tab assert_and_click "browser_download_complete"; + wait_still_screen 2; # we'll check it actually downloaded later # add-on test: at present all desktops we test (KDE, GNOME) are # using Firefox by default so we do this unconditionally, but we