diff --git a/lib/anaconda.pm b/lib/anaconda.pm index ffbe8f47..bcf4876c 100644 --- a/lib/anaconda.pm +++ b/lib/anaconda.pm @@ -107,7 +107,7 @@ sub custom_blivet_add_partition { # in Anaconda. Should be called when blivet-gui is displayed and free space is selected. # You can pass device type for partition (needle tagged anaconda_blivet_devicetype_$devicetype should exist), # whether partitions should be of RAID1 (devicetype is then automatically handled) - you then - # need to have two disks added, size of that partition in MBs, desired filesystem of that partition + # need to have two disks added, size of that partition in MiBs, desired filesystem of that partition # (anaconda_blivet_part_fs_$filesystem should exist) and mountpoint of that partition (e. g. string "/boot"). my %args = ( devicetype => "", @@ -140,12 +140,11 @@ sub custom_blivet_add_partition { } if ($args{size}) { - type_safely "\t\t"; - # if we clicked on "raidlevel" before, we need to type only two tabs, - # otherwise size input box is still one tab away - if (!$args{raid1}) { - send_key "tab"; - } + assert_and_click "anaconda_blivet_size_unit"; + assert_and_click "anaconda_blivet_size_unit_mib"; + + send_key "shift-tab"; # input is one tab back from unit selection listbox + # size input can contain whole set of different values, so we can't match it with needle type_safely $args{size} . "\n"; } diff --git a/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.json b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.json new file mode 100644 index 00000000..f38c8415 --- /dev/null +++ b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "area": [ + { + "xpos": 712, + "ypos": 312, + "width": 21, + "height": 14, + "type": "match" + } + ], + "tags": [ + "anaconda_blivet_size_unit" + ] +} \ No newline at end of file diff --git a/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.png b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.png new file mode 100644 index 00000000..3676f8df Binary files /dev/null and b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit-gib-selected-20170504.png differ diff --git a/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.json b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.json new file mode 100644 index 00000000..28fbdd73 --- /dev/null +++ b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "area": [ + { + "xpos": 707, + "ypos": 284, + "width": 25, + "height": 14, + "type": "match" + } + ], + "tags": [ + "anaconda_blivet_size_unit_mib" + ] +} \ No newline at end of file diff --git a/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.png b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.png new file mode 100644 index 00000000..de5cbf39 Binary files /dev/null and b/needles/anaconda/partitioning/blivet/anaconda_blivet_size_unit_mib-20170504.png differ