-
-
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.
[TfL] Add extra data to all report on dashboard
TfL would like to be able to see the extra data for a category on the 'All report' on the dashboard as well as on the specifically selected category. https://mysocietysupport.freshdesk.com/a/tickets/2556
- Loading branch information
1 parent
65f72af
commit ebfea82
Showing
2 changed files
with
14 additions
and
3 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 |
---|---|---|
|
@@ -89,7 +89,7 @@ $contact1->set_extra_fields( | |
description => 'Stop number', | ||
datatype => 'string', | ||
automated => 'hidden_field', | ||
} | ||
}, | ||
); | ||
$contact1->update; | ||
my $contact2 = $mech->create_contact_ok( | ||
|
@@ -483,11 +483,14 @@ subtest 'Dashboard CSV extra columns' => sub { | |
$mech->content_contains($dt . ',,,confirmed,51.4021'); | ||
$mech->content_contains(',,,yes,[email protected],,' . $dt . ',"Council User"'); | ||
|
||
$report->set_extra_fields({ name => 'Question', value => '12345' }); | ||
$report->set_extra_fields({ name => 'stop_code', value => '98756' }, { name => 'Question', value => '12345' }); | ||
$report->update; | ||
|
||
$mech->get_ok('/dashboard?export=1'); | ||
$mech->content_contains(',12345,,no,[email protected],,', "Bike number added to csv"); | ||
$mech->content_contains('"Council User",,98756', "Stop code added to csv for all categories report"); | ||
$mech->get_ok('/dashboard?export=1&category=Bus+stops'); | ||
$mech->content_contains('"Council User",,98756', "Stop code added to csv for bus stop category report"); | ||
}; | ||
|
||
subtest 'Inspect form state choices' => sub { | ||
|