diff --git a/lib/disks.pm b/lib/disks.pm index dd1f2a3c..127cb0c3 100644 --- a/lib/disks.pm +++ b/lib/disks.pm @@ -193,6 +193,10 @@ sub mount_partition { my $number = shift; # Select the first partition if not selected. assert_and_click("disks_select_partition_$number"); + # FIXME: handle partition being mounted at /run/udisk2/temp-mount-XXXXX: + # https://github.com/storaged-project/udisks/issues/1102 + # drop this when that bug is fixed + click_lastmatch if (check_screen("disks_temp_mounted", 5)); # Click on the Play symbout to mount the partition. assert_and_click("disks_button_mount"); # Authenticate if necessary. diff --git a/needles/gnome/apps/disks/disks_temp_mounted-20230518.json b/needles/gnome/apps/disks/disks_temp_mounted-20230518.json new file mode 100644 index 00000000..480edad1 --- /dev/null +++ b/needles/gnome/apps/disks/disks_temp_mounted-20230518.json @@ -0,0 +1,27 @@ +{ + "area": [ + { + "xpos": 616, + "ypos": 400, + "width": 83, + "height": 16, + "type": "match" + }, + { + "xpos": 229, + "ypos": 345, + "width": 16, + "height": 19, + "type": "match" + } + ], + "properties": [ + { + "name": "workaround", + "value": "https://github.com/storaged-project/udisks/issues/1102" + } + ], + "tags": [ + "disks_temp_mounted" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/disks/disks_temp_mounted-20230518.png b/needles/gnome/apps/disks/disks_temp_mounted-20230518.png new file mode 100644 index 00000000..94feba3f Binary files /dev/null and b/needles/gnome/apps/disks/disks_temp_mounted-20230518.png differ