Skip to content

Commit

Permalink
firefox: Add wait time and define timeout due to blinking cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
dzedro committed Aug 9, 2020
1 parent b4000e0 commit f8cb456
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions lib/x11test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,9 @@ sub start_firefox_with_profile {
type_string "killall -9 firefox;rm -rf .mozilla .config/iced* .cache/iced* .local/share/gnome-shell/extensions/*;cp -rp .mozilla_first_run .mozilla\n";
# Start Firefox
type_string "firefox $url >firefox.log 2>&1 &\n";
wait_still_screen 3;
wait_still_screen 2, 4;
assert_screen 'firefox-url-loaded', 300;
wait_still_screen 2, 4;
}

sub start_firefox {
Expand Down Expand Up @@ -672,7 +673,8 @@ sub firefox_open_url {
my $counter = 1;
while (1) {
# make sure firefox window is focused
wait_screen_change { assert_and_click 'firefox_titlebar' };
assert_and_click 'firefox_titlebar';
wait_still_screen 1, 2;
send_key 'alt-d';
send_key 'delete';
send_key 'alt-d';
Expand Down
5 changes: 2 additions & 3 deletions tests/x11/firefox/firefox_downloading.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ my $dl_link_02 = "http://mirrors.kernel.org/opensuse/distribution/leap/15.0/iso/

sub dl_location_switch {
my ($tg) = @_;
wait_screen_change {
send_key "alt-e";
};
send_key "alt-e";
wait_still_screen 2, 4;
send_key "n";
assert_screen('firefox-preferences');

Expand Down
3 changes: 2 additions & 1 deletion tests/x11/firefox/firefox_extensions.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SUSE's openQA tests
#
# Copyright © 2009-2013 Bernhard M. Wiedemann
# Copyright © 2012-2019 SUSE LLC
# Copyright © 2012-2020 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -39,6 +39,7 @@ sub run {
assert_and_click "firefox-extensions";
assert_and_click 'firefox-searchall-addon';
type_string "flagfox\n";
wait_still_screen 2, 4;
assert_and_click 'firefox-extensions-flagfox';
wait_still_screen 3;
assert_and_click 'firefox-extensions-add-to-firefox';
Expand Down
4 changes: 2 additions & 2 deletions tests/x11/firefox/firefox_passwd.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SUSE's openQA tests
#
# Copyright © 2009-2013 Bernhard M. Wiedemann
# Copyright © 2012-2019 SUSE LLC
# Copyright © 2012-2020 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -46,7 +46,7 @@ sub run {
$self->start_firefox_with_profile;

send_key "alt-e";
wait_still_screen 3;
wait_still_screen 2, 4;
send_key "n";
assert_and_click('firefox-passwd-security');

Expand Down

0 comments on commit f8cb456

Please sign in to comment.