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

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

View File

@ -10,9 +10,13 @@ sub run {
# Start the application
menu_launch_type 'kontact';
# Get rid of personal data
assert_and_click 'kde_cancel_button', timeout => 60;
# Check that it is started
# Similar to Kmail, we have the same dialogue
# covering the application. Let's get rid of it, too.
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';
# Close the application
quit_with_shortcut();