aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_new.t
Commit message (Collapse)AuthorAgeLines
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-115/+0
|
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-28/+27
|
* [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-2/+0
| | | | This has been running for a year, added in e17eb20.
* Add HTML email templates.Matthew Somerville2016-08-01-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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-6/+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.
* Stop using collapse filter in category template.Matthew Somerville2016-07-15-1/+1
| | | | | | If a category had eg. a double space, the use of the filter meant it was output in the HTML with only a single space and so woudn't match the database entry. Switch to more explicit template space chomping.
* Add two-tier responsibility note to confirm emailDave Arter2016-07-08-0/+7
|
* Refactor sending of problem confirmation emailDave Arter2016-07-08-0/+38
| | | | | | | | Replaced duplicate code blocks that are responsible for sending confirmation of problem email with a function. Should make it easier to do two-tier conditional messages later on. Also fixes a minor bug where the wrong confirmation email would be sent for reports from the mobile app to unresponsive councils.
* Fix CSRF issue with new login during process.Matthew Somerville2016-07-05-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.
* Add PNG image support.Matthew Somerville2016-04-08-2/+2
| | | | | | | 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.
* [fixmystreet.com] Friendly A/B test setup.Zarino Zappia2016-03-11-0/+2
| | | | | | | | 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.
* Add multiple photo upload support.Zarino Zappia2015-12-16-31/+63
| | | | | | | | | | 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.
* Send altered confirmation email if not being sent.Matthew Somerville2015-09-28-1/+10
| | | | Fixes #1210.
* [fixmystreet.com] Unresponsive bodies page/warningMatthew Somerville2015-07-28-1/+99
| | | | | | | | | Add a special category email address used to show an unresponsive message and page when trying to report in that category. Add a "Refused" send method for setting a whole body to be unresponsive and show the message immediately, not on category selection. Factor out category template, and put at top where needed.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-2/+2
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-0/+5
|
* Factor out test contact creation to function.Matthew Somerville2015-03-13-51/+22
|
* Always show confirmation page for reports/updates.Matthew Somerville2015-02-19-23/+14
| | | | | Rather than redirecting to the report if they're already logged in. Fixes #1003.
* By default, use area-based alerts.Matthew Somerville2014-12-12-21/+25
| | | | | | | | | 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/+2
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* Couple of tests missing MapIt override.Matthew Somerville2014-10-08-1/+5
| | | | Looks like Travis doesn't like connections back to itself.
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-18/+18
|
* 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.
* Update GA code to use ecommerce ping.Matthew Somerville2014-07-08-3/+7
|
* Use https for UK site where appropriateStruan Donald2014-07-03-2/+2
| | | | | | | Council redirects, BASE_URL comparisons, hard coded links, email signatures For #488
* Update all email templates with new text.Myfanwy Nixon2014-05-16-5/+5
| | | | And FixMyStreet.com specific open questionnaire page.
* alter pave url sent to analytics on report completionStruan Donald2014-04-16-1/+115
| | | | | | | | | | | | | | | | In order to allow us to do funnel analysis in google analytics we need to send a differnt page url when a user completes a report. To do this we add a report_created=1 to the query string on either the report page or the report confirmation page for logged in and confirm by email users respectively. There's a bit of complication as we don't want to set a session cookie everywhere as that will break caching so we set a stash variable, although if the user is logged in this is controlled by a variable in the flash as there is already a session cookie at this point. also, removes the code that sends an event upon report completion as this was no use for funnel analysis.
* create westminster council so report_new test can run standaloneStruan Donald2014-04-16-0/+1
| | | | | | | The test relies on a body for westminster council existing which is crated in an earlier test if you run the whole test suite. However it's not present if you run only this test against an empty database so add it to the list of created bodies.
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-0/+4
| | | | Add some comments to the top of the open311 bin scripts.
* Don't display categories for deleted bodiesChris Mytton2013-11-11-0/+18
| | | | | | | | | | | | When a body has been marked as deleted (currently only exposed in the Zurich cobrand's admin) the categories for that body should not be available on the report_new form. Prior to this change there was an error running the 'zurich-overdue-alert' script, because it wasn't expecting the 'bodies_str' field to have any entries in the format 'x|y,z', this prevents this problem from happening in the future (though it doesn't fix any existing entries with this issue).
* Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-226/+298
|
* Disable info level logging in some testsEdmund von der Burg2013-09-05-0/+5
|
* Send back a list of titles in new report ajax detailsStruan Donald2013-08-01-1/+6
| | | | | This is so that the mobile app can use the list to build the appropriate UI as fixing the HTML that is sent for the site is too awful.
* Update some tests to work around small changes in some underlying modules.Matthew Somerville2013-05-07-5/+5
|
* Fix tests.Matthew Somerville2013-02-20-1/+1
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-12/+76
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Fix missed variable name change, and accompanying test.Matthew Somerville2012-12-19-0/+51
| |
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-0/+12
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-4/+4
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-7/+7
| | | | | | | | Add foreign key constraint from contacts to body.
* | Improve tests to not assume BASE_URL is localhost, and remove couple of ↵Matthew Somerville2013-01-28-6/+7
| | | | | | | | warnings.
* | genericise generating the correct base url for a problem for two tierStruan Donald2013-01-10-50/+107
| | | | | | | | council cobrands.
* | tests for the auto_confirm with no login and for accepting no user detailsStruan Donald2012-12-21-0/+113
|/
* If there is no user title submitted with a problem then do not set the DB fieldStruan Donald2012-10-12-0/+47
|
* add in some test descriptionsStruan Donald2012-09-04-3/+2
|
* reports made with non public categories are set as non publicStruan Donald2012-08-31-0/+69
|
* Add check to test that cobrand has been picked up correctly.Matthew Somerville2012-08-28-0/+1
|
* Revert "update test as country problems on district council cobrands now ↵Matthew Somerville2012-08-28-10/+2
| | | | | | | redirect" This reverts commit 0fb910f46e49f9868c8ae134f0984ac16a28fb3f. The redirect wasn't supposed to be happening.
* update test as country problems on district council cobrands now redirectStruan Donald2012-08-27-2/+10
| | | | to main site instead of returning a 404
* Fix problem.t test so it skips Lichfield tests if Lichfield cobrand is not ↵Matthew Somerville2012-08-06-2/+1
| | | | present.