From b57b306d4b7c3adbf342f986e0b9b03f43e2b314 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 28 Oct 2020 13:52:07 -0700 Subject: [PATCH] _iot_zezere_remote: be careful when quitting firefox Signed-off-by: Adam Williamson --- tests/_iot_zezere_remote.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/_iot_zezere_remote.pm b/tests/_iot_zezere_remote.pm index 5cb44aca..bbc3caf3 100644 --- a/tests/_iot_zezere_remote.pm +++ b/tests/_iot_zezere_remote.pm @@ -42,6 +42,10 @@ sub run { assert_and_click "zezere_provision_schedule"; # exit quit_firefox; + # we don't get back to a prompt instantly and keystrokes while X + # is still shutting down are swallowed, so be careful + assert_screen "root_console"; + wait_still_screen 5; # time before the provision request goes through is kinda hard to # predict, so we'll just try over and over for up to 10 minutes # and bail as soon as it works