Update cockpit needles and autoupdate test for 234

Auto-update time is shown as '6:00' not '06:00' now, so trim the
needle to match both.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-12-15 09:36:45 -08:00
parent 2b12be440e
commit 0de57180ee
18 changed files with 150 additions and 15 deletions

View File

@ -0,0 +1,20 @@
{
"area": [
{
"type": "match",
"ypos": 309,
"height": 19,
"xpos": 822,
"width": 68
}
],
"properties": [
{
"name": "workaround",
"value": "\"everyday\" without a space is bad English in this context: https://github.com/cockpit-project/cockpit/issues/15048"
}
],
"tags": [
"autoupdate_planned_day"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -1,15 +1,15 @@
{
"area": [
{
"xpos": 704,
"type": "match",
"height": 18,
"width": 50,
"ypos": 359
}
],
"properties": [],
"tags": [
"autoupdate_planned_time"
]
{
"area": [
{
"height": 18,
"type": "match",
"width": 35,
"xpos": 715,
"ypos": 359
}
],
"properties": [],
"tags": [
"autoupdate_planned_time"
]
}

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 398,
"ypos": 483,
"width": 100,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_save_changes"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 939,
"type": "match",
"ypos": 267,
"height": 21,
"width": 37
}
],
"properties": [],
"tags": [
"cockpit_updates_auto"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,19 @@
{
"area": [
{
"xpos": 535,
"type": "match",
"ypos": 287,
"height": 19,
"width": 43,
"click_point": {
"xpos": 8,
"ypos": 8
}
}
],
"properties": [],
"tags": [
"cockpit_updates_auto_all"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 22,
"xpos": 555,
"height": 20,
"type": "match",
"ypos": 266
}
],
"properties": [],
"tags": [
"cockpit_updates_check"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 260,
"height": 20,
"type": "match",
"ypos": 307,
"width": 24
}
],
"properties": [],
"tags": [
"cockpit_updates_updated"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 227,
"height": 77,
"ypos": 176,
"type": "match",
"xpos": 575
}
],
"properties": [],
"tags": [
"cockpit_login"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"ypos": 524,
"height": 13,
"xpos": 860,
"width": 95
}
],
"properties": [],
"tags": [
"cockpit_logs_entry"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -21,7 +21,13 @@ sub run {
# Switch on automatic updates
assert_and_click 'cockpit_updates_auto', '', 120;
assert_and_click 'cockpit_updates_dnf_install', '', 120;
assert_screen 'cockpit_updates_auto_on';
# from 234 onwards, we get a config screen here: "no updates",
# "security updates only", "all updates"
assert_screen ['cockpit_updates_auto_on', 'cockpit_updates_auto_all'];
if (match_has_tag 'cockpit_updates_auto_all') {
click_lastmatch;
assert_and_click 'cockpit_save_changes';
}
# Check the default automatic settings Everyday at 6 o'clock.
assert_screen 'autoupdate_planned_day';