aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/dashboard.t
Commit message (Collapse)AuthorAgeLines
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-2/+2
|
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-8/+3
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* By default, use area-based alerts.Matthew Somerville2014-12-12-7/+7
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Test dashboard CSV export more thoroughlyDave Arter2014-04-30-3/+13
| | | | | | | | | | | Instead of counting the number of lines output by dashboard CSV export, the content is parsed as CSV and the number of rows present is checked. Also includes a problem report that's split across multiple lines, testing the fix for mysociety/FixMyStreet-Commercial#494 introduced in d75e161c151c4f1e6dced24eae3170e01f9b7ba6. Closes #780.
* 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.
* 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.
* 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.)
* Disable dashboard.tMatthew Somerville2013-02-04-0/+4
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-6/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-3/+5
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-2/+2
| | | | | | | | Add foreign key constraint from contacts to body.
| * Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-1/+1
| |
* | count planned and action scheduled as the same in the dashboardStruan Donald2012-10-02-1/+31
| |
* | do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-11/+11
|/ | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
* Treat Other more like a normal category.Matthew Somerville2012-07-19-2/+2
|
* Fix test (change was in b1ccde8).Matthew Somerville2012-07-16-1/+1
|
* make tests pass if run on a MondayStruan Donald2012-06-18-10/+12
|
* problem_status is only set for council user updates so check forStruan Donald2012-05-24-1/+1
| | | | mark_fixed and null problem_status to identify user - fixed updates
* add closed state to pageStruan Donald2012-05-16-0/+20
|
* check that all fixed states coveredStruan Donald2012-05-16-2/+17
|
* add in tests for report counts at bottom of dashboardStruan Donald2012-05-16-8/+107
|
* tests for limiting by wardStruan Donald2012-05-15-1/+31
|
* tests for date counting and limiting by categoryStruan Donald2012-05-15-0/+226
|
* more detailed tests of problem countsStruan Donald2012-05-15-7/+127
|
* check one report included in figuresStruan Donald2012-05-15-4/+47
|
* add in some basic tests of dataStruan Donald2012-05-14-0/+45
|
* add council name to dashboardStruan Donald2012-05-14-2/+1
|
* basic dashbaord testsStruan Donald2012-05-14-0/+42