-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[fixmystreet.com] User survey banner."
This reverts commit e964fa8.
- Loading branch information
Showing
8 changed files
with
1 addition
and
186 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
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 |
---|---|---|
|
@@ -2,10 +2,6 @@ use DateTime; | |
|
||
use FixMyStreet::TestMech; | ||
|
||
use t::Mock::Tilma; | ||
my $tilma = t::Mock::Tilma->new; | ||
LWP::Protocol::PSGI->register($tilma->to_psgi_app, host => 'tilma.mysociety.org'); | ||
|
||
ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' ); | ||
|
||
my $user = $mech->create_user_ok('[email protected]', name => 'Test User'); | ||
|
@@ -32,7 +28,7 @@ my $report = FixMyStreet::DB->resultset('Problem')->find_or_create( | |
whensent => $sent_time, | ||
lang => 'en-gb', | ||
service => '', | ||
cobrand => 'fixmystreet', | ||
cobrand => '', | ||
cobrand_data => '', | ||
send_questionnaire => 1, | ||
latitude => '55.951963', | ||
|
@@ -470,10 +466,6 @@ FixMyStreet::override_config { | |
$mech->content_contains( 'Has this problem been fixed?' ); | ||
$mech->content_lacks( 'ever reported' ); | ||
|
||
$mech->submit_form_ok({ with_fields => { been_fixed => 'Unknown', another => 'No' } }); | ||
$mech->content_contains('Can you spare 5 minutes for a survey about FixMyStreet?'); | ||
$mech->content_contains('ever_reported=&been_fixed=Unknown&category=Street+lighting&num_reports_by_user=1&imd_decile=6&cobrand=fixmystreet'); | ||
|
||
$token = FixMyStreet::DB->resultset("Token")->find( { scope => 'questionnaire', token => $token } ); | ||
ok $token, 'found token for questionnaire'; | ||
$questionnaire = FixMyStreet::DB->resultset('Questionnaire')->find( { id => $token->data } ); | ||
|
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 was deleted.
Oops, something went wrong.
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