Skip to content

Commit

Permalink
fixup! fixup! fixup! [WW][Bulky][Sutton] Bulky update images availabl…
Browse files Browse the repository at this point in the history
…e logged out
  • Loading branch information
MorayMySoc committed Sep 27, 2024
1 parent 0447530 commit df60619
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions t/cobrand/sutton.t
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ EOF
is $report->state, 'fixed - council', 'A state change';
my $update = FixMyStreet::DB->resultset("Comment")->order_by('-id')->first;
is $update->photo, '34c2a90ba9eb225b87ca1bac05fddd0e08ac865f.jpeg';
$report->update;
FixMyStreet::Script::Alerts::send_updates();
my $body = $mech->get_email->as_string;
my $id = $report->id;
Expand All @@ -395,10 +394,8 @@ EOF
$mech->get_ok($token);
(my $photo_link_thumbnail) = $mech->content =~ m#Photo of this report" src="(/photo.*?1)"#;
(my $photo_link_full) = $mech->content =~ m#a href="(/photo.*?1)"#;
$mech->get_ok($photo_link_thumbnail);
is $mech->response->is_success, 1, "Successfully call thumbnail image";
$mech->get_ok($photo_link_full);
is $mech->response->is_success, 1, "Successfully call full image";;
$mech->get_ok($photo_link_thumbnail, "Successfully call thumbnail image");
$mech->get_ok($photo_link_full, "Successfully call full image");
};
};

Expand Down

0 comments on commit df60619

Please sign in to comment.