1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Create the functionality test for Terminal

This commit is contained in:
Lukas Ruzicka 2018-11-29 09:19:56 +01:00
parent 2ca16ff759
commit 1a23f964b6
4 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 198,
"ypos": 211,
"width": 29,
"height": 14,
"type": "match"
}
],
"tags": [
"terminal_command_success"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

View File

@ -0,0 +1,36 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test tests if Terminal starts (via using Activities and its prompt) and performs several tasks to prove basic functionality of the application.
sub run {
my $self = shift;
send_key 'alt-f1';
# wait out animations
wait_still_screen 2;
# start the application
type_very_safely 'terminal';
send_key 'ret';
wait_still_screen 2;
# When the application opens, run a command to see that it accepts commands
type_very_safely 'ls /';
send_key 'ret';
wait_still_screen 2;
assert_screen 'terminal_command_success';
# close the application
send_key 'alt-f4';
}
# If this test fails, the others will probably start failing too,
# so there is no need to continue.
# Also, when subsequent tests fail, the suite will revert to this state for further testing.
#sub test_flags {
# return { fatal => 1, milestone => 1 };
#}
1;
# vim: set sw=4 et:

View File

@ -21,7 +21,7 @@ sub run {
} }
sub test_flags { sub test_flags {
return { fatal => 1 }; return { fatal => 1, milestone => 1};
} }
1; 1;