1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

cockpit: enable admin mode after logging in as test

Sigh, this is a pain and adds more fragile needles.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-11-18 17:24:15 -08:00
parent 0646dc64ad
commit b388c6fc94
5 changed files with 34 additions and 0 deletions

View File

@ -29,6 +29,10 @@ sub start_cockpit {
wait_screen_change { send_key "tab"; };
type_safely get_var("USER_PASSWORD", "weakpassword");
send_key "ret";
assert_and_click "cockpit_admin_enable";
assert_screen "cockpit_admin_password";
type_safely get_var("USER_PASSWORD", "weakpassword");
send_key "ret";
assert_screen "cockpit_main";
# wait for any animation or other weirdness
# can't use wait_still_screen because of that damn graph

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 298,
"ypos": 245,
"width": 101,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_admin_enable"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 256,
"ypos": 397,
"width": 119,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"cockpit_admin_password"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB