aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/alert_new.t
Commit message (Collapse)AuthorAgeLines
* Allow staff users to sign others up for alerts.Matthew Somerville2020-01-08-0/+47
|
* Check provided report ID for update alert signup.Matthew Somerville2020-01-08-9/+10
| | | | Remove some unused code.
* Record first time fixed/closed update sent to reporter in email.Matthew Somerville2019-12-09-0/+3
|
* Rotate session ID after successful login.Matthew Somerville2019-11-22-12/+11
|
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-37/+36
|
* Per-test file email addresses.Matthew Somerville2019-10-03-14/+14
|
* Refactor datetime inflation.Matthew Somerville2019-05-02-220/+32
|
* Don't ask for email on alert signup if logged in.Matthew Somerville2019-02-21-174/+21
| | | | | | | The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-11/+13
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* Add test for update name in HTML part of email.Matthew Somerville2018-04-04-3/+2
|
* Fix issue sending alerts around no-text update.Matthew Somerville2017-10-06-1/+48
| | | | | | | | | If there was a normal email alert, and then an alert for an update with no text (so no email should be sent), it would still try to send the blank email, and then die because no e.g. $data{cobrand} set. This moves the skip-blank-update check higher up, above any email sending code.
* generate update text in alerts if problem state has changedStruan Donald2017-10-05-0/+181
|
* do not send blank problem update alertsStruan Donald2017-10-05-9/+2
|
* Fix missing URLs in alert emailsDave Arter2017-08-22-1/+80
| | | | | | | | | If a staff user changed a problem’s state and an empty update was generated, it was possible for alert emails to be sent with missing URLs because the empty string in the update text was falsy and Alert.pm took the wrong path. This fixes the problem by changing the test to defined() and includes a regression test.
* Run each test file in a transaction.Matthew Somerville2017-06-20-1/+2
| | | | This means that the tests can be run in parallel.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-4/+0
|
* Fix bug if test run c. 55 hours before BST starts.Matthew Somerville2017-03-23-2/+2
| | | | | | The code was adding two days and seven/eight hours to a floating DateTime, which from 5-7pm on 23rd March 2017 created a DateTime between 1-2am on 26th March which does not exist in e.g. the UK.
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-9/+9
|
* Add HTML email templates.Matthew Somerville2016-08-01-42/+33
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-42/+14
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-4/+8
|
* Conciser text on the email confirmation pages.Zarino Zappia2015-09-17-6/+6
| | | | | It’s best if Zurich keeps the old text, so now they have their own overrides for those template files.
* Alter token logging in and timeout behaviour.Matthew Somerville2015-07-10-3/+5
| | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox).
* Tweak wording of area local alert email.Matthew Somerville2015-02-25-1/+1
| | | | Fixes #1011.
* Simplifed "confirmation-header" for success pages.Zarino Zappia2015-02-19-4/+4
|
* By default, use area-based alerts.Matthew Somerville2014-12-12-3/+3
| | | | | | | | | 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.
* Update all email templates with new text.Myfanwy Nixon2014-05-16-8/+123
| | | | And FixMyStreet.com specific open questionnaire page.
* 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.
* Change default email indentation to none.Matthew Somerville2014-03-17-1/+1
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-16/+43
|
* Use format_datetime for DBIx::Class searches to get rid of warnings when ↵Edmund von der Burg2013-09-05-9/+16
| | | | running test suite
* Update test as alert email no longer sent in this case.Matthew Somerville2013-06-19-21/+0
|
* Test fix as the wards of Gloucestershire have changed.Matthew Somerville2013-06-03-4/+4
|
* Make sure bodies exist that redirects test for.Matthew Somerville2013-02-04-0/+3
|
* Delete users first off, in case broken test left them lying around or similar.Matthew Somerville2013-02-04-6/+9
|
* Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-3/+3
|
* Some fixes for when warnings are on during test run.Matthew Somerville2012-11-09-1/+1
|
* If update alert email is to problem reporter, make it a login link.Matthew Somerville2012-10-12-4/+14
| | | | | This is so they can more easily update, especially if the update they've just received has mistakingly 'fixed' the report. This fixes #7.
* don't penalise testers with short little names (like 'dave'): allow ↵Dave Whiteland2012-10-03-1/+1
| | | | linebreaks in test match string (non public alerts)
* do no send alerts for non public reportsStruan Donald2012-09-04-0/+190
|
* Don't show postcode column in RSS/alert emails, may have no bearing on report.Matthew Somerville2012-07-23-1/+1
|
* Merge branch 'master' into bromleyMatthew Somerville2012-05-23-18/+13
|\
| * Assume alert is not confirmed if not logged in.Matthew Somerville2012-05-23-18/+13
| |
* | Fixes and improvements for tests.Matthew Somerville2012-05-16-0/+1
|/
* allow for whitespace/text-wrap in testsDave Whiteland2012-05-02-1/+1
|
* Fix test for when long domain name pushes things over one line.Matthew Somerville2012-01-06-1/+1
|
* make the test and description matchStruan Donald2011-11-29-1/+1
|
* add in postcode to email alert titlesStruan Donald2011-11-28-1/+2
|
* Don't use update name if marked as anonymous.Matthew Somerville2011-07-16-0/+17
|
* If logged in, don't show email on alert sign up.Matthew Somerville2011-06-28-53/+20
|