mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-03 15:04:22 +00:00
a8ddc002f8
Summary: pretty simple stuff here. The distinction between 'firefox' and 'browser' is that the 'browser' needles I expect would also be correct for other default browsers, while the 'firefox' needles are specific to Firefox. We need '-kde' variants of some Firefox needles where interface text is included, because the font is Cantarell in GNOME but whatever the default 'sans' font is in KDE - I suppose we should really use -thatfontsname rather than -kde, but I can't think what it's called... I couldn't do the 'log in to FAS' bit of the test since we don't really have a sane way to provide a password while not exposing it to the public. Test Plan: Run the test, check it works - for both KDE and Workstation. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D938
58 lines
2.0 KiB
Perl
58 lines
2.0 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
assert_screen 'graphical_desktop_clean';
|
|
send_key 'alt-f1';
|
|
# wait out animations
|
|
wait_still_screen 2;
|
|
assert_and_click 'browser_launcher';
|
|
assert_screen 'browser';
|
|
# open a new tab so we don't race with the default page load
|
|
# (also focuses the location bar for us)
|
|
send_key 'ctrl-t';
|
|
wait_still_screen 2;
|
|
# check FAS
|
|
type_string "https://admin.fedoraproject.org/accounts/\n";
|
|
assert_screen "browser_fas_home";
|
|
send_key 'ctrl-t';
|
|
wait_still_screen 2;
|
|
type_string "https://kernel.org\n";
|
|
assert_and_click "browser_kernelorg_patch";
|
|
assert_and_click "browser_download_save";
|
|
send_key 'ret';
|
|
# browsers do...something...when the download completes, and we
|
|
# expect there's a single click to make it go away and return
|
|
# browser to a state where ctrl-t will work
|
|
assert_and_click "browser_download_complete";
|
|
# we'll check it actually downloaded later
|
|
# add-on test: at present all desktops we test (KDE, GNOME) are
|
|
# using Firefox by default so we do this unconditionally, but we
|
|
# may need to conditionalize it if we ever test desktops whose
|
|
# default browser doesn't support add-ons or uses different ones
|
|
send_key 'ctrl-t';
|
|
wait_still_screen 2;
|
|
type_string "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/\n";
|
|
assert_and_click "firefox_addon_add";
|
|
assert_and_click "firefox_addon_install";
|
|
assert_and_click "firefox_addon_success";
|
|
# go to a console and check download worked
|
|
$self->root_console(tty=>3);
|
|
my $user = get_var("USER_LOGIN", "test");
|
|
assert_script_run "test -e /home/$user/Downloads/patch-*.xz";
|
|
}
|
|
|
|
sub test_flags {
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|