2019-08-14 21:30:25 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
2019-08-14 21:42:18 +00:00
|
|
|
use utils;
|
2019-08-14 21:30:25 +00:00
|
|
|
|
|
|
|
sub run {
|
Add desktop login test, revise and rename check_desktop
This adds a new test that implementsQA:Testcase_desktop_login
on both GNOME and KDE.
While working on this, we realized that the "desktop_clean"
needles were really "app menu" needles, and for KDE, this was
a duplication with the new "system menu" needles, because on KDE
the app menu and the system menu are the same. So I (Adam)
started to de-duplicate that, but also realized that "app menu
button" is a much more accurate name for these needles, so I was
renaming the old desktop_clean needles to app_menu_button. That
led me to the realization that "check_desktop_clean" is itself a
dumb name, because we don't (at least, any more, way back in the
mists of time we may have done) do anything to check that the
desktop is "clean" - we're really just asserting that we're at a
desktop *at all*. While thinking *that* through, I *also* realized
that the whole "open the overview and look for the app grid icon"
workaround it did is no longer necessary, because GNOME doesn't
use a translucent top bar any more. That went away in GNOME 3.32,
which is in Fedora 30, our oldest supported release.
So I threw that away, renamed the function "check_desktop",
cleaned up all the needle naming and tagging, and also added an
app menu needle for GNOME in Japanese because we were missing
one (the Japanese tests have been using the "app grid icon"
workaround the whole time).
2020-03-20 09:04:43 +00:00
|
|
|
check_desktop;
|
2019-08-14 21:30:25 +00:00
|
|
|
# If we want to check that there is a correct background used, as a part
|
|
|
|
# of self identification test, we will do it here. For now we don't do
|
|
|
|
# this for Rawhide as Rawhide doesn't have its own backgrounds and we
|
|
|
|
# don't have any requirement for what background Rawhide uses.
|
|
|
|
my $version = get_var('VERSION');
|
2022-04-26 23:12:55 +00:00
|
|
|
my $rawrel = get_var('RAWREL');
|
2024-02-14 08:43:46 +00:00
|
|
|
if ($version ne "Rawhide" && $version ne $rawrel) {
|
|
|
|
unless (check_screen "${version}_background", 30) {
|
|
|
|
if ($version eq "40") {
|
|
|
|
record_soft_failure "No backgrounds for F40 yet: https://bugzilla.redhat.com/show_bug.cgi?id=2230720";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
die "Correct background not found!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 21:30:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1};
|
2019-08-14 21:30:25 +00:00
|
|
|
}
|
2019-08-14 21:43:23 +00:00
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|