From f38dc4cfe1f89178947ce9b121bd9376403390dc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 26 May 2021 17:46:04 -0700 Subject: [PATCH] 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 --- tests/realmd_join_cockpit.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/realmd_join_cockpit.pm b/tests/realmd_join_cockpit.pm index 6b4f7051..959566a9 100644 --- a/tests/realmd_join_cockpit.pm +++ b/tests/realmd_join_cockpit.pm @@ -45,9 +45,12 @@ sub run { assert_and_click "cockpit_join_domain_button", 5; } assert_screen "cockpit_join_domain"; + my $tabs = "\t"; # we need to hit tab three times to reach 'Domain address' in - # cockpit 232: https://github.com/cockpit-project/cockpit/issues/14895 - my $tabs = $cockpitver > 231 ? "\t\t\t" : "\t"; + # cockpit 232-244: https://github.com/cockpit-project/cockpit/issues/14895 + $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("ipa001.test.openqa.fedoraproject.org", 4); type_string("\t\t", 4);