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:
parent
e51c454e3b
commit
a5dffbb33b
15
needles/gnome/apps/apps_run_fmw-graphic-20250227.json
Normal file
15
needles/gnome/apps/apps_run_fmw-graphic-20250227.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"height": 87,
|
||||||
|
"width": 85,
|
||||||
|
"type": "match",
|
||||||
|
"ypos": 182,
|
||||||
|
"xpos": 403
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"apps_run_fmw"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/apps/apps_run_fmw-graphic-20250227.png
Normal file
BIN
needles/gnome/apps/apps_run_fmw-graphic-20250227.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
@ -3,13 +3,10 @@ use strict;
|
|||||||
use testapi;
|
use testapi;
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
# This test checks that Fedora Media Writer starts
|
# This test checks that Fedora Media Writer starts.
|
||||||
# on Silverblue.
|
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $subvariant = get_var("SUBVARIANT");
|
|
||||||
if ($subvariant eq "Silverblue") {
|
|
||||||
# Start the application
|
# Start the application
|
||||||
start_with_launcher('apps_menu_fmw');
|
start_with_launcher('apps_menu_fmw');
|
||||||
# Check that is started
|
# Check that is started
|
||||||
@ -19,10 +16,6 @@ sub run {
|
|||||||
# Close the application
|
# Close the application
|
||||||
quit_with_shortcut();
|
quit_with_shortcut();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
diag("Fedora Media Writer is not installed on Workstation by default. Skipping test.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
return {};
|
return {};
|
||||||
|
25
tests/apps_startstop/kde/fmw.pm
Normal file
25
tests/apps_startstop/kde/fmw.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user