From 2f0e75ed26705166764fcdbbf9b730d29a731a53 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 4 Nov 2021 10:47:34 -0700 Subject: [PATCH] freeipa_webui: handle scrolling for add_user button In https://openqa.fedoraproject.org/tests/1051360 Firefox showed an "Open previous tabs?" bar which put this button just off the bottom of the screen, so we need to scroll to it if that happens. Signed-off-by: Adam Williamson --- tests/freeipa_webui.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/freeipa_webui.pm b/tests/freeipa_webui.pm index 142b72dd..232af2e4 100644 --- a/tests/freeipa_webui.pm +++ b/tests/freeipa_webui.pm @@ -22,6 +22,9 @@ sub run { type_safely "allow-test3"; type_safely "\t\t\t"; send_key "ret"; + # if firefox shows a stupid infobar or something this is juuust + # offscreen + send_key_until_needlematch("freeipa_webui_policy_add_user", "down", 3, 3); assert_and_click "freeipa_webui_policy_add_user"; wait_still_screen 2; # filter users