Skip to content

Commit

Permalink
test: use become_superuser helper for switching access
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Nov 9, 2023
1 parent b18df61 commit b76a50f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/verify/check-system-realms
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b76a50f

Please sign in to comment.