Rename Suspend to Suspend access and Make user to Change role.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 3s
Build and Publish Container Image / build-and-push (push) Successful in 54s
Account journey acceptance / journeys (push) Successful in 7s

Assistant: grok
Assistant-Session: 01a0d25d-d358-7e13-b84a-d007fbb7e34f
This commit is contained in:
tegwick 2026-09-27 01:46:41 +02:00
parent 8f7cf0c69d
commit 14aee356cf
2 changed files with 46 additions and 11 deletions

View file

@ -979,6 +979,13 @@ class PortalApplicationTests(unittest.TestCase):
self.assertEqual("200 OK", admin_page["status"])
self.assertIn(b"Lifecycle diagnostics", html)
self.assertIn(b"Restore tenant account", html)
self.assertIn(b">Suspend access</button>", html)
self.assertIn(b">Change role</button>", html)
self.assertNotIn(b">Make user</button>", html)
self.assertNotIn(b">Suspend</button>", html)
self.assertIn(b'popovertarget="help-role-', html)
self.assertIn(b"This person administers the tenant.", html)
self.assertIn(b"It does not change the login name.", html)
recovered, _ = invoke_confirmed(
self.app,
f"/admin/tenant:friendly:browser/users/{memberships[0].user_id}/recover",