aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-0/+12
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* By default, use area-based alerts.Matthew Somerville2014-12-12-146/+156
| | | | | | | | | 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.
* Don't generate unused special templates/po files.Matthew Somerville2014-11-19-2/+2
|
* Show logged in message as success, not error.Matthew Somerville2014-11-18-8/+7
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* Prevent overhang of admin body categories table.Matthew Somerville2014-10-08-7/+7
| | | | Group things together more simply. Fixes #738.
* Validate category name/email/note in admin.Matthew Somerville2014-10-08-0/+1
| | | | This prevents the creation of a category with a blank name. Fixes #556.
* Couple of tests missing MapIt override.Matthew Somerville2014-10-08-2/+10
| | | | Looks like Travis doesn't like connections back to itself.
* Update test for changes in 6eff7846.Matthew Somerville2014-09-11-2/+2
|
* Tests for moderationHakim Cassimally2014-08-14-0/+391
|
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-51/+51
|
* Some tweaks for Travis timeout errors.Matthew Somerville2014-07-29-7/+12
| | | | | | Hopefully this will reduce the chance of a timeout: * Wrap admin body tests in MapIt override. * Use full hostname to save a redirect each time.
* Switch test to use different working cobrand.Matthew Somerville2014-07-14-8/+9
|
* Update GA code to use ecommerce ping.Matthew Somerville2014-07-08-3/+7
|
* Merge branch 'mysociety/798-show-reports-subset'Matthew Somerville2014-07-04-0/+118
|\
| * Link through from all reports page to sub categoriesStruan Donald2014-07-01-0/+118
| | | | | | | | | | | | | | | | Add a type parameter to the /reports/body page to restrict list by problem category. Only link to report categories that have entries. Fixes #798
* | Use https for UK site where appropriateStruan Donald2014-07-03-2/+2
|/ | | | | | | Council redirects, BASE_URL comparisons, hard coded links, email signatures For #488
* Better spotting of signing in on /auth form.Matthew Somerville2014-06-20-1/+19
| | | | | | | | | If your browser autocompleted form fields, you could fill in the signing in part of the form but still be sent a confirmation email. This commit will now default to trying to sign in if the sign in button is clicked or there is data in the signing in password field. Fixes #816.
* Fix test of postcode that has moved ever so slightly.Matthew Somerville2014-05-30-4/+4
|
* Merge branch '700-auto-emails'Matthew Somerville2014-05-16-19/+134
|\
| * Update all email templates with new text.Myfanwy Nixon2014-05-16-19/+134
| | | | | | | | And FixMyStreet.com specific open questionnaire page.
* | 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.
* Merge branch 'improve-contact-form'Struan Donald2014-04-17-1/+110
|\
| * Add a who are you trying to contact option to contact formStruan Donald2014-04-15-1/+110
| | | | | | | | | | | | | | | | | | | | | | In order to try and cut down on people mistakingly using this form to try and contact their council all some 'who are you trying to contact' options to the form that display appropriate messaged unless the 'FMS team option is selected. Add the validation code for this in the cobrand module. Fixes #41
* | alter pave url sent to analytics on report completionStruan Donald2014-04-16-1/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to allow us to do funnel analysis in google analytics we need to send a differnt page url when a user completes a report. To do this we add a report_created=1 to the query string on either the report page or the report confirmation page for logged in and confirm by email users respectively. There's a bit of complication as we don't want to set a session cookie everywhere as that will break caching so we set a stash variable, although if the user is logged in this is controlled by a variable in the flash as there is already a session cookie at this point. also, removes the code that sends an event upon report completion as this was no use for funnel analysis.
* | create westminster council so report_new test can run standaloneStruan Donald2014-04-16-0/+1
| | | | | | | | | | | | | | The test relies on a body for westminster council existing which is crated in an earlier test if you run the whole test suite. However it's not present if you run only this test against an empty database so add it to the list of created bodies.
* | Add Cobrand config to include update date in email alertsStruan Donald2014-04-08-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for sites where the updates aren't published on the site so you need a bit more context in the email alerts. Add inlude_time_in_update_alerts to default cobrand, off as default If this is set then the date is added after the name string in the email, passing in 'alert' as the type to dt_prettify in order to allow the cobrand to format it accordingly. This does require pulling out the alert confirmed time from the database in the send_alerts code where it wasn't before.
* | 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-23/+17
| | | | 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-17/+17
| | | | | 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.)
* Make sure language is set early enough in email alert loop.Matthew Somerville2014-02-26-0/+25
| | | | | The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
* Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-2/+2
|
* Make alert_type.t test more robust.Matthew Somerville2014-02-24-4/+8
| | | | | | Put alerts in default cobrand, so changes to other cobrand email templates don't affect the test; and clean up at the end of the test so that it can be rerun without issue.
* 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 'multiple_emails_per_contact'Struan Donald2013-11-04-0/+46
|\
| * Tests for contact with comma seperated multiple emailsStruan Donald2013-11-04-0/+46
| |
* | 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-488/+709
|/
* Reported via mobile device rather than byStruan Donald2013-10-02-4/+4
| | | | Fixes #586
* switch to Sub::Override from Test::MockModuleStruan Donald2013-09-12-6/+7
| | | | | This is for consistency as Sub::Override is used for another test and also so we minimise the number of modules installed just for testing
* explicitly set bodies_str for abuse and app store testsStruan Donald2013-09-12-0/+2
| | | | | | | | The first email count test in the abuse subtest was failing on Travis but not on my machine because the sent email alert test was running on my machine, as it has the mock module installed, and this was resetting the bodies_str to one with a confirmed contact. Setting bodies_str on both these tests stops this sort of thing happening again