From 13536e4368eafbdaf1220ccc97270879f3ce76cd Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Thu, 9 Nov 2023 10:18:15 +0100 Subject: [PATCH] test: use become_superuser helper for switching access --- test/verify/check-system-realms | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/verify/check-system-realms b/test/verify/check-system-realms index 520c40f85012..c7d66a9e4856 100755 --- a/test/verify/check-system-realms +++ b/test/verify/check-system-realms @@ -94,10 +94,8 @@ class CommonTests: # Test that we reconnect on privileges change self.login_and_go("/system", superuser=False) - b.click("button:contains('Turn on administrative access')") - b.set_input_text("#switch-to-admin-access-password", "foobar") - b.click("button:contains('Authenticate')") - b.wait_not_present("#switch-to-admin-access-password") + b.wait_visible(f"{self.domain_sel}:disabled") + b.become_superuser() def wait_number_domains(n): if n == 0: