1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 13:33:08 +00:00

Extend the Navigation test for QA:Testcase_window_manager.

This commit is contained in:
Lukáš Růžička 2024-05-31 13:13:31 +02:00 committed by Adam Williamson
parent 2769fb7e58
commit d1be24572e
129 changed files with 1318 additions and 91 deletions

View File

@ -225,11 +225,13 @@ 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 ("calculator", "clocks", "files", "terminal", "editor"):
for app in ("calculator", "clocks", "files", "terminal", "text_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',
'time_date', 'create_user','keyboard_layout'))
for selection in ("hide", "maximize", "restore"):
testtags.append(f"calculator_context_{selection}")
# retcode tracker
ret = 0
@ -251,6 +253,7 @@ for needlepath in needlepaths:
needletags.update(needlejson["tags"])
if any(tag in testtags for tag in needlejson["tags"]):
continue
print(needlepath)
unused.append(needlepath)
# check for tags with no needle

View File

@ -1380,10 +1380,11 @@ sub menu_launch_type {
# Launch an application in a graphical environment, by opening a
# launcher, typing the specified string and hitting enter. Pass
# the string to be typed to launch whatever it is you want.
my $app = shift;
my ($app, $maximize) = @_;
my $desktop = get_var("DESKTOP");
my $key = 'super';
$key = 'alt-d' if (get_var("DESKTOP") eq "i3");
if (get_var("DESKTOP") eq "kde") {
$key = 'alt-d' if ($desktop eq "i3");
if ($desktop eq "kde") {
# To overcome BZ2097208, let's move the mouse out of the way
# and give the launcher some time to take the correct focus.
diag("Moving the mouse away from the launcher.");
@ -1397,6 +1398,21 @@ sub menu_launch_type {
wait_still_screen 2;
send_key 'ret';
wait_still_screen 3;
diag("Launcher: The application $app should have been launched.");
# If we should maximize the application
if ($maximize) {
if ($desktop eq "kde") {
send_key('super-pgup');
}
elsif ($desktop eq 'gnome') {
send_key('super-up');
}
else {
diag('Maximizing in this desktop is not supported at the moment!');
}
wait_still_screen 3;
diag("Maximizer: The application should have been maximized.");
}
}
sub tell_source {

View File

@ -0,0 +1,25 @@
{
"area": [
{
"width": 38,
"ypos": 112,
"type": "match",
"height": 16,
"xpos": 1
},
{
"type": "match",
"height": 14,
"xpos": 104,
"width": 10,
"ypos": 113
}
],
"properties": [],
"tags": [
"root_logged_in",
"root_console",
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 457,
"height": 18,
"type": "match",
"ypos": 118,
"width": 110
},
{
"width": 60,
"ypos": 116,
"xpos": 172,
"type": "match",
"height": 18
}
],
"properties": [],
"tags": [
"apps_run_text_editor"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 457,
"ypos": 118,
"width": 110,
"height": 18,
"type": "match"
},
{
"xpos": 172,
"ypos": 116,
"width": 60,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_text_editor"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

View File

@ -0,0 +1,16 @@
{
"properties": [],
"tags": [
"clocks_location_access"
],
"area": [
{
"xpos": 383,
"ypos": 306,
"width": 138,
"height": 22,
"type": "match",
"match": "94"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 422,
"ypos": 53,
"width": 68,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_tuxracer"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 335,
"ypos": 190,
"width": 35,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_context_hide"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 336,
"ypos": 229,
"width": 68,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_context_maximize"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 516,
"ypos": 150,
"width": 56,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_context_restore"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 5,
"height": 64,
"width": 89,
"xpos": 929,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_maximized"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 929,
"ypos": 5,
"width": 89,
"height": 64,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_maximized"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 77,
"xpos": 433,
"width": 91,
"ypos": 436
}
],
"properties": [],
"tags": [
"calculator_select_hidden"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 433,
"ypos": 436,
"width": 91,
"height": 77,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_select_hidden"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 470,
"ypos": 27,
"width": 59,
"height": 44,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_tiled_left"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 46,
"xpos": 506,
"width": 83,
"ypos": 25
}
],
"properties": [],
"tags": [
"calculator_tiled_right"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 25,
"type": "match",
"xpos": 464,
"height": 279,
"width": 83
}
],
"properties": [],
"tags": [
"calculator_tiled_right"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 279,
"ypos": 25,
"type": "match",
"xpos": 464,
"width": 83
}
],
"properties": [],
"tags": [
"calculator_tiled_right"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 506,
"ypos": 25,
"width": 83,
"height": 46,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_tiled_right"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 49,
"ypos": 124,
"type": "match",
"height": 17,
"xpos": 280
}
],
"properties": [],
"tags": [
"calculator_title_bar"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 280,
"ypos": 124,
"width": 49,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_title_bar"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 124,
"width": 72,
"height": 19,
"type": "match",
"xpos": 208
}
],
"properties": [],
"tags": [
"calculator_upper_edge"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 209,
"ypos": 124,
"width": 72,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"calculator_upper_edge"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 113,
"ypos": 44,
"type": "match",
"height": 21,
"xpos": 294,
"match": 94
}
],
"properties": [],
"tags": [
"editor_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 294,
"ypos": 44,
"width": 113,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"editor_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 102,
"xpos": 794,
"type": "match",
"width": 48,
"height": 153
}
],
"properties": [],
"tags": [
"files_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 794,
"ypos": 102,
"width": 48,
"height": 153,
"type": "match"
}
],
"properties": [],
"tags": [
"files_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

View File

@ -0,0 +1,31 @@
{
"area": [
{
"xpos": 88,
"type": "match",
"ypos": 89,
"width": 17,
"height": 18
},
{
"xpos": 991,
"type": "match",
"ypos": 88,
"width": 17,
"height": 18
},
{
"xpos": 380,
"height": 17,
"type": "match",
"width": 19,
"ypos": 124
}
],
"properties": [],
"tags": [
"firefox",
"browser",
"apps_run_firefox"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 14,
"ypos": 320,
"width": 69,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_filedialogue_videos"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 554,
"ypos": 528,
"width": 78,
"height": 220,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_details_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 121,
"type": "match",
"height": 50,
"xpos": 728,
"ypos": 353
}
],
"properties": [],
"tags": [
"navigation_navibar_editor"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 746,
"ypos": 362,
"width": 89,
"height": 45,
"type": "match"
}
],
"properties": [],
"tags": [
"navigation_navibar_text_editor"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 447,
"height": 38,
"type": "match",
"width": 127,
"ypos": 98
}
],
"properties": [],
"tags": [
"navigation_three_workspaces"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 38,
"width": 127,
"xpos": 448,
"type": "match",
"ypos": 96
}
],
"properties": [],
"tags": [
"navigation_three_workspaces"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 2,
"ypos": 246,
"width": 88,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"terminal_prompt"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 3,
"ypos": 244,
"width": 88,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"terminal_prompt"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 318,
"ypos": 367,
"width": 91,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"tuxracer_bunnyhill"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 257,
"ypos": 308,
"width": 120,
"height": 32,
"type": "match"
}
],
"properties": [],
"tags": [
"tuxracer_bunnyhill"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 316,
"ypos": 180,
"width": 108,
"height": 74,
"type": "match"
}
],
"properties": [],
"tags": [
"tuxracer_menu"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 329,
"ypos": 69,
"width": 147,
"height": 97,
"type": "match"
}
],
"properties": [],
"tags": [
"tuxracer_menu"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 962,
"ypos": 45,
"width": 37,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"video_add_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 105,
"width": 107,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"video_add_local_video"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 14,
"ypos": 44,
"width": 22,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"video_add_video"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 434,
"ypos": 684,
"width": 149,
"height": 46,
"type": "match"
}
],
"properties": [],
"tags": [
"video_first_stop"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 80,
"ypos": 6,
"type": "match",
"height": 107,
"xpos": 879
}
],
"properties": [],
"tags": [
"video_fullscreen_off"
]
}

Some files were not shown because too many files have changed in this diff Show More