aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/questionnaire.t
Commit message (Collapse)AuthorAgeLines
* Enable HTML in updates from staff usersDave Arter2020-09-30-2/+7
| | | | This also extends to response templates.
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-13/+12
|
* Don’t send questionnaires for closed reports.Dave Arter2018-10-26-0/+20
| | | | Fixes mysociety/fixmystreet-freshdesk#24.
* Allow questionnaire pages to be revisited within 2 minutesDave Arter2018-07-11-2/+9
| | | | | | | | Users who double click links were seeing an error when visiting the questionnaire page. This change gives a grace period of two minutes for revisiting the questionnaire page. Fixes #2123.
* Store questionnaire data as soon as opened.Matthew Somerville2018-02-16-0/+17
| | | | | | This means the questionnaire is considered 'answered' as soon as a (HTML) link is clicked, which I think is okay. Then filling in the questionnaire form will update the same questionnaire.
* Prefill first question from questionnaire email.Matthew Somerville2018-02-16-2/+2
|
* Run each test file in a transaction.Matthew Somerville2017-06-20-10/+0
| | | | This means that the tests can be run in parallel.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-3/+0
|
* Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-1/+5
|
* Add HTML email templates.Matthew Somerville2016-08-01-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | 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-4/+1
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* Update tests for cobrand/template changes.Matthew Somerville2016-04-20-19/+6
|
* Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-5/+5
|
* 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 "time spent" admin logging.Hakim Cassimally2015-10-06-1/+1
| | | | | | | | | | | | | | | | | | | | | Mechanism is general, but current implementation only used for Zurich. - Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676 - template changes (including jQuery spinner) - backend changes to save data are made: - in log_edit, if supplied - and time on category change (and arbitrary actions) - Add update_admin_log to all paths for DM, ensuring that it gets called, while resetting the `time_spent` parameter, to make sure that there is never a duplicate record created. - Also quell warning about using DateTime values in query. - Also add (seemingly unrelated) parens to stop misparsing of OK line in questionnaire test now that DT::Format::Pg is used in Zurich cobrand See mysociety/FixMyStreet-Commercial#676
* Process update left as part of questionnaire.Matthew Somerville2015-09-28-0/+10
| | | | | | | Treat an update left during a questionnaire the same as one left on a report page, ie. pass it through cleanup_text. This will also make sure updates left that are wholly whitespace are errored, or replaced with the default text.
* Show report details more clearly on questionnaire pageZarino Zappia2015-09-17-1/+1
| | | | Fixes #1104.
* 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.
* Simplifed "confirmation-header" for success pages.Zarino Zappia2015-02-19-4/+4
|
* Update test for changes in 6eff7846.Matthew Somerville2014-09-11-2/+2
|
* Some tweaks for Travis timeout errors.Matthew Somerville2014-07-29-1/+1
| | | | | | 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.
* Change default email indentation to none.Matthew Somerville2014-03-17-1/+2
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* 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.
* Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-10/+8
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-1/+1
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-0/+16
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * update tests with new statusesStruan Donald2012-10-02-0/+16
| |
* | Allow closed->fixed transition in questionnaire, and spot closed problems in ↵Matthew Somerville2012-10-03-2/+24
|/ | | | response text (fix #269).
* Make sure no questionnaire emails outstanding at start of test.Matthew Somerville2012-08-17-0/+6
|
* Fetch updates as report page does, so they're displayed.Matthew Somerville2012-07-18-0/+17
|
* Fixes and improvements for tests.Matthew Somerville2012-05-16-60/+72
|
* Decode template files read in with read_file, to prevent double encoding ↵Matthew Somerville2011-09-20-3/+29
| | | | (fixes #159). Also fix Welsh I18N test.
* Fix questionnaire test (broke due to being 6 months after fixed date); more ↵Matthew Somerville2011-09-02-3/+8
| | | | fixes to update tests.
* correctly set mark_open/fixed in questionnaire generates updatesStruan Donald2011-06-28-0/+10
|
* display update marked as fixed text on questionnaire for all fixed statesStruan Donald2011-06-28-0/+49
|
* remove more hardcoded references to fixedStruan Donald2011-06-21-2/+7
|
* add header and footer to questionnaire success pagesStruan Donald2011-06-21-0/+1
|
* Move most of questionnaire cron to ResultSet so it can be called and tested ↵Matthew Somerville2011-06-02-24/+38
| | | | from test.
* Questionnaire tests, and fixes due to those tests.Matthew Somerville2011-05-27-0/+278