aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock
Commit message (Collapse)AuthorAgeLines
* Activate test_mode on JS testing.Matthew Somerville2018-12-12-1/+1
| | | | | | This is so front-end tests will not try and send email, or call Gaze. Various co-ordinates have to be updated because the default zoom level of the map has now changed.
* [UK] server side cobrand specific validationStruan Donald2018-11-26-0/+3
| | | | | | `report_check_for_errors` now fetches the cobrand for the current report and, if present, runs `report_validation` method from cobrand over the report.
* Update areas when moving report pinDave Arter2018-10-17-0/+1
| | | | | | | | The change in report_inspect.t from WODC to Oxford City was necessary because moving reports to a location not in Mock::MapIt was resulting in an empties bodies_str in the "test category/body changes" test. Fixes #2181.
* front end category testsStruan Donald2018-10-09-0/+1
| | | | Check selecting a category and selecting a sub category
* Upgrade Net::Facebook::Oauth2 to 0.11.Matthew Somerville2018-10-03-2/+2
| | | | | v2.8 of the FB API is due to turn off in April 2019, let's upgrade well in advance.
* [UK] Fix ward pages containing ampersands.Matthew Somerville2018-10-03-2/+2
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Add some Cypress tests for the map list pages.Struan Donald2018-10-02-0/+5
| | | | | | | | Including testing the filters, viewing a report, and pushState. Plus a mock MapIt handler for returning a GeoJSON outline, to make the page load. The BASE_URL is also set to the same as the test server, as that is used in list link output.
* [Buckinghamshire] Update flytipping handling.Matthew Somerville2018-08-07-0/+1
| | | | | | Allow flytipping reporting on cobrand and .com, with road reports going to Bucks Confirm and email, and non-road reports going to district and Bucks emails.
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-0/+3
| | | | | | | | | | | 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.
* [Bromley] Deal with partial postcodes in search.Matthew Somerville2018-06-20-1/+1
|
* Add new report hooks for cobrand report munging.Matthew Somerville2018-04-23-0/+1
| | | | | One to alter the category after initially set, one to change any details of the report before saving to the database.
* optionally convert from EPSG:27700 to WGS84 on report importStruan Donald2018-03-29-0/+1
| | | | | | | When pulling reports in over Open311 it's sometimes useful to be able to accept reports with Easting/Northing rather than latitude/longitude. This adds an option to GetServiceRequests to convert them as they come in.
* Cobrands can pass `components` to Google Geocoder.Dave Arter2018-02-12-0/+36
| | | | | | This allows more fine grained control over the geocoder search, e.g. to specify the administrative area or town. See the geocoder api docs: https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering
* Ensure Mock::Nominatim JSON is encoded in en-gb localeDave Arter2017-12-05-1/+3
| | | | | This was causing an error in "Test ajax decimal points" in fixamingata.t due to "importance" being encoded with a comma decimal separator.
* Make sure returned geocoder data is UTF-8 decoded.Matthew Somerville2017-11-15-2/+2
| | | | | | It turns out that HTTP::Message (as used by LWP::Simple::get) only decodes text/* and 'XML', not application/json, as used by all the geocoders. Work around this, hopefully in a future-proof way.
* Merge branch 'sms-mssid-error'Matthew Somerville2017-10-16-0/+4
|\
| * Spot errors coming back when sending text.Matthew Somerville2017-10-12-0/+4
| |
* | Merge branch 'bit-of-yaml-tidying'Matthew Somerville2017-10-11-0/+5
|\ \ | |/ |/|
| * Simplify geocode cache read/writing.Matthew Somerville2017-10-10-0/+5
| | | | | | | | Don't think the return data ever needs decoding.
* | Allow ward page to show multiple wards.Matthew Somerville2017-10-06-4/+12
|/ | | | | URLs have to be manually constructed, but specifying multiple ward names separated by "|" will show all those wards and their reports on the map.
* Add ability to confirm reports/updates via text.Matthew Somerville2017-09-30-0/+8
|
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-0/+20
| | | | A confirmation code is sent via Twilio to be entered on the site.
* area stats page for staff usersStruan Donald2017-09-20-2/+8
| | | | | | | | | Admin page to show some simple summary stats for an area. If the user has been assigned to an area then they will see the stats for that area. Superusers can pick which area they want to view. For mysociety/fixmystreetforcouncils#2
* [Oxfordshire] tests for response time messagesStruan Donald2017-09-11-0/+1
|
* Make sure gettext domain specified in all tests.Matthew Somerville2017-08-25-2/+0
|
* [Bristol] Fix 500 error on /report/newDave Arter2017-08-21-0/+1
|
* [Zurich] Bring all reports in line with upstream.Matthew Somerville2017-08-18-0/+2
| | | | | Update the map/list if the map is zoomed/panned, and make sure the updated HTML list is returned.
* [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-1/+39
| | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-0/+14
|
* Upgrade Net::Facebook::Oauth2 to 0.10Dave Arter2017-04-03-3/+3
| | | | | | | | | | 0.09 was communicating with v2.2 of the Facebook API which was switched off on 25th March 2017, so Facebook logins were no longer working. Mock::Facebook was updated to correctly return JSON from /oauth/access_token, to match the behaviour expected since v2.3 of the FB API. Fixes #1681
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-31/+66
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-0/+3
|
* [Zurich] Fix 500 error when editing superusersDave Arter2016-12-06-0/+6
| | | | | | | | | | | | The Zurich::admin_type function was setting $c->stash->{body}, meaning that when trying to edit a superuser the 'fetch_contacts' function wasn't being called, causing an "Can't call method "all" on an undefined value" error as $c->stash->{live_contacts} wasn't ever being set. Fixed by changing the conditional to simply determine whether fetch_contacts needs to be called. Included a regression test that meant a small addition to the MapItZurich mock.
* Allow user to have an area assigned in adminDave Arter2016-08-22-0/+23
|
* Add Twitter social login.Matthew Somerville2016-04-08-0/+43
|
* Allow zurich tests to run without network.Matthew Somerville2016-03-23-0/+43
|
* Switch final few JSON uses to JSON::MaybeXS.Matthew Somerville2016-02-09-3/+3
|
* Spot media_url in Open311 GetServiceRequestUpdate.Matthew Somerville2016-01-29-0/+18
| | | | Fixes #1315.
* Move test mocks to their own directory.Matthew Somerville2016-01-27-0/+140