aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_new.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/report_new.t')
-rw-r--r--t/app/controller/report_new.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 0c9495357..2e7e60f75 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -841,12 +841,11 @@ subtest "test report creation for a category that is non public" => sub {
# confirm token
$mech->get_ok($url);
$report->discard_changes;
- is $report->state, 'confirmed', "Report is now confirmed";
- $mech->get_ok( '/report/' . $report->id );
+ is $report->state, 'confirmed', "Report is now confirmed";
- # user is logged in
$mech->logged_in_ok;
+ $mech->get_ok( '/report/' . $report->id, 'user can see own report' );
$mech->log_out_ok;
ok $mech->get("/report/" . $report->id), "fetched report";