aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-24 13:07:02 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-07-31 22:13:40 +0100
commit04ce3fe145b50107eb83a9dcdd349ac1f110cae6 (patch)
treeb0f331777fc67f25c6c44b4c95c41972cf99e9c6
parentfb0c5f39f46275e45074c8707f122a8c4e824ab5 (diff)
[Zurich] Remove a few test log out/ins.
-rw-r--r--t/cobrand/zurich.t6
1 files changed, 0 insertions, 6 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 8c5acddca..d8e39c304 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -747,26 +747,20 @@ subtest "superuser and dm can see stats" => sub {
$user = $mech->log_in_ok( 'dm1@example.org' );
$mech->get( '/admin/stats' );
is $mech->res->code, 200, "dm can now also see stats page";
- $mech->log_out_ok;
};
subtest "only superuser can edit bodies" => sub {
- $user = $mech->log_in_ok( 'dm1@example.org' );
$mech->get( '/admin/body/' . $zurich->id );
is $mech->res->code, 403, "only superuser should be able to edit bodies";
- $mech->log_out_ok;
};
subtest "only superuser can see 'Add body' form" => sub {
- $user = $mech->log_in_ok( 'dm1@example.org' );
$mech->get_ok( '/admin/bodies' );
$mech->content_contains('External Body');
$mech->content_lacks( '<form method="post" action="bodies"' );
- $mech->log_out_ok;
};
subtest "phone number is mandatory" => sub {
- $user = $mech->log_in_ok( 'dm1@example.org' );
$mech->get_ok( '/report/new?lat=47.381817&lon=8.529156' );
$mech->submit_form( with_fields => { phone => "" } );
$mech->content_contains( 'Diese Information wird benötigt' );