Click off updates notification if it appears.

This commit is contained in:
Lukas Ruzicka 2019-07-03 10:52:47 +02:00
parent d538959011
commit 71c4e273ef
5 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"kde_updates_available"
],
"area": [
{
"xpos": 957,
"ypos": 666,
"width": 42,
"height": 41,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"kde_updates_available_close"
],
"area": [
{
"xpos": 986,
"ypos": 644,
"width": 14,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

View File

@ -30,6 +30,13 @@ sub run {
wait_still_screen 2; wait_still_screen 2;
# Close the application # Close the application
assert_and_click "kde_ok"; assert_and_click "kde_ok";
# If Updates Available notification is shown, we want
# to get rid of that, because it can be later displayed
# over some applications preventing OpenQA to find
# correct buttons, which creates false positives.
if (check_screen('kde_updates_available')) {
assert_and_click "kde_updates_available_close";
}
} }
sub test_flags { sub test_flags {