diff options
Diffstat (limited to 't/app/controller/photo.t')
-rw-r--r-- | t/app/controller/photo.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/photo.t b/t/app/controller/photo.t index 6e61ebb32..39380e769 100644 --- a/t/app/controller/photo.t +++ b/t/app/controller/photo.t @@ -64,6 +64,9 @@ subtest "Check multiple upload worked" => sub { ); ok $mech->success, 'Made request with multiple photo upload'; $mech->base_is('http://localhost/report/new'); + $mech->content_like( + qr[(<img align="right" src="/photo/1cdd4329ceee2234bd4e89cb33b42061a0724687.temp.jpeg" alt="">\s*){3}], + 'Three uploaded pictures are all shown, safe'); $mech->content_contains( 'name="upload_fileid" value="1cdd4329ceee2234bd4e89cb33b42061a0724687,1cdd4329ceee2234bd4e89cb33b42061a0724687,1cdd4329ceee2234bd4e89cb33b42061a0724687"', 'Returned upload_fileid contains expected hash, 3 times'); |