From 2f0e75ed26705166764fcdbbf9b730d29a731a53 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Nov 04 2021 17:49:17 +0000 Subject: 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 --- diff --git a/tests/freeipa_webui.pm b/tests/freeipa_webui.pm index 142b72d..232af2e 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