1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-05-14 12:41:34 +00:00

startstop: test fmw on Workstation and KDE

When we added fmw to apps_startstop tests it was only preinstalled
on Silverblue, but now it's on KDE and Workstation too.

Also includes a needle that matches on part of the UI, which
will work on all desktops.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-02-27 15:24:15 -08:00
parent e51c454e3b
commit a5dffbb33b
4 changed files with 49 additions and 16 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 87,
"width": 85,
"type": "match",
"ypos": 182,
"xpos": 403
}
],
"properties": [],
"tags": [
"apps_run_fmw"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -3,13 +3,10 @@ use strict;
use testapi;
use utils;
# This test checks that Fedora Media Writer starts
# on Silverblue.
# This test checks that Fedora Media Writer starts.
sub run {
my $self = shift;
my $subvariant = get_var("SUBVARIANT");
if ($subvariant eq "Silverblue") {
# Start the application
start_with_launcher('apps_menu_fmw');
# Check that is started
@ -19,10 +16,6 @@ sub run {
# Close the application
quit_with_shortcut();
}
else {
diag("Fedora Media Writer is not installed on Workstation by default. Skipping test.");
}
}
sub test_flags {
return {};

View File

@ -0,0 +1,25 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Fedora Media Writer starts.
sub run {
my $self = shift;
# Start the application
menu_launch_type 'mediawriter';
# Check that is started
assert_screen 'apps_run_fmw';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {};
}
1;
# vim: set sw=4 et: