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

cockpit: update needles for 198, rejig Services page handling

Cockpit 198 comes with a UI overhaul, so almost all needles
need an update.

The 'auditd' service is no longer on the first page. To make
this less fragile (at the cost of not testing that clicking on
a service actually opens the detail page *for that service*,
tweak the needles to just look for *any* running service, click
on it, and check we got to a 'details' page. We also redo the
existing needles for this design.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-07-10 11:14:56 -07:00
parent 0c650ce424
commit 9078bca871
34 changed files with 221 additions and 41 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 173,
"height": 15,
"width": 59,
"xpos": 425,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_main"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 921,
"height": 18,
"width": 31,
"ypos": 477
}
],
"properties": [],
"tags": [
"cockpit_join_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 437,
"height": 17,
"ypos": 436,
"width": 164
}
],
"properties": [],
"tags": [
"cockpit_join_complete"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 160,
"height": 27,
"ypos": 188,
"xpos": 381,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_join_domain"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 508,
"ypos": 438,
"height": 15,
"width": 94,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_join_domain_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 424,
"ypos": 477,
"height": 14,
"width": 152,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_join_progress"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 122,
"ypos": 266,
"height": 18,
"width": 39,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_logs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,15 +1,15 @@
{
"properties": [],
"tags": [
"cockpit_services_auditd_detail"
],
"area": [
{
"xpos": 215,
"ypos": 325,
"width": 319,
"width": 43,
"height": 13,
"ypos": 266,
"xpos": 859,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_logs_entry"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 473,
"height": 14,
"ypos": 384,
"width": 163
}
],
"properties": [],
"tags": [
"cockpit_logs_detail"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 16,
"width": 62,
"ypos": 160,
"xpos": 529
}
],
"properties": [],
"tags": [
"cockpit_logs_severity"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 121,
"height": 13,
"ypos": 424,
"width": 65,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_services"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 580,
"ypos": 482,
"width": 81,
"height": 14,
"type": "match"
}
],
"tags": [
"cockpit_services_auditd"
],
"properties": []
}

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 339,
"xpos": 401,
"type": "match",
"width": 219,
"height": 13
}
],
"properties": [],
"tags": [
"cockpit_services_auditd_detail"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 13,
"type": "match",
"width": 74,
"xpos": 276,
"ypos": 564
}
],
"properties": [],
"tags": [
"cockpit_services_detail"
]
}

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 16,
"width": 94,
"ypos": 650,
"xpos": 375
}
],
"properties": [],
"tags": [
"cockpit_services_detail"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 478,
"height": 14,
"width": 101,
"xpos": 745,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_services_entry"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 14,
"type": "match",
"width": 91,
"xpos": 780,
"ypos": 482
}
],
"properties": [],
"tags": [
"cockpit_services_entry"
]
}

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -21,10 +21,10 @@ sub run {
# go to the services screen
assert_and_click "cockpit_services";
wait_still_screen 2;
# assume auditd is there, click it
assert_and_click "cockpit_services_auditd";
# check we get to the appropriate detail screen
assert_screen "cockpit_services_auditd_detail";
# click on an entry
assert_and_click "cockpit_services_entry";
# check we get to a detail screen
assert_screen "cockpit_services_detail";
}
sub test_flags {