mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-11 19:15:45 +00:00
Create startstop tests for XFCE
This commit is contained in:
parent
c9110215e3
commit
eaedad5efa
@ -681,7 +681,12 @@ my ($command) = @_;
|
|||||||
my $desktop = get_var('DESKTOP');
|
my $desktop = get_var('DESKTOP');
|
||||||
|
|
||||||
# Open the launching page or menu
|
# Open the launching page or menu
|
||||||
send_key 'alt-f1';
|
if ($desktop eq 'xfce') {
|
||||||
|
send_key 'alt-f2';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
send_key 'alt-f1';
|
||||||
|
}
|
||||||
sleep 2;
|
sleep 2;
|
||||||
|
|
||||||
# Type the command name to run the application
|
# Type the command name to run the application
|
||||||
|
15
needles/xfce/apps/terminal_runs.json
Normal file
15
needles/xfce/apps/terminal_runs.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"terminal_runs"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 5,
|
||||||
|
"ypos": 37,
|
||||||
|
"width": 31,
|
||||||
|
"height": 20,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/xfce/apps/terminal_runs.png
Normal file
BIN
needles/xfce/apps/terminal_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 KiB |
33
tests/apps_startstop/xfce/terminal.pm
Normal file
33
tests/apps_startstop/xfce/terminal.pm
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
|
||||||
|
# This test checks that XCFE4-terminal starts.
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
my $mode = get_var('MODE');
|
||||||
|
|
||||||
|
# Start the application
|
||||||
|
if ($mode eq 'fast') {
|
||||||
|
start_with_command 'xfce4-terminal';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||||
|
sleep 1;
|
||||||
|
}
|
||||||
|
# Check that it is started
|
||||||
|
assert_screen 'terminal_runs';
|
||||||
|
# Close the application
|
||||||
|
quit_with_shortcut();
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
return {always_rollback => 1};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user