mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 23:03:08 +00:00
Fix the failing KDE startstop tests.
This commit is contained in:
parent
d8556387bd
commit
614a2f5e5d
@ -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 |
@ -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 |
15
needles/kde/apps/kmail_account_dialogue.json
Normal file
15
needles/kde/apps/kmail_account_dialogue.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 510,
|
||||
"ypos": 214,
|
||||
"width": 126,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"kmail_account_dialogue"
|
||||
]
|
||||
}
|
BIN
needles/kde/apps/kmail_account_dialogue.png
Normal file
BIN
needles/kde/apps/kmail_account_dialogue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
15
needles/kde/apps/systemmonitor_runs-20240227.json
Normal file
15
needles/kde/apps/systemmonitor_runs-20240227.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"type": "match",
|
||||
"xpos": 423,
|
||||
"ypos": 5,
|
||||
"height": 20,
|
||||
"width": 182
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"systemmonitor_runs"
|
||||
]
|
||||
}
|
BIN
needles/kde/apps/systemmonitor_runs-20240227.png
Normal file
BIN
needles/kde/apps/systemmonitor_runs-20240227.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 185 KiB |
15
needles/kde/kde_exit_icon.json
Normal file
15
needles/kde/kde_exit_icon.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 888,
|
||||
"ypos": 27,
|
||||
"width": 23,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"kde_exit_icon"
|
||||
]
|
||||
}
|
BIN
needles/kde/kde_exit_icon.png
Normal file
BIN
needles/kde/kde_exit_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user