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

Compare commits

...

5 Commits

Author SHA1 Message Date
Lukas Ruzicka
4233d6cc7c Create a test for KDE KCalc. 2024-11-13 16:44:19 +01:00
Lukas Ruzicka
725c9b67b6 Tidy script 2024-11-13 16:42:30 +01:00
Adam Williamson
6b8f8daf3a Robustify /boot selection in blivet_btrfs_preserve_home
This is failing often since the Wayland port, add a second click
if the first doesn't select the partition.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-12 11:35:21 -08:00
Adam Williamson
e9e6923513 Update Firefox exit dialog needle for recent Firefox
This is causing softfails and sometimes failures in various tests
especially Cockpit AD enrolment.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-12 10:48:43 -08:00
Adam Williamson
0a20118727 Update various needles for GTK 4.17
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-12 10:46:36 -08:00
101 changed files with 923 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 339,
"ypos": 346,
"width": 116,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_blivet_part_boot_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 78,
"ypos": 207,
"type": "match",
"xpos": 631,
"height": 14
}
],
"properties": [],
"tags": [
"apps_run_firefox_stop",
"firefox_close_tabs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View File

@ -0,0 +1,20 @@
{
"area": [
{
"type": "match",
"height": 64,
"xpos": 229,
"ypos": 159,
"width": 137
}
],
"properties": [
{
"name": "workaround",
"value": "icon seems wrong, will report"
}
],
"tags": [
"archiver_archive_created"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 275,
"xpos": 431,
"type": "match",
"height": 22,
"width": 74
}
],
"properties": [],
"tags": [
"contacts_entry_add_name"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 126,
"height": 19,
"type": "match",
"xpos": 463,
"ypos": 621
}
],
"properties": [],
"tags": [
"contacts_entry_add_phone"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 201,
"xpos": 10,
"type": "match",
"height": 22,
"width": 123
}
],
"properties": [],
"tags": [
"gte_found_text"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 187,
"type": "match",
"xpos": 33,
"height": 113,
"width": 334
}
],
"properties": [],
"tags": [
"gte_grid_on"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 67,
"type": "match",
"height": 18,
"xpos": 51,
"ypos": 134
}
],
"properties": [],
"tags": [
"gte_line_title"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 39,
"type": "match",
"height": 17,
"xpos": 186,
"ypos": 204
}
],
"properties": [],
"tags": [
"gte_line_word"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 203,
"xpos": 1,
"type": "match",
"height": 40,
"width": 347
}
],
"properties": [],
"tags": [
"gte_text_added"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 52,
"type": "match",
"xpos": 182,
"height": 24,
"ypos": 199
}
],
"properties": [],
"tags": [
"gte_text_replaced"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 119,
"xpos": 401,
"ypos": 349,
"width": 198
}
],
"properties": [],
"tags": [
"maps_found_wellington"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 197,
"type": "match",
"xpos": 407,
"height": 162,
"ypos": 419
}
],
"properties": [],
"tags": [
"maps_map_zoomed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 800 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 419,
"height": 162,
"type": "match",
"xpos": 407,
"width": 197
}
],
"properties": [],
"tags": [
"maps_map_zoomed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 417,
"type": "match",
"height": 147,
"xpos": 319,
"width": 73
}
],
"properties": [],
"tags": [
"maps_route_walk_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 17,
"type": "match",
"xpos": 447,
"height": 15,
"width": 131
}
],
"properties": [],
"tags": [
"abrt_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 404,
"ypos": 223,
"width": 51,
"height": 24,
"type": "match"
},
{
"xpos": 362,
"ypos": 273,
"width": 56,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_about_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 542,
"ypos": 281,
"width": 48,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_authors"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 358,
"ypos": 348,
"width": 136,
"height": 25,
"type": "match"
},
{
"xpos": 362,
"ypos": 416,
"width": 169,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_authors_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 360,
"ypos": 325,
"width": 95,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_submenu_about"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 353,
"ypos": 140,
"width": 36,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"kde_mainmenu_help"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 350,
"ypos": 170,
"width": 200,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_help_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 551,
"ypos": 394,
"width": 21,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_add"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 714,
"ypos": 489,
"width": 17,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_bclose"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 713,
"ypos": 425,
"width": 17,
"height": 28,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_bopen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 344,
"ypos": 309,
"width": 22,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_div"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 346,
"ypos": 309,
"width": 17,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_divider"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 340,
"ypos": 364,
"width": 25,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_eight"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 552,
"ypos": 515,
"width": 19,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_equals"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 344,
"ypos": 425,
"width": 22,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_five"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 238,
"ypos": 426,
"width": 25,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_four"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 447,
"ypos": 309,
"width": 23,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_multi"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 446,
"ypos": 366,
"width": 22,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_nine"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 241,
"ypos": 486,
"width": 18,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_one"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 237,
"ypos": 304,
"width": 25,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_percent"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 241,
"ypos": 365,
"width": 19,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_seven"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 446,
"ypos": 423,
"width": 21,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_six"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 550,
"ypos": 310,
"width": 22,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_sub"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 446,
"ypos": 483,
"width": 20,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_three"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 344,
"ypos": 485,
"width": 19,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_two"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 292,
"ypos": 546,
"width": 19,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_button_zero"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 798,
"ypos": 184,
"width": 25,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_3LAG3"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 795,
"ypos": 185,
"width": 27,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_Czo4s"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 786,
"ypos": 186,
"width": 35,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_b5y2B"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 800,
"ypos": 187,
"width": 24,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_h7MfO"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 799,
"ypos": 188,
"width": 23,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_tWshx"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 804,
"ypos": 184,
"width": 22,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"kcalc_result_uC8Ul"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

View File

@ -1269,6 +1269,17 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"kcalc": {
"profiles": {
"fedora-KDE-live-iso-x86_64-*-64bit": 30
},
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"POSTINSTALL_PATH": "tests/applications/kcalc",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"maps": {
"profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

View File

@ -35,7 +35,7 @@ sub run {
wait_still_screen 3;
# Lately, there were glitches making the cursor skip
# the Workstation field and the test would fail,
# the Workstation field and the test would fail,
# let's bring the cursor home to make sure it will
# pass all options.
send_key("home");

View File

@ -0,0 +1,26 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script starts the KCalc application
# and saves the milestone for the consequtive
# tests.
sub run {
my $self = shift;
# Run the application
menu_launch_type("kcalc");
assert_screen("kcalc_runs");
# wait for system to settle before snapshotting
sleep 10;
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,31 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script checks that Gnome Calculator shows About.
sub run {
my $self = shift;
# Let's wait until everything settles down properly
# before we start testing.
sleep 5;
# Open the menu and click on the About item.
assert_and_click("kde_mainmenu_help");
wait_still_screen(2);
assert_and_click("kcalc_submenu_about");
# Check that it is shown.
assert_screen("kcalc_about_shown");
# Click on the Credits button and check that it shows.
assert_and_click("kcalc_authors");
assert_screen("kcalc_authors_shown");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,30 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script checks that Gnome Calculator shows help.
sub run {
my $self = shift;
# Wait until everything settles.
sleep 5;
# Open Help
send_key("f1");
wait_still_screen(2);
# Check that Help opens.
assert_screen("kcalc_help_shown");
# Rest of the documentation is currently
# unavailable.
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,97 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script checks that KCalc works in Basic mode.
# This subroutine rewrites the number into a word.
sub rewrite {
my $number = shift;
my %numbers = (
0 => 'zero',
1 => 'one',
2 => 'two',
3 => 'three',
4 => 'four',
5 => 'five',
6 => 'six',
7 => 'seven',
8 => 'eight',
9 => 'nine',
"." => 'divider',
"%" => 'percent',
);
my $rewritten = $numbers{$number};
return $rewritten;
}
# This subroutine performs the clicking of simple operations
# in the KCalc.
sub calculate {
my ($a, $b, $operation) = @_;
# Create lists of the numbers.
my @first = split('', $a);
my @second = split('', $b);
# For each digit of the first number, click on
# the corresponding button.
foreach (@first) {
my $word = rewrite($_);
assert_and_click("kcalc_button_$word");
}
# Click the operation button.
assert_and_click("kcalc_button_$operation");
# For each digit of the second number, click on
# the corresponding button.
foreach (@second) {
my $word = rewrite($_);
assert_and_click("kcalc_button_$word");
}
# Click on the Equals button
assert_and_click("kcalc_button_equals");
# Assert the result has appeared on the screen.
my $identifier = hashed_string("$a-$operation-$b");
assert_screen("kcalc_result_$identifier");
# Clear the display.
send_key("esc");
}
sub run {
my $self = shift;
# Wait until everything settles.
sleep 5;
# Check that two numbers can be added.
calculate("10", "23", "add");
# Check that two numbers can be subtracted.
calculate("67", "45", "sub");
# Check that two numbers can be multiplied.
calculate("9", "0.8", "multi");
# Check that two numbers can be divided.
calculate("77", "7", "div");
# Check that you can use percents
calculate("33%", "90", "multi");
# Check that you can use brackets
assert_and_click("kcalc_button_three");
assert_and_click("kcalc_button_multi");
assert_and_click("kcalc_button_bopen");
assert_and_click("kcalc_button_two");
assert_and_click("kcalc_button_add");
assert_and_click("kcalc_button_three");
assert_and_click("kcalc_button_bclose");
assert_and_click("kcalc_button_equals");
my $identifier = hashed_string("3*(3+2)");
assert_screen("kcalc_result_$identifier");
send_key("esc");
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et:

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