From 86c2bf665090c3f02fcb879e0d9c8fe6aac13987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Thu, 3 Dec 2020 12:17:31 +0100 Subject: [PATCH] Change the way the mountpoint textfield is reached. The review for `btrfs_preserve_home` test case has revealed, that the way how to reach the mountpoint textfield in the Anaconda partitioning differs between various tests. This PR makes it the easiest way possible, as is defined by `custom_with_swap` test case mentioned in the review. --- tests/disk_custom_resize_lvm.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/disk_custom_resize_lvm.pm b/tests/disk_custom_resize_lvm.pm index 88c18013..69cbd7e4 100644 --- a/tests/disk_custom_resize_lvm.pm +++ b/tests/disk_custom_resize_lvm.pm @@ -5,12 +5,7 @@ use anaconda; use utils; sub goto_mountpoint { - my $counter = 20; - while (!check_screen "anaconda_part_mountpoint_selected" and $counter > 0) { - send_key "tab"; - $counter += 1; - sleep 1; - } + send_key_until_needlematch("anaconda_part_mountpoint_selected", "tab", 20); } sub run {