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 {
|
2024-06-20 13:39:34 +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-06-19 19:17:17 +00:00
|
|
|
return unless ($version ne "Rawhide" && $version ne $rawrel);
|
|
|
|
# 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:
|