Skip to content

Commit

Permalink
Use our own testsite in firefox html5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Jul 15, 2022
1 parent 9c45178 commit bf72d10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
1 change: 1 addition & 0 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,7 @@ sub load_x11_other {
}

sub load_x11_webbrowser {
loadtest "x11/firefox/firefox_html5";
loadtest "x11/firefox/firefox_smoke";
loadtest "x11/firefox/firefox_urlsprotocols";
loadtest "x11/firefox/firefox_downloading";
Expand Down
25 changes: 4 additions & 21 deletions tests/x11/firefox/firefox_html5.pm
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# SUSE's openQA tests
#
# Copyright 2009-2013 Bernhard M. Wiedemann
# Copyright 2012-2021 SUSE LLC
# Copyright 2012-2022 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Package: MozillaFirefox
# Summary: Case#1479221: Firefox: HTML5 Video
# - Launch xterm, kill firefox, cleanup previous firefox configuration, launch
# firefox
# - Open "youtube.com/html5" and check result
# - Open "youtube.com/watch?v=Z4j5rJQMdOU" and check result
# - open test html5 video page
# - Exit firefox
# Maintainer: wnereiz <wnereiz@gmail.com>

Expand All @@ -22,24 +21,8 @@ sub run {
my ($self) = @_;
$self->start_firefox_with_profile;

$self->firefox_open_url('youtube.com/watch?v=Z4j5rJQMdOU');
while (check_screen([qw(firefox-youtube-signin firefox-accept-youtube-cookies)], 15)) {
if (match_has_tag('firefox-accept-youtube-cookies')) {
# get to the accept button with tab and space
wait_still_screen(2);
send_key_until_needlematch('firefox-accept-youtube-cookies-agree', 'tab', 7, 1);
assert_and_click('firefox-accept-youtube-cookies-agree');
wait_still_screen(2);
next;
}
elsif (match_has_tag('firefox-youtube-signin')) {
assert_and_click('firefox-youtube-signin');
wait_still_screen(2);
next;
}
last;
}
send_key_until_needlematch('firefox-testvideo', 'spc', 30, 5);
$self->firefox_open_url('asdil12.github.io/os-autoinst-distri-opensuse-testwebsites/html5_video');
assert_screen('firefox-testvideo');
$self->exit_firefox;
}
1;

0 comments on commit bf72d10

Please sign in to comment.