realmd_join_cockpit: only hit tab twice for Cockpit 245+

Since 232, there's been a bug where we need to hit tab three
times to get into the first field in the "Join domain" dialog.
In 245, it's down to two times, for some reason. So, handle
that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-05-26 17:46:04 -07:00
parent c8004201ae
commit f38dc4cfe1

View File

@ -45,9 +45,12 @@ sub run {
assert_and_click "cockpit_join_domain_button", 5; assert_and_click "cockpit_join_domain_button", 5;
} }
assert_screen "cockpit_join_domain"; assert_screen "cockpit_join_domain";
my $tabs = "\t";
# we need to hit tab three times to reach 'Domain address' in # we need to hit tab three times to reach 'Domain address' in
# cockpit 232: https://github.com/cockpit-project/cockpit/issues/14895 # cockpit 232-244: https://github.com/cockpit-project/cockpit/issues/14895
my $tabs = $cockpitver > 231 ? "\t\t\t" : "\t"; $tabs = "\t\t\t" if ($cockpitver > 231);
# ...in 245+ it's down to two times, for some reason
$tabs = "\t\t" if ($cockpitver > 244);
type_string($tabs, 4); type_string($tabs, 4);
type_string("ipa001.test.openqa.fedoraproject.org", 4); type_string("ipa001.test.openqa.fedoraproject.org", 4);
type_string("\t\t", 4); type_string("\t\t", 4);