From 3e00fa1c74c92bf902b1d41d524ad79a1554e835 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 12 Feb 2020 10:52:37 +0000 Subject: 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. --- t/app/controller/report_non_public.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't/app/controller') 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(); -- cgit v1.2.3