Use quit_firefox in Cockpit update tests
Just doing ctrl-q breaks if we hit the 'close tabs' dialog, which seems to happen occasionally. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
dc7b7a7241
commit
66bd961765
@ -28,7 +28,7 @@ sub run {
|
|||||||
assert_screen 'autoupdate_planned_time';
|
assert_screen 'autoupdate_planned_time';
|
||||||
|
|
||||||
# Quit Cockpit
|
# Quit Cockpit
|
||||||
send_key "ctrl-q";
|
quit_firefox;
|
||||||
sleep 3;
|
sleep 3;
|
||||||
|
|
||||||
# Check that the dnf-automatic service has started
|
# Check that the dnf-automatic service has started
|
||||||
|
@ -47,7 +47,7 @@ sub run {
|
|||||||
# needed and if so, we will restart Firefox and login again.
|
# needed and if so, we will restart Firefox and login again.
|
||||||
#
|
#
|
||||||
if (check_screen("cockpit_updates_reconnect", 1)) {
|
if (check_screen("cockpit_updates_reconnect", 1)) {
|
||||||
send_key "ctrl-q";
|
quit_firefox;
|
||||||
sleep 5;
|
sleep 5;
|
||||||
start_cockpit(1);
|
start_cockpit(1);
|
||||||
select_cockpit_update();
|
select_cockpit_update();
|
||||||
@ -68,7 +68,7 @@ sub run {
|
|||||||
assert_screen 'cockpit_updates_updated';
|
assert_screen 'cockpit_updates_updated';
|
||||||
|
|
||||||
# Switch off Cockpit
|
# Switch off Cockpit
|
||||||
send_key "ctrl-q";
|
quit_firefox;
|
||||||
|
|
||||||
# Wait a couple of seconds for the terminal to settle down, the command was
|
# Wait a couple of seconds for the terminal to settle down, the command was
|
||||||
# entered incorrectly which resulted in a failure.
|
# entered incorrectly which resulted in a failure.
|
||||||
|
Loading…
Reference in New Issue
Block a user