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-08-13 19:32:17 +00:00
|
|
|
return unless ($version ne "Rawhide" && $version lt $rawrel);
|
2024-06-19 19:17:17 +00:00
|
|
|
# KDE shows a different version of the welcome center on major upgrades,
|
|
|
|
# which breaks this test
|
|
|
|
click_lastmatch if (get_var("DESKTOP") eq "kde" && get_var("ADVISORY_OR_TASK") && check_screen "kde_ok", 5);
|
|
|
|
assert_screen "${version}_background";
|
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:
|