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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-11-04 10:47:34 -07:00
parent a4737f13ad
commit 2f0e75ed26
1 changed files with 3 additions and 0 deletions

View File

@ -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