-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into commercial-staging
- Loading branch information
Showing
7 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ use Test::MockTime 'set_fixed_time'; | |
use Test::Output; | ||
use FixMyStreet::TestMech; | ||
use FixMyStreet::Script::Reports; | ||
use FixMyStreet::Script::Alerts; | ||
|
||
FixMyStreet::App->log->disable('info'); | ||
END { FixMyStreet::App->log->enable('info'); } | ||
|
@@ -846,7 +847,13 @@ FixMyStreet::override_config { | |
'Submitting missed collection report' | ||
); | ||
$mech->content_contains('Missed collection has been reported'); | ||
|
||
FixMyStreet::Script::Reports::send(); | ||
my @emails = $mech->get_email; | ||
my $email; | ||
for my $mail (@emails) { | ||
$email = $mail->as_string if $mail->header('To') =~ '[email protected]'; | ||
}; | ||
like $email, qr/Brown Caddy \(Food waste\)/, 'Service added to title'; | ||
my @reports = FixMyStreet::DB->resultset("Problem")->all; | ||
is @reports, 1, 'only one report created'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>Report, view, or discuss local problems</h1> | ||
<h2>(like graffiti, litter, overgrown areas, or low level gardening)</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h2>[% loc('How to report a problem') %]</h2> | ||
|
||
<ol class="big-numbers"> | ||
<li>[% question %]</li> | ||
<li>Locate the problem on a map of the area</li> | ||
<li>Enter details of the problem; please note that we require images to make our initial assessment, so if possible please attach these</li> | ||
<li>We send it to the council on your behalf</li> | ||
</ol> |