aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_updates.t
Commit message (Collapse)AuthorAgeLines
* Fix crash on reports with empty bodies_strDave Arter2017-02-07-0/+13
|
* Show ‘unable to fix’ state as ‘no further action’.Dave Arter2017-02-02-1/+1
| | | | Bromley had this already in its update state change messages.
* Allow users with permission to see update usernamepezholio2017-01-17-2/+28
|
* Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-2/+4
|
* Make it clearer that report is closed when marked as duplicateDave Arter2016-12-13-0/+2
| | | | | | - Record state change when leaving update and marking as duplicate - Change save button wording to match problem state when inspecting - Make it clearer that updates marking a report as duplicate actually close the report
* Add HTML email templates.Matthew Somerville2016-08-01-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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-9/+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.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-66/+14
|
* 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.
* 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`.
* Conciser text on the email confirmation pages.Zarino Zappia2015-09-17-2/+2
| | | | | It’s best if Zurich keeps the old text, so now they have their own overrides for those template files.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-2/+2
| | | | | 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-0/+1
|
* Always show confirmation page for reports/updates.Matthew Somerville2015-02-19-6/+11
| | | | | Rather than redirecting to the report if they're already logged in. Fixes #1003.
* Simplifed "confirmation-header" for success pages.Zarino Zappia2015-02-19-3/+3
|
* By default, use area-based alerts.Matthew Somerville2014-12-12-8/+8
| | | | | | | | | 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.
* Show logged in message as success, not error.Matthew Somerville2014-11-18-4/+5
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* Update all email templates with new text.Myfanwy Nixon2014-05-16-3/+3
| | | | And FixMyStreet.com specific open questionnaire page.
* 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
* Spell out all "marked as %s" strings.Matthew Somerville2013-09-05-2/+3
| | | | | As doing interpolation from a database state field is not great for translation. Fixes #391.
* Fix some missing time zone declarations in tests.Matthew Somerville2013-04-09-4/+4
|
* Add duration to test update so one definitely comes after the other.Matthew Somerville2013-02-22-1/+1
|
* Make sure updates are fetched in known order for the test.Matthew Somerville2013-02-04-6/+5
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-12/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Make from_body a foreign key.Matthew Somerville2012-12-15-5/+7
| |
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-1/+1
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-2/+2
| |
| * Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-4/+4
| |
* | Do not mark initial comment that is confirmed as reopened. Fixes #377.Struan Donald2013-01-29-15/+55
| |
* | Improve tests to not assume BASE_URL is localhost, and remove couple of ↵Matthew Somerville2013-01-28-1/+1
| | | | | | | | warnings.
* | test update meta for internal referral stateStruan Donald2013-01-17-0/+13
| |
* | add internal review status to problemsStruan Donald2013-01-17-0/+34
| |
* | fix failing tests due to timing issuesStruan Donald2013-01-16-1/+1
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-24/+376
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html
| * remove redeclaration of update_metaStruan Donald2012-12-06-2/+2
| |
| * Correctly implement the display of update statuses on report pagesStruan Donald2012-11-23-1/+100
| |
| * tests to make sure that fixed/open checkbox appears and behaves correctlyStruan Donald2012-10-11-0/+226
| |
| * update tests with new statusesStruan Donald2012-10-02-1/+4
| |
| * do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-12/+0
| | | | | | | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
| * change update form to use new statusesStruan Donald2012-10-01-12/+48
| |
* | Always use 'reopened', and don't set mark_open for Open311 received updates.Matthew Somerville2012-09-05-6/+6
| |
* | handle bad comment states due to open311 service request updates bugStruan Donald2012-09-05-0/+40
| |
* | handle re-opening of problems via open311 service requests updates correctlyStruan Donald2012-09-05-1/+4
|/ | | | also small tweaks to display of update meta information
* Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly.Matthew Somerville2012-07-13-2/+2
| | | | | | | | | Setting MAPIT_URL to .../fakemapit/ will then return one area, ID 161 and type ZZZ, whatever co-ordinate it is given. This means the default area type is now ZZZ, the UK specific types are moved into the UK cobrands, and the tests updated accordingly to still function (they assume UK-ness a lot, so probably need an ALLOWED_COBRANDS entry of "fixmystreet: 'localhost'" and for your host's domain to show fixmystreet too).
* make banner tests a bit more tolerantStruan Donald2012-05-16-4/+16
|
* Update error message (missed from previous).Matthew Somerville2012-03-14-1/+1
|
* Get test suite all passing again, and fix bug displaying partial photo and ↵Matthew Somerville2012-03-02-4/+4
| | | | my stupid use of c as a variable.
* fix date format for dates that are now from a previous yearStruan Donald2012-01-06-8/+8
|
* Fix tests, and remove unwanted height.Matthew Somerville2011-09-08-11/+11
|