1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00

Add Nautilus tests to the Core Apps Test Suite

This commit brings the Nautiuls test which
tests the basic functionality of Nautilus and
can be used for testing of core applications in
Gnome based desktop. Set of needles is included.
This commit is contained in:
Lukas Ruzicka 2018-05-17 17:19:18 +02:00
parent d661eaaad4
commit e0f488febb
61 changed files with 538 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"check_for_undo"
],
"area": [
{
"xpos": 528,
"ypos": 426,
"width": 155,
"height": 28,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 320,
"ypos": 308,
"width": 47,
"height": 36,
"type": "match"
}
],
"tags": [
"directory_choosen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"directory_chosen"
],
"area": [
{
"xpos": 320,
"ypos": 310,
"width": 46,
"height": 33,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"directory_created"
],
"area": [
{
"xpos": 298,
"ypos": 201,
"width": 85,
"height": 51,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 270,
"ypos": 160,
"width": 108,
"height": 19,
"type": "match"
}
],
"tags": [
"directory_line"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"directory_renamed"
],
"area": [
{
"xpos": 300,
"ypos": 210,
"width": 83,
"height": 42,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 921,
"ypos": 68,
"width": 43,
"height": 39,
"type": "match"
}
],
"tags": [
"exit_button"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 528,
"ypos": 426,
"width": 156,
"height": 26,
"type": "match"
}
],
"tags": [
"folder_empty"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 570,
"ypos": 341,
"width": 69,
"height": 67,
"type": "match"
}
],
"tags": [
"gone_from_starred"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 78,
"ypos": 209,
"width": 24,
"height": 20,
"type": "match"
}
],
"tags": [
"home_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 177,
"ypos": 86,
"width": 67,
"height": 23,
"type": "match"
}
],
"tags": [
"homedir"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"is_starred"
],
"area": [
{
"xpos": 916,
"ypos": 159,
"width": 22,
"height": 21,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 164,
"ypos": 88,
"width": 90,
"height": 18,
"type": "match"
}
],
"tags": [
"is_starred_dir"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 31,
"ypos": 447,
"width": 32,
"height": 40,
"type": "match"
}
],
"tags": [
"nautilus_launcher"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"nautilus_quit"
],
"area": [
{
"xpos": 397,
"ypos": 274,
"width": 75,
"height": 53,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"new_directory_chosen"
],
"area": [
{
"xpos": 265,
"ypos": 167,
"width": 36,
"height": 23,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"new_folder_dialogue"
],
"area": [
{
"xpos": 472,
"ypos": 314,
"width": 80,
"height": 17,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 874,
"ypos": 85,
"width": 26,
"height": 24,
"type": "match"
}
],
"tags": [
"open_menu"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 401,
"ypos": 313,
"width": 59,
"height": 31,
"type": "match"
}
],
"tags": [
"rename_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"rename_dialogue"
],
"area": [
{
"xpos": 407,
"ypos": 315,
"width": 52,
"height": 15,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"search_button"
],
"area": [
{
"xpos": 794,
"ypos": 85,
"width": 24,
"height": 24,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 387,
"ypos": 132,
"width": 31,
"height": 22,
"type": "match"
}
],
"tags": [
"search_field"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 351,
"ypos": 521,
"width": 36,
"height": 19,
"type": "match"
}
],
"tags": [
"star"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

View File

@ -0,0 +1,15 @@
{
"tags": [
"starred_button"
],
"area": [
{
"xpos": 79,
"ypos": 171,
"width": 74,
"height": 20,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"starred_directory_line"
],
"area": [
{
"xpos": 268,
"ypos": 158,
"width": 102,
"height": 24,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 835,
"ypos": 84,
"width": 23,
"height": 24,
"type": "match"
}
],
"tags": [
"toggle_view_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 244,
"ypos": 160,
"width": 126,
"height": 37,
"type": "match"
}
],
"tags": [
"toggled_view"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 763,
"ypos": 245,
"width": 81,
"height": 17,
"type": "match"
}
],
"tags": [
"undo_trash"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 247,
"ypos": 160,
"width": 122,
"height": 20,
"type": "match"
}
],
"tags": [
"undone_trash"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"area": [
{
"xpos": 346,
"ypos": 522,
"width": 53,
"height": 19,
"type": "match"
}
],
"tags": [
"unstar"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

88
tests/desktop_nautilus.pm Normal file
View File

@ -0,0 +1,88 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test will test the basic functionality of Nautilus.
# Nautilus is one of the core applications. Preferably this test should
# be one of several that will be chained in order to test
# the core applications in Fedora Workstation.
sub run {
my $self = shift;
check_desktop_clean;
# switch on the activity screen
send_key 'alt-f1';
# wait out animations
wait_still_screen 2;
# run the application and check that the window appears
assert_and_click 'nautilus_launcher';
wait_still_screen 2;
# enter one of thhe directories
assert_and_click 'directory_chosen';
send_key 'ret';
# create a new directory using the keyboard shortcut
send_key 'ctrl-shift-n';
wait_still_screen 2;
# check that the new folder dialogue box appears,
# type the folder name and press enter
assert_screen 'new_folder_dialogue';
type_very_safely "testing";
send_key 'ret';
wait_still_screen 2;
# check that the directory has been created
assert_screen 'directory_created';
# rename the folder, check for the rename window,
# type the new folder name and press the button,
# check that it has been renamed
send_key 'f2';
assert_screen 'rename_dialogue';
type_very_safely "renamed";
assert_and_click 'rename_button';
assert_screen 'directory_renamed';
# test the search button
assert_and_click 'search_button';
assert_screen 'search_field';
assert_and_click 'search_button';
# check the toggle view
assert_and_click 'toggle_view_button';
assert_screen 'toggled_view';
# choose the directory and delete it
assert_and_click 'new_directory_chosen';
send_key 'delete';
assert_screen 'folder_empty';
# undo the deletion and check that the directory
# appears again at the same place
assert_and_click 'open_menu';
assert_and_click 'undo_trash';
assert_screen 'undone_trash';
# rightclick on the directory to open the menu
# and star the directory. check that it appears
# in the Starred folder.
assert_and_click 'directory_line','right';
assert_and_click 'star';
assert_screen 'is_starred';
assert_and_click 'starred_button';
assert_screen 'is_starred_dir';
# unstar the directory and check that it disappears
# from the Starred directory again
assert_and_click 'starred_directory_line','right';
assert_and_click 'unstar';
assert_screen 'gone_from_starred';
# Check the left menu functions by
# clicking on Home to navigate to the Home directory
assert_and_click 'home_button';
assert_screen 'homedir';
# Close the application via the Exit icon
# and check that it finished.
assert_and_click 'exit_button';
assert_screen 'nautilus_quit'
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: