aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* | Allow comments to be confirmed with no confirmationStruan Donald2014-04-08-0/+79
|/ | | | | | | | Add never_confirm_updates setting to cobrand that, when set to 0 means that comments are confirmed with no confirmation step. Essentially behaves as it would if the user was logged in. Also add a flag to the flash that indicates the comment was accepted to you can display a message on the report page if required
* Mock a date for dashboard testsHakim Cassimally2014-04-07-1/+5
| | | | | | | Fixes #365 (how appropriate) by mocking datetime to allow the dashboard test's assumptions (that we're not so near beginning of year that a report from X days ago isn't still in same year) to hold.
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-0/+4
| | | | Add some comments to the top of the open311 bin scripts.
* Use local DateTimes in dashboard and its tests.Matthew Somerville2014-04-07-6/+7
| | | | | Otherwise oddities arise due to summer time differences putting a BST now-6d23h time behind a UTC now+1s-1w.
* Change default email indentation to none.Matthew Somerville2014-03-17-2/+3
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* Export reports as CSV on /dashboardHakim Cassimally2014-03-10-0/+7
| | | | | | | | | | | | | | | Provide a button to download the details and text of reports at the second "Look up" button on /dashboard. Provides acknowledged, fixed, closed dates by parsing updates. Fixes #692 (and mysociety/FixMyStreet-Commercial#399) Email is not shown, and name honours anonymous flag: as /dashboard is accessible to people who are from_body (who still do not see anon-users name and email in the FMS web app.) A basic test is provided as per Zurich's similar report.
* Re-enable dashboard testsHakim Cassimally2014-03-10-519/+521
| | | | | | | | The tests have been commented out due to long-running failure. It looks like the failures happen if working copy MAPIT_URL is not pointing at live site. Have updated with an override_config setting this to live site (which is obviously suboptimal, but seems to be widespread practice across t/ at the moment.)
* Test for admin_base_url in RS::ProblemHakim Cassimally2013-12-17-0/+11
| | | | | Test that the slash is added in correct place (the base URL should not have its own trailing slash).
* Don't display categories for deleted bodiesChris Mytton2013-11-11-0/+18
| | | | | | | | | | | | When a body has been marked as deleted (currently only exposed in the Zurich cobrand's admin) the categories for that body should not be available on the report_new form. Prior to this change there was an error running the 'zurich-overdue-alert' script, because it wasn't expecting the 'bodies_str' field to have any entries in the format 'x|y,z', this prevents this problem from happening in the future (though it doesn't fix any existing entries with this issue).
* If only one cobrand given, always use it.Matthew Somerville2013-11-07-1/+1
| | | | | | | | | If the ALLOWED_COBRANDS configuration variable only contains one entry (and also work if it's a string rather than a list), always use that cobrand, no matter what the hostname is. The example Vagrantfile no longer needs the configuration changes at all.
* Add more admin external link icons.Matthew Somerville2013-11-07-6/+6
| | | | Use a relative URL in the CSS in case it's proxied.
* Merge branch '389-report-search-ref' of ↵Matthew Somerville2013-11-04-0/+7
|\ | | | | | | https://github.com/andylolz/fixmystreet into andylolz-389-report-search-ref
| * One more external id-related testAndy Lulham2013-10-26-0/+3
| |
| * Add a test for the external_id admin report searchAndy Lulham2013-10-26-0/+4
| |
* | Set confirmed timestamp on any admin unconfirmed state change.Matthew Somerville2013-10-25-1/+10
| | | | | | | | This fixes #527.
* | Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-471/+670
|/
* Reported via mobile device rather than byStruan Donald2013-10-02-4/+4
| | | | Fixes #586
* Don't use a domain name when testing that the default ALLOWED_COBRANDS will ↵Edmund von der Burg2013-09-10-2/+2
| | | | match to the wrong cobrand.
* Spell out all "marked as %s" strings.Matthew Somerville2013-09-05-2/+3
| | | | | As doing interpolation from a database state field is not great for translation. Fixes #391.
* Disable info level logging in some testsEdmund von der Burg2013-09-05-0/+15
|
* Use format_datetime for DBIx::Class searches to get rid of warnings when ↵Edmund von der Burg2013-09-05-12/+22
| | | | running test suite
* Fix about controller testChris Mytton2013-08-30-1/+1
|
* Send back a list of titles in new report ajax detailsStruan Donald2013-08-01-1/+6
| | | | | This is so that the mobile app can use the list to build the appropriate UI as fixing the HTML that is sent for the site is too awful.
* Update test as alert email no longer sent in this case.Matthew Somerville2013-06-19-21/+0
|
* Only append cobrand_data to URI if present.Matthew Somerville2013-06-05-4/+4
|
* Test fix as the wards of Gloucestershire have changed.Matthew Somerville2013-06-03-4/+4
|
* Fix test as M tokens now not deleted.Matthew Somerville2013-05-13-6/+1
|
* Update some tests to work around small changes in some underlying modules.Matthew Somerville2013-05-07-5/+5
|
* Update state name from Erledigt to Beantwortet.Matthew Somerville2013-04-19-2/+2
|
* Include other open states in all reports table.Matthew Somerville2013-04-19-1/+9
|
* Fix some missing time zone declarations in tests.Matthew Somerville2013-04-09-4/+4
|
* Merge branch 'zurich'Matthew Somerville2013-03-14-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
| * Fix test word change.Matthew Somerville2013-03-11-1/+1
| |
* | Add duration to test update so one definitely comes after the other.Matthew Somerville2013-02-22-1/+1
| |
* | Update test to match change in HTML.Matthew Somerville2013-02-21-1/+1
|/
* Fix tests.Matthew Somerville2013-02-20-2/+2
|
* Use FixMyStreet TestMech child, so has access to its functions.Matthew Somerville2013-02-04-5/+2
|
* Make sure bodies exist that redirects test for.Matthew Somerville2013-02-04-0/+7
|
* Make sure updates are fetched in known order for the test.Matthew Somerville2013-02-04-6/+5
|
* Delete users first off, in case broken test left them lying around or similar.Matthew Somerville2013-02-04-6/+9
|
* Translation update, update test to match.Matthew Somerville2013-02-04-1/+1
|
* Disable dashboard.tMatthew Somerville2013-02-04-0/+4
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-148/+365
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Add some Zurich banner tests.Matthew Somerville2013-01-23-3/+73
| |
| * Improve test to not be so fragile around newlines.Matthew Somerville2013-01-18-1/+1
| |
| * Correct text now body name given on page.Matthew Somerville2012-12-20-1/+1
| |
| * Allow unconfirmed reports to be seen on Zurich site.Matthew Somerville2012-12-19-0/+13
| |
| * Fix missed variable name change, and accompanying test.Matthew Somerville2012-12-19-0/+51
| |
| * Area IDs come in as an arrayref, and body may not have an area ID.Matthew Somerville2012-12-19-10/+2
| |
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-8/+8
| | | | | | | | than one body.