aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-03-11 10:57:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-03-11 10:57:34 +0000
commitf4dd36ce9868830ccd6a8dcae106e3eb181278b3 (patch)
treecdf4b0aa1883b75f32b5ef7445b78e5c3a281bb0 /t
parent41d635aa6c28b04705136dbf57dab3b0246389f9 (diff)
parent61c8c7610e63d93b8018afa4ccb22d35e6c26182 (diff)
Merge branch 'uk-council-no-edit-superuser'
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin/users.t5
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);