From 3a7ef807dec6a23f6a269024dfdaead516faca73 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 2 Apr 2025 15:40:51 -0700 Subject: [PATCH] custom_blivet_format_partition: protect against missed click I think since the wayland port, sometimes clicks on anaconda_blivet_part_drop_select are missed and don't open the menu. So, if that happens, click it again. Signed-off-by: Adam Williamson --- lib/anaconda.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/anaconda.pm b/lib/anaconda.pm index ca23f2c5..6698e6e6 100644 --- a/lib/anaconda.pm +++ b/lib/anaconda.pm @@ -197,7 +197,9 @@ sub custom_blivet_format_partition { } assert_and_click "anaconda_blivet_part_format"; # Select the appropriate filesystem type. - assert_and_click "anaconda_blivet_part_drop_select"; + wait_screen_change { assert_and_click "anaconda_blivet_part_drop_select"; }; + # sometimes that click doesn't work and we have to do it again + click_lastmatch if (check_screen "anaconda_blivet_part_drop_select"); unless (check_screen "anaconda_blivet_part_fs_$args{type}", 5) { record_soft_failure "https://bugzilla.redhat.com/show_bug.cgi?id=2324231"; for (1 .. 15) {