aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock
Commit message (Collapse)AuthorAgeLines
* [TfL] Server-side red route lookup for new report categoriesDave Arter2019-12-12-0/+40
| | | | | | | | | | | | | | | | | | | | This commit checks the RedRoutes WFS layer on tilma to determine if the point at which a new report is being made is on a TfL red route. The returned categories are then adjusted accordingly: - If on a red route, all TfL categories as well as borough categories specific to street cleaning are returned. - If not on a red route, all borough categories as well as TfL categories that don't require a red route are returned. - This category tweaking doesn't happen on the TfL cobrand, as the JS handles it by signposting users to fixmystreet.com for borough reports. Doing the lookup server side means the app always shows the right categories to the user and prevents them e.g. sending a borough flytipping report to TfL. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1716
* [TfL] Use London Boroughs for inspector areas and wards on /reportsDave Arter2019-12-09-0/+5
| | | | Drops ‘Borough Council’ suffix from area names
* Pre-filter ‘all reports’ by area for inspectorsDave Arter2019-12-09-0/+2
|
* [Peterborough] add title length restrictionStruan Donald2019-12-03-0/+1
| | | | Fixes mysociety/fixmystreet-freshdesk#102
* [UK] Fix Greenwich RSS feed.Matthew Somerville2019-11-15-0/+2
|
* [Cheshire East] Initial cobrand.Matthew Somerville2019-11-10-0/+1
|
* Per-test file email addresses.Matthew Somerville2019-10-03-1/+1
|
* [IsleOfWight] Initial cobrand.Struan Donald2019-09-27-0/+1
| | | | | | | | | Co-authored-by: Matthew Somerville <matthew@mysociety.org> Configured to allow: - updates only from original reporter - close updates from fetch reports - use OSM geocoder
* Add test for OIDC logout redirectionDave Arter2019-08-16-0/+5
|
* Improve checking of OIDC ID tokens, and handle OIDC forgotten password flow ↵Dave Arter2019-08-16-0/+1
| | | | correctly
* [Westminster] Store user CRM ID when logging in via MyWestminsterDave Arter2019-08-16-1/+2
|
* Add OpenID Connect login functionalityDave Arter2019-08-16-0/+70
|
* Set default mock area to default browser test areaMatthew Somerville2019-08-07-2/+2
| | | | | | This should make it easier to add browser tests as you won't have to get the click precisely on the right pixel in order to have it match the correct area.
* Update UI text when selecting a private categoryDave Arter2019-07-09-0/+2
| | | | | | | This makes it clearer that all details for a report made in a private category will not be shown publicly. Fixes mysociety/fixmystreet-commercial#1405
*-. Merge branches 'move-up-bodies-set' and 'more-frontend-tests'Matthew Somerville2019-06-06-2/+5
|\ \
| | * [Buckinghamshire] Add flytipping front end test.Matthew Somerville2019-06-05-0/+2
| |/ |/|
| * Set fixmystreet.bodies sooner.Matthew Somerville2019-06-04-2/+3
|/ | | | | | | | | There is a small bug where if you go to a two-tier location, pick a category that is sent to one of the two ("These will be sent to" text updates to only show that one), then click elsewhere on the map, the "These will be sent to" text resets to show both bodies. This happens because fixmystreet.bodies is reset after the text has been correctly set by the category change() setup (called on pin move also).
* [Hounslow] Don't fetch non_public reports at all from Open311Dave Arter2019-06-04-0/+1
|
* [Northamptonshire] cobrand specific front end testsStruan Donald2019-05-28-0/+1
|
* [Northamptonshire] cobrand specific testsStruan Donald2019-05-28-1/+1
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-0/+1
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-3/+7
|
* Include areas in mock MapIt postcode calls.Matthew Somerville2019-01-15-1/+9
|
* 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.