aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-12 10:52:37 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-13 14:31:10 +0000
commit3e00fa1c74c92bf902b1d41d524ad79a1554e835 (patch)
tree5123dd236962d1e29a6679fac1ff1a823ee4839c /t
parentcf4f4473a795d2e1dd213f31b3d3fb4ab2711b72 (diff)
Reword/hide things viewing unauthed private report
If you've e.g. come from an email link that lets you view a private report, hide reporting/getting updates/sharing, and replace the update form with a link saying you need to sign in.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/report_non_public.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/report_non_public.t b/t/app/controller/report_non_public.t
index 6d52647a8..d1aa1943c 100644
--- a/t/app/controller/report_non_public.t
+++ b/t/app/controller/report_non_public.t
@@ -80,6 +80,8 @@ subtest "Logged email working on private report" => sub {
my $url = $mech->get_link_from_email($email);
like $body, qr/Your report to Oxfordshire County Council has been logged/;
$mech->get_ok($url);
+ $mech->content_lacks('Get updates');
+ $mech->content_contains('To provide an update, please');
};
done_testing();