diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-11 10:57:34 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-11 10:57:34 +0000 |
commit | f4dd36ce9868830ccd6a8dcae106e3eb181278b3 (patch) | |
tree | cdf4b0aa1883b75f32b5ef7445b78e5c3a281bb0 /t | |
parent | 41d635aa6c28b04705136dbf57dab3b0246389f9 (diff) | |
parent | 61c8c7610e63d93b8018afa4ccb22d35e6c26182 (diff) |
Merge branch 'uk-council-no-edit-superuser'
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/admin/users.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/admin/users.t b/t/app/controller/admin/users.t index a36a4187a..4f0298103 100644 --- a/t/app/controller/admin/users.t +++ b/t/app/controller/admin/users.t @@ -103,9 +103,12 @@ subtest 'search does not show user from another council' => sub { FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'oxfordshire' ], }, sub { + $superuser->update({ from_body => $oxfordshire->id }); $mech->get_ok('/admin/users'); - $mech->get_ok('/admin/users?search=' . $user->name); + $mech->content_lacks('Super User'); + $superuser->update({ from_body => undef }); + $mech->get_ok('/admin/users?search=' . $user->name); $mech->content_contains( "Searching found no users." ); $mech->get_ok('/admin/users?search=' . $user->email); |