1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 13:33:08 +00:00

desktop_browser: handle addon add button not always being visible

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-01-26 22:58:14 -08:00
parent 0bda4ad073
commit f2e87cd128

View File

@ -67,6 +67,9 @@ sub run {
wait_still_screen(stilltime => 2, similarity_level => 45);
sleep 2;
type_very_safely "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/\n";
# sometimes there's some stupid header taking up space and we
# need to scroll down to see the 'add' button
send_key_until_needlematch "firefox_addon_add", "pgdn", 3, 5;
assert_and_click "firefox_addon_add";
assert_and_click "firefox_addon_install";
assert_and_click "firefox_addon_success";