aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Use valid orientation flag for test imageDave Arter2016-07-06-4/+4
| | | | | | jhead 3.00 considers 0 an invalid value for EXIF orientation and will replace it with 1 when run with the -autorot flag. This was causing a test failure as the SHA hash of the sample image was being changed.
* Fix CSRF issue with new login during process.Matthew Somerville2016-07-06-0/+1
| | | | | | If you had no session cookie, started reporting a problem, logged in through that process, you would then get a CSRF error as the token had been created before the session was.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-07-06-111/+66
|
* Strip line end spaces in emails.Matthew Somerville2016-07-06-2/+2
|
* Stop using Text::Wrap to wrap email bodies.Matthew Somerville2016-07-06-14/+14
| | | | | | | | | | | If we don't do this, the default quoted-printable encoding will make sure the lines are physically wrapped anyway. format=flowed could be an alternative, but I think "=" acting as a quasi-hyphen is somewhat nicer than every line ending with "=20". A better solution could be quoted-printable doing soft wrapping only at word breaks, making each line be readable though end with a " =", but that didn't seem worth the effort involved.
* Fix broken test due to missing config override.Matthew Somerville2016-05-27-2/+7
|
* Use only one templating system for emails.Matthew Somerville2016-05-25-2/+2
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-3/+2
| | | | Fixes #1286.
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-83/+33
|\
| * Update tests for cobrand/template changes.Matthew Somerville2016-04-20-83/+33
| |
* | Fix Twitter authentication test.Matthew Somerville2016-04-22-2/+5
| | | | | | | | Pull in the same fix that was made in f598f56f for the Facebook tests.
* | Merge remote-tracking branch 'origin/twitter-login'Matthew Somerville2016-04-22-0/+111
|\ \ | |/ |/|
| * Add Twitter social login.Matthew Somerville2016-04-08-0/+111
| |
* | Merge remote-tracking branch 'origin/1302-support-pngs'Matthew Somerville2016-04-20-5/+8
|\ \
| * | Add PNG image support.Matthew Somerville2016-04-08-5/+5
| | | | | | | | | | | | | | | | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
| * | Prevent dev sites auto-creating session.Matthew Somerville2016-04-06-0/+3
| |/ | | | | | | | | We check for a session's existence before looking in it, as looking in it first would auto create a session.
* / Cope with a '/' in body name in body slug.Matthew Somerville2016-04-20-0/+5
|/ | | | Fixes #574.
* Fix test issue running on PostgreSQL>=9.2 on Mac.Matthew Somerville2016-03-31-1/+2
| | | | | | | | | | Test::PostgreSQL sets up a new database with initdb and empties the generated postgresql.conf; PostgreSQL 9.2+ sets its locale/timezone information at the initdb stage, not when it is run. It is possible therefore for the tests to be in one timezone but the test database to be in another (GMT) – causing a test failure when e.g. an update is created manually. Make sure the first comment is well before the others being tested, so there is no chance the order gets confused.
* Merge remote-tracking branch 'mysociety/refactor-email'Matthew Somerville2016-03-31-68/+61
|\
| * Fix/skip locale tests that don't pass on Mac OS X.Matthew Somerville2016-03-30-0/+4
| |
| * Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-68/+57
| |
* | [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-0/+61
| |
* | Default new category creation to confirmed.Matthew Somerville2016-03-29-0/+1
|/ | | | Fixes #1266.
* Updates to cpanfile and code for perl 5.20/5.22.Matthew Somerville2016-03-23-11/+25
| | | | | | | | | | | | | | | | | | | | The following modules had bugs that have been fixed for working in recent perls: * List::MoreUtils * Guard * PadWalker * aliased * URI * Convert::NLS_DATE_FORMAT The CGI module was removed from core in 5.20, so include it in the snapshot (I don't think it's actually used, but is a dependency). "{" needs to be escaped in regular expressions, and ~~ should not be used. Fix some tests that expect e.g. a certain hash ordering, to use sorted output or better comparisons.
* Merge branch '1341-friendly-ab-test'Matthew Somerville2016-03-11-0/+6
|\
| * [fixmystreet.com] Friendly A/B test setup.Zarino Zappia2016-03-11-0/+6
| | | | | | | | | | | | | | | | Includes a smiley, bright yellow homepage, and updated nav bar and footer across the entire site; a few content changes; request for gender information from users. Fixes #1341.
* | Fix test that fetched page removed in last commit.Matthew Somerville2016-03-11-2/+2
|/
* Remember user's last anonymous state.Matthew Somerville2016-03-04-0/+61
| | | | | If a user is logged in, use their last report/update to set the default anonymity state.
* Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-2/+2
| | | | | | There might be the odd update alert we are interested in (those not auto-signed up for as part of report or update creation), but they will be rare.
* Merge branch '1315-open311-update-media_url'Matthew Somerville2016-01-29-10/+10
|\
| * Move test mocks to their own directory.Matthew Somerville2016-01-27-10/+10
| |
* | If app user logged in, perform alert signup.Matthew Somerville2016-01-27-0/+38
|/ | | | Thanks to @jonkri for spotting.
* Merge branch '1146-social-login'Matthew Somerville2016-01-27-16/+143
|\ | | | | | | | | | | Conflicts: templates/web/base/report/new/fill_in_details_form.html templates/web/base/report/update-form.html
| * Add tests of social login.Matthew Somerville2016-01-22-0/+143
| |
| * Remove unnecessary shebang lines.Matthew Somerville2016-01-22-16/+0
| |
* | Improve some error pages.Matthew Somerville2016-01-26-1/+1
|/ | | | | Use design of auth/token in generic error, 404, and token server error pages, and use the same error for too old/ token not found errors.
* Add ability to have multiple update photos.Matthew Somerville2016-01-12-32/+92
| | | | Also adds admin ability to rotate update photos.
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-2/+9
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Handle multiple photo rotation/removal in admin.Matthew Somerville2016-01-08-1/+2
|
* Fix bug showing reports on Your Reports.Matthew Somerville2015-12-17-1/+6
| | | | | 92dfeac used an incorrect user column name in the new lookup, and there was no test to catch the regression.
* Add multiple photo upload support.Zarino Zappia2015-12-16-35/+78
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-2/+2
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Secret always created as part of test run setup.Matthew Somerville2015-12-15-8/+0
|
* Switch template plugin for nice numbers.Matthew Somerville2015-12-09-1/+18
| | | | | Template::Plugin::Number::Format works internationally, whilst Template::Plugin::Comma does not.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-3/+1
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-4/+4
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-69/+72
| | | | Command line scripts don't need a full blown app, just database.
* Add generic static route handler.Matthew Somerville2015-10-29-0/+9
| | | | | This puts all static pages under /about, and lets you add new static pages by placing new HTML in your about template directory.
* [Zurich] Update de_CH .po fileHakim Cassimally2015-10-06-3/+1
|
* [Zurich] Override MAP_TYPE in tests where appropriateDave Arter2015-10-06-0/+3
|