aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/fixamingata.t
Commit message (Collapse)AuthorAgeLines
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-0/+5
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-7/+1
|
* Add HTML email templates.Matthew Somerville2016-08-01-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-4/+4
|
* Move test mocks to their own directory.Matthew Somerville2016-01-27-2/+2
|
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-1/+1
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-6/+6
| | | | Command line scripts don't need a full blown app, just database.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-1/+1
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Factor out test contact creation to function.Matthew Somerville2015-03-13-7/+2
|
* Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-0/+23
| | | | | | | This includes MapIt postcode lookups, geocoding, query parameters, tile clicks. Stringifying truncates them to six decimal places, which means we no longer need any "short" versions anywhere, and the JSON response will always uses a decimal point regardless of locale.
* By default, use area-based alerts.Matthew Somerville2014-12-12-1/+1
| | | | | | | | | 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.
* Fix encoding of signature in emails.Matthew Somerville2014-12-10-0/+103
This text was being imported encoded, which led to double-encoding when used in templates. Fixes #960 and #961.