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

Update realmd_join_cockpit for Cockpit 209

We need a couple of new needles, plus the 'join domain' button
has disappeared from the front page due to the very inefficient
UI redesign, so we need to scroll down to find it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-12-14 12:29:00 -08:00
parent 5d59834a36
commit beba6426b1
5 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"width": 348,
"ypos": 577,
"height": 18,
"xpos": 379
}
],
"properties": [],
"tags": [
"cockpit_join_complete"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -26,7 +26,19 @@ sub run {
# check_type_string in cockpit because of that fucking constantly
# scrolling graph
start_cockpit(1);
assert_and_click "cockpit_join_domain_button";
# on cockpit 209+ we have to scroll down before the button is
# visible
if (check_screen "cockpit_join_domain_button", 5) {
click_lastmatch;
}
else {
# to activate the right pane
assert_and_click "cockpit_main";
send_key "pgdn";
# wait out scroll...
wait_still_screen 2;
assert_and_click "cockpit_join_domain_button", 5;
}
assert_screen "cockpit_join_domain";
send_key "tab";
sleep 3;