Fix the failing KDE startstop tests.

This commit is contained in:
Lukas Ruzicka 2024-02-27 10:42:08 +01:00
parent d8556387bd
commit 614a2f5e5d
12 changed files with 80 additions and 30 deletions

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 307,
"ypos": 323,
"width": 53,
"height": 55,
"type": "match"
}
],
"properties": [],
"tags": [
"nautilus_big_icons"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

View File

@ -0,0 +1,20 @@
{
"area": [
{
"ypos": 232,
"type": "match",
"width": 145,
"height": 15,
"xpos": 314
}
],
"properties": [
{
"name": "workaround",
"value": "workaround for bug 2060540 (window is too large for screen). this is fragile, will fail if there is a crash"
}
],
"tags": [
"abrt_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 510,
"ypos": 214,
"width": 126,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"kmail_account_dialogue"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 423,
"ypos": 5,
"height": 20,
"width": 182
}
],
"properties": [],
"tags": [
"systemmonitor_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 888,
"ypos": 27,
"width": 23,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"kde_exit_icon"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -10,19 +10,15 @@ sub run {
# Start the application # Start the application
menu_launch_type 'kmail'; menu_launch_type 'kmail';
# Cancel Kmail data wizard # The Kmail window is now covered with an account
assert_and_click 'kde_cancel_button', timeout => 60; # creation dialogue. Let's get rid of it to be able
# Sometimes, the Kmail window is shown over the settings window. # to assert the Kmail window again.
# If that is the case, assert that Kmail is running and exit. if (check_screen("kmail_account_dialogue", timeout => 30)) {
unless (check_screen("kmail_runs")) { # Click on the exit icon
if (check_screen("kde_cancel_button", 1)) { assert_and_click("kde_exit_icon");
click_lastmatch;
}
assert_screen("kmail_runs");
}
else {
assert_screen("kmail_runs");
} }
assert_screen("kmail_runs");
# Close the application # Close the application
quit_with_shortcut(); quit_with_shortcut();
} }

View File

@ -10,9 +10,13 @@ sub run {
# Start the application # Start the application
menu_launch_type 'kontact'; menu_launch_type 'kontact';
# Get rid of personal data # Similar to Kmail, we have the same dialogue
assert_and_click 'kde_cancel_button', timeout => 60; # covering the application. Let's get rid of it, too.
# Check that it is started if (check_screen("kmail_account_dialogue", timeout => 30)) {
# Click on the exit icon
assert_and_click("kde_exit_icon");
}
# Check that the application window is there.
assert_screen 'kontact_runs'; assert_screen 'kontact_runs';
# Close the application # Close the application
quit_with_shortcut(); quit_with_shortcut();