Fix cockpit tests for FF100 and later

This commit is contained in:
lumarel 2022-10-08 16:25:15 +02:00
parent 2a2ddb0cf5
commit 7d024804bf
Signed by: lumarel
GPG Key ID: B253BD0C2E71BADE
21 changed files with 109 additions and 82 deletions

View File

@ -39,9 +39,16 @@ sub start_cockpit {
sub select_cockpit_update {
# This method navigates to to the updates screen
assert_screen ["cockpit_software_updates", "cockpit_leftbar_scroll"], 120;
# From Firefox 100 on, we get 'adaptive scrollbars', which means
# the scrollbar is just invisible unless you moved the mouse
# recently. So we click in the search box and hit 'down' to scroll
# the sidebar as often as needed to show the button
assert_screen ["cockpit_software_updates", "cockpit_search"], 120;
click_lastmatch;
assert_and_click "cockpit_software_updates" if (match_has_tag "cockpit_leftbar_scroll");
if (match_has_tag "cockpit_search") {
send_key_until_needlematch("cockpit_software_updates", "down", 10);
assert_and_click "cockpit_software_updates";
}
# wait for the updates to download
assert_screen 'cockpit_updates_check', 300;
}

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 55,
"type": "match",
"width": 43,
"xpos": 196,
"ypos": 711
}
],
"properties": [],
"tags": [
"cockpit_leftbar_scroll"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 48,
"xpos": 922,
"type": "match",
"ypos": 508,
"height": 19
}
],
"properties": [],
"tags": [
"cockpit_updates_auto"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

View File

@ -1,16 +0,0 @@
{
"area": [
{
"ypos": 694,
"width": 43,
"height": 55,
"xpos": 196,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_leftbar_scroll"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 77,
"width": 232,
"ypos": 200,
"xpos": 572,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_login"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"ypos": 221,
"xpos": 572,
"type": "match",
"height": 77,
"width": 232
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_login"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 21,
"ypos": 207,
"width": 174,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_search"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 22,
"width": 62,
"ypos": 689,
"xpos": 83,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_software_updates"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -1,34 +0,0 @@
{
"area": [
{
"width": 53,
"height": 22,
"click_point": {
"xpos": 24.5,
"ypos": 11.5
},
"type": "match",
"xpos": 909,
"ypos": 447
},
{
"xpos": 262,
"ypos": 448,
"width": 145,
"height": 20,
"type": "match"
},
{
"xpos": 408,
"ypos": 448,
"width": 75,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_updates_auto"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,20 @@
{
"area": [
{
"xpos": 264,
"ypos": 447,
"width": 716,
"height": 21,
"type": "match",
"click_point": {
"xpos": 681,
"ypos": 11.5
}
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"cockpit_updates_auto"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 110,
"height": 23,
"type": "match",
"xpos": 607,
"ypos": 196
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"firefox_close_tabs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB