Compare commits

..

4 Commits

Author SHA1 Message Date
Lukas Ruzicka 15b65cd88c Add a 'navigation' test for GNOME.
This PR partly solves the issue #301 when it adds the navigation
testing for Gnome. It uses the keyboard combinations to cycle through
running applications and checks that applications could be switched
accordingly. It also tests that you can switch between workspaces
and that you can move an applications to another workspace.
2024-04-08 18:00:18 -07:00
Adam Williamson d74fd9e6b4 Update some GNOME needles too
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-08 13:21:08 -07:00
Adam Williamson 3ca5816696 Update some more needles for KDE
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-08 13:18:03 -07:00
Adam Williamson d0912fd217 Fix blivet preserve_home test templates for UEFI switchover
Somehow these two got completely scrambled, testing the wrong
things on the wrong images. Fix them to match the non-blivet
counterparts, which are correct.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-08 12:19:51 -07:00
52 changed files with 214 additions and 108 deletions

View File

@ -219,7 +219,7 @@ testtags.extend(f"anaconda_help_{fsys}" for fsys in ('install_destination',
'root_password', 'select_packages', 'installation_source', 'time_date', 'user_creation',
'language_selection', 'language', 'summary_link'))
# for Gnome navigation test
for app in ("clocks", "firefox", "fonts", "terminal", "editor"):
for app in ("calculator", "clocks", "files", "terminal", "editor"):
testtags.append(f"navigation_navibar_{app}")
testtags.append("navigation_terminal_fullscreen")
testtags.extend(f"anaconda_main_hub_{fsys}" for fsys in ('language_support', 'selec_packages',

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 149,
"xpos": 442,
"ypos": 460,
"type": "match",
"height": 111
}
],
"properties": [],
"tags": [
"loupe_image_rotated_left"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 347,
"width": 102,
"type": "match",
"height": 318,
"ypos": 355
}
],
"properties": [],
"tags": [
"maps_route_bike_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 354,
"height": 318,
"type": "match",
"width": 102,
"xpos": 347
}
],
"properties": [],
"tags": [
"maps_route_bike_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"type": "match",
"height": 27,
"xpos": 515,
"ypos": 537,
"width": 103
},
{
"type": "match",
"xpos": 561,
"ypos": 424,
"height": 34,
"width": 40
}
],
"properties": [],
"tags": [
"navigation_details_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -1,22 +0,0 @@
{
"area": [
{
"xpos": 480,
"ypos": 561,
"width": 103,
"height": 138,
"type": "match"
},
{
"xpos": 557,
"ypos": 424,
"width": 51,
"height": 34,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_details_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 6,
"height": 67,
"width": 82,
"type": "match",
"ypos": 1
}
],
"properties": [],
"tags": [
"navigation_editor_fullscreen"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"navigation_editor_fullscreen"
],
"area": [
{
"xpos": 6,
"ypos": 1,
"width": 82,
"height": 67,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 4,
"ypos": 4,
"width": 124,
"height": 65,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_files_fullscreen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"navigation_firefox_fullscreen"
],
"area": [
{
"xpos": 101,
"ypos": 11,
"width": 108,
"height": 56,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 316,
"ypos": 355,
"width": 111,
"height": 52,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_navibar_calculator"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,10 +1,10 @@
{
"area": [
{
"xpos": 449,
"ypos": 352,
"width": 125,
"height": 32,
"ypos": 352,
"xpos": 449,
"type": "match"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

View File

@ -1,11 +1,11 @@
{
"area": [
{
"xpos": 736,
"ypos": 353,
"width": 121,
"type": "match",
"height": 50,
"type": "match"
"xpos": 728,
"ypos": 353
}
],
"properties": [],

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 733,
"ypos": 356,
"width": 117,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_navibar_files"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 737,
"ypos": 341,
"width": 121,
"height": 34,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_navibar_firefox"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,10 +1,10 @@
{
"area": [
{
"xpos": 594,
"ypos": 341,
"width": 122,
"height": 34,
"xpos": 590,
"ypos": 341,
"type": "match"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

View File

@ -1,10 +1,10 @@
{
"area": [
{
"xpos": 448,
"ypos": 99,
"width": 127,
"height": 38,
"xpos": 448,
"ypos": 99,
"type": "match"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 215,
"xpos": 404,
"ypos": 532,
"type": "match",
"height": 33
}
],
"properties": [],
"tags": [
"tour_search"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 228,
"height": 157,
"type": "match",
"xpos": 451,
"width": 160
}
],
"properties": [],
"tags": [
"getting_started"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 880,
"width": 17,
"ypos": 728,
"type": "match",
"height": 18
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"desktop_expand_systray"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 871,
"width": 17,
"type": "match",
"height": 18,
"ypos": 728
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"desktop_expand_systray"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 730,
"height": 18,
"type": "match",
"xpos": 763,
"width": 18
}
],
"properties": [],
"tags": [
"desktop_update_notification_systray"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -1473,12 +1473,11 @@
},
"install_blivet_btrfs_preserve_home_bios": {
"profiles": {
"fedora-Server-dvd-iso-ppc64le-*-ppc64le": 40,
"fedora-Server-dvd-iso-x86_64-*-64bit": 40
"fedora-Server-dvd-iso-x86_64-*-bios": 41
},
"settings": {
"PARTITIONING": "custom_blivet_btrfs_preserve_home",
"HDD_1": "disk_f%CURRREL%_desktop_5_%ARCH%.qcow2",
"HDD_1": "disk_f%CURRREL%_minimal-bios_4_%ARCH%.qcow2",
"POSTINSTALL": "btrfs_preserve_home_check_content",
"ROOT_PASSWORD": "weakpassword"
}
@ -1486,11 +1485,11 @@
"install_blivet_btrfs_preserve_home": {
"profiles": {
"fedora-Server-dvd-iso-aarch64-*-aarch64": 40,
"fedora-Server-dvd-iso-x86_64-*-64bit": 41
"fedora-Server-dvd-iso-x86_64-*-64bit": 40
},
"settings": {
"PARTITIONING": "custom_blivet_btrfs_preserve_home",
"HDD_1": "disk_f%CURRREL%_minimal_4_%ARCH%.qcow2",
"HDD_1": "disk_f%CURRREL%_desktop_5_%ARCH%.qcow2",
"POSTINSTALL": "btrfs_preserve_home_check_content",
"ROOT_PASSWORD": "weakpassword"
}

View File

@ -11,12 +11,12 @@ sub run {
# Starting right over might result in erroneous behavior.
sleep(5);
# Start Firefox
menu_launch_type("firefox");
assert_screen "apps_run_firefox", 45;
# firefox is quite grindy on startup, let it settle
menu_launch_type("nautilus");
assert_screen "apps_run_files", 45;
# let it settle a bit
wait_still_screen(stilltime => 5, similarity_level => 45);
send_key("super-up");
assert_screen("navigation_firefox_fullscreen");
assert_screen("navigation_files_fullscreen");
# Start Gnome Text Editor
menu_launch_type("text-editor");

View File

@ -12,8 +12,8 @@ sub run {
# Starting right over might result in erroneous behavior.
sleep(5);
# If we are at Firefox switch to editor
if (check_screen("apps_run_firefox")) {
# If we are at Nautilus switch to editor
if (check_screen("apps_run_files")) {
send_key("alt-tab");
assert_screen "apps_run_editor";
}

View File

@ -66,7 +66,7 @@ sub run {
# window.
# Switch to the other application.
send_key("alt-tab");
assert_screen("apps_run_firefox");
assert_screen("apps_run_files");
# Switch back
send_key("alt-tab");
@ -86,8 +86,8 @@ sub run {
switch_to_app("clocks", "forward");
## Going backwards
# Switch to Firefox using shift-alt-tab
switch_to_app("firefox", "backward");
# Switch to Nautilus using shift-alt-tab
switch_to_app("files", "backward");
# Switch to Terminal using shift-alt-tab
switch_to_app("terminal", "backward");

View File

@ -41,13 +41,13 @@ sub run {
# Now, we will move the focused application (Editor) to the second workspace.
# The application will be still visible there. When we switch back, the application
# will no longer be visible on the first workspace and will uncover Firefox and
# will no longer be visible on the first workspace and will uncover Nautilus and
# we check that it is there. We will also enter the Activitities mode and will check
# that currently three workspaces can be used (top bar of the screen).
move_to_workspace("right");
die("The application was not moved!") unless (check_screen("apps_run_editor"));
switch_to_workspace("left");
die("The workspaces were not switched") unless (check_screen("apps_run_firefox"));
die("The workspaces were not switched") unless (check_screen("apps_run_files"));
send_key("super");
wait_still_screen(2);
assert_screen("navigation_three_workspaces");