From 2356d272688e8ab72e7a75bbb0870b07bad330c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Fri, 12 Jul 2024 11:23:38 +0200 Subject: [PATCH] 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. --- tests/applications/maps/export.pm | 32 ++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/tests/applications/maps/export.pm b/tests/applications/maps/export.pm index 0f1b8355..daa88634 100644 --- a/tests/applications/maps/export.pm +++ b/tests/applications/maps/export.pm @@ -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.