mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 13:33:08 +00:00
Use different workflow for Silverblue
Silverblue Rawhide contains an older version of Maps than Workstation Rawhide. This PR allow to test both of the versions depending on the subvariant variable. When Silverblue and Workstation will use the same version, this should be removed.
This commit is contained in:
parent
b951a123c6
commit
2356d27268
@ -12,16 +12,30 @@ sub run {
|
||||
# Go to menu and click on Export.
|
||||
assert_and_click("gnome_burger_menu");
|
||||
assert_and_click("maps_menu_export");
|
||||
# wait for the export screen to appear and settle
|
||||
assert_and_click("maps_button_export");
|
||||
wait_still_screen(2);
|
||||
|
||||
# Rename the file and export it.
|
||||
# The name entry field should have focus already, so we are
|
||||
# just going to rename the proposed file name.
|
||||
send_key("ctrl-a");
|
||||
type_very_safely("exported-map.png");
|
||||
assert_and_click("maps_button_save");
|
||||
# The Rawhide version is not the latest one, so
|
||||
# this will only be valid for non Silverblue images.
|
||||
# For Silverblue, check the else statement. When
|
||||
# the newest version get into Silverblue,
|
||||
# the condition should be removed.
|
||||
# FIXME!
|
||||
if (get_var('SUBVARIANT') ne 'Silverblue') {
|
||||
# wait for the export screen to appear and settle
|
||||
assert_and_click("maps_button_export");
|
||||
wait_still_screen(2);
|
||||
# Rename the file and export it.
|
||||
# The name entry field should have focus already, so we are
|
||||
# just going to rename the proposed file name.
|
||||
send_key("ctrl-a");
|
||||
type_very_safely("exported-map.png");
|
||||
assert_and_click("maps_button_save");
|
||||
}
|
||||
else {
|
||||
assert_screen('maps_button_export');
|
||||
send_key('ctrl-a');
|
||||
type_very_safely('exported-map.png');
|
||||
assert_and_click('maps_button_export');
|
||||
}
|
||||
|
||||
# After the map has been exported, we will open
|
||||
# it in an image viewer to see that it is correct.
|
||||
|
Loading…
Reference in New Issue
Block a user