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,25 +3,18 @@ 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
|
||||
assert_screen 'apps_run_fmw';
|
||||
# Register application
|
||||
register_application('fedora-media-writer');
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
else {
|
||||
diag("Fedora Media Writer is not installed on Workstation by default. Skipping test.");
|
||||
}
|
||||
# Start the application
|
||||
start_with_launcher('apps_menu_fmw');
|
||||
# Check that is started
|
||||
assert_screen 'apps_run_fmw';
|
||||
# Register application
|
||||
register_application('fedora-media-writer');
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
|
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