From b388c6fc94c7ac213b61d800c24ddca571d4425e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Nov 19 2022 01:24:15 +0000 Subject: cockpit: enable admin mode after logging in as test Sigh, this is a pain and adds more fragile needles. Signed-off-by: Adam Williamson --- diff --git a/lib/cockpit.pm b/lib/cockpit.pm index f857979..af56021 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -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 diff --git a/needles/cockpit/cockpit_admin_enable-20221119.json b/needles/cockpit/cockpit_admin_enable-20221119.json new file mode 100644 index 0000000..e325a3e --- /dev/null +++ b/needles/cockpit/cockpit_admin_enable-20221119.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 298, + "ypos": 245, + "width": 101, + "height": 15, + "type": "match" + } + ], + "properties": [], + "tags": [ + "cockpit_admin_enable" + ] +} \ No newline at end of file diff --git a/needles/cockpit/cockpit_admin_enable-20221119.png b/needles/cockpit/cockpit_admin_enable-20221119.png new file mode 100644 index 0000000..1a7f190 Binary files /dev/null and b/needles/cockpit/cockpit_admin_enable-20221119.png differ diff --git a/needles/cockpit/cockpit_admin_password-20221119.json b/needles/cockpit/cockpit_admin_password-20221119.json new file mode 100644 index 0000000..b588789 --- /dev/null +++ b/needles/cockpit/cockpit_admin_password-20221119.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 256, + "ypos": 397, + "width": 119, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "cockpit_admin_password" + ] +} \ No newline at end of file diff --git a/needles/cockpit/cockpit_admin_password-20221119.png b/needles/cockpit/cockpit_admin_password-20221119.png new file mode 100644 index 0000000..2b5e507 Binary files /dev/null and b/needles/cockpit/cockpit_admin_password-20221119.png differ