aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
Commit message (Collapse)AuthorAgeLines
* [Cypress] Have full login on temperamental tests.M Somerville2020-11-02-7/+9
| | | | | | | | These tests sometimes fail on Travis; e.g. fetching /report/1 returns a non-logged in version of the page, or the Inspector login works but you are still logged in as the previous user. See if we can stabilise it by doing a full login rather than a cy.request() one, and logging out / in rather than going directly to re-login.
* [Cypress] Exclude asset domain from tests.M Somerville2020-11-02-1/+1
|
* [Oxfordshire] Add instruct defect functionality back inChris Mytton2020-10-12-0/+25
| | | | | | | | | | | | In the past Oxfordshire had a way for inspectors to "instruct a defect", which generated a CSV which got emailed to Oxfordshire with a list of defects. They now want to bring this functionality back, but instead of emailing a CSV they want it to call an API. As a first step towards that goal, this change adds back some of the instruct defect functionality that was removed in 68e18ff.
* Record whether report made on desktop or mobile.M Somerville2020-10-02-0/+3
|
* do not trigger duplicate check with stopper checkStruan Donald2020-09-30-0/+19
| | | | | | | | | | | | The stopper checking code is triggered using the category_change event which, by default also calls the duplicate check code. This meant that when an extra question dropdown with an associated stopper was updated the duplicate check re-ran and the duplicate reports panel was re-shown. The invocation of category_change on the extra questions now includes the skip_duplicates parameter to avoid this. Fixes mysociety/fixmystreet-commercial#2007
* [Northamptonshire] fix failing browser testsStruan Donald2020-09-21-3/+3
| | | | cope with change to staging assets URL
* [Northamptonshire] turn assets back onStruan Donald2020-09-18-3/+0
|
* [AlloyV2] update asset fetching codeStruan Donald2020-09-18-6/+5
| | | | change resolution and zoom level for asset layers
* [Northamptonshire] update cypress tests for alloy v2Struan Donald2020-09-18-11/+10
|
* [Northamptonshire] turn off assetsStruan Donald2020-09-18-0/+3
| | | | Temporary measure while Alloy is down for upgrade
* Allow one more zoom level on most map types.M Somerville2020-08-14-3/+3
| | | | Not on StreetView/OpenMap Local based, which are not available.
* [UK] Show data from StreetManager.Matthew Somerville2020-07-09-96/+28
|
* Change that fixes test on Travis.Matthew Somerville2020-07-08-1/+1
|
* [Hackney] Initial cobrand design & privacy policy amendmentMartin Wright2020-07-02-0/+19
| | | | | | Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
* [UK Councils] Config matches default.Matthew Somerville2020-06-16-1/+1
| | | | | With the refactor to make sure asset message always uses the default, no need for these specific config lines any more.
* [Borsetshire] Add front end tests.Matthew Somerville2020-05-19-0/+21
|
* Add --coverage option to browser-tests.Matthew Somerville2020-05-19-0/+8
| | | | You need to install the @cypress/code-coverage package alongside cypress.
* reset asset select message by id when asset unselectedStruan Donald2020-05-15-0/+7
| | | | | | | | | | Resetting using the class could cause an incorrect "you can pick an $item from the map" message to be display when asset_groups were being used. This was happening when the unselect event was firing after the category change event and then updating the new message using the message from the unselected layer. Fixes mysociety/fixmystreet-commercial#1888
* [UK] Fix Highways England categories on pin move.Matthew Somerville2020-04-08-1/+1
| | | | | | | | | | | | | | | | | | | | | | | If you clicked on a non-HE location (so showing non-HE categories), then moved the pin to a HE location, the HE message box would show and update categories (but there would be no HE ones at the time). The server would return the new categories (including HE ones), but as the issue location had now not changed on this second call, the categories would not update to hide non-HE ones (it would show both HE and non-HE categories). So, instead of going off a location, check the road name - if it has not changed, do not recreate the whole HE message box, but do call the right HE selected/not selected function to update the categories. Note that this, if "Somewhere else" is selected, then causes an infinite loop, because the highways_change event triggers a category_change event which fires the layer's road found function, and then repeat. The highways_change->category_change event firing, according to the code comment, is so that asset selection can take place, or to remove stopper messages being shown. Previously, HE did not have its own categories but overrode the body to be sent to; HE now does have categories of its own, so I think this code can be removed.
* [UK] Fix client side HE category submission.Matthew Somerville2020-04-01-0/+2
| | | | | | | | | | Once a location is fixed, we never want to regenerate the Highways England question, as that can lose the selected category. Store the location regardless of the HE question answer, so any category change, as opposed to a location change, does not do anything. We also do not want to clear category_meta, as that is where the extra data fields appear.
* [Buckinghamshire] Update off-road flytipping.Dave Arter2020-03-31-33/+1
| | | | | | | | | Instead of sending off-road flytipping reports to the district, now that Buckinghamshire is unitary we instead recategorise them into a new email specific “Flytipping (off-road)” category which is handled in the same way as other ex-district categories with the borough_email_addresses cobrand feature, and omitted from the dropdown by the categories_restriction cobrand method.
* [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-1/+1
| | | | New unitary branding, and remove County from name.
* [UK] Fix client side HE category display.Matthew Somerville2020-03-31-1/+41
| | | | | The server is now returning HE categories for us near a HE road, so display/hide them as appropriate.
* [Buckinghamshire] Change "Name" to "Full name" on formsChris Mytton2020-02-26-0/+14
| | | | | | Since we require the user to enter their full name Buckinghamshire have asked us to change the text to "Full name" to make it clearer that the full name is required to complete the form.
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-0/+226
| | | | | | | | | | | | | After this change, you can safely add the TfL body to other councils (namely the ones surrounding London that include TfL bus stops); clicking in those councils on other cobrands will have no change, as the TfL body will be fully ignored on a non-London council, but on the TfL cobrand it will allow it for e.g. the selection of bus stops outside London. It removes the body rather than just all its categories to prevent a "We do not have details of the other body covering this area" message appearing.
* ignore tilma and rw.org requests in cypress testsStruan Donald2020-02-06-1/+1
|
* [Northamptonshire] switch cypress tests away from treesStruan Donald2020-02-06-25/+25
| | | | | Because trees now allow you to click on a highway as well as a tree it's simpler to switch the tests to a different type
* Improve try again on mobile.Matthew Somerville2020-01-31-2/+2
|
* [Peterborough] Add test for multiple questions disabling new report formChris Mytton2020-01-29-0/+34
|
* [UK] Remove roadworks.Matthew Somerville2019-12-03-12/+0
|
* Add integration test for setting a Confirm site_codeChris Mytton2019-11-13-0/+9
| | | | | | | I want to change the `updateUSRNField` method so that it can accept an array of objects in the `usrn` key, but before doing that I want to add a test to ensure the existing behaviour is tested, to ensure I'm not breaking anything.
* Fix issue loading inspector duplicates on /around.Matthew Somerville2019-10-15-0/+27
| | | | | | As there are two category drop-downs in this situation (one in the hidden reporting form, one in the inspect form), the correct entry needs to be specified.
* Fix issue loading duplicates when not to be shown.Matthew Somerville2019-10-15-34/+53
| | | | | | | If the duplicates.js file is loaded, then its mechanisms come into play, and it fetches duplicates and hides the reporting form if there are any. So we only want this to happen in the same situations as it being loaded elsewhere, on a relevant cobrand and not just after signing in.
* [IsleOfWhite] make sure category_extras uses correct nameStruan Donald2019-09-27-0/+2
|
* [IsleOfWight] frontend tests for roadworks.org integrationStruan Donald2019-09-27-0/+109
|
* [IsleOfWight] check name correct for private categoriesStruan Donald2019-09-27-0/+2
|
* [IsleOfWight] Initial cobrand.Struan Donald2019-09-27-0/+19
| | | | | | | | | Co-authored-by: Matthew Somerville <matthew@mysociety.org> Configured to allow: - updates only from original reporter - close updates from fetch reports - use OSM geocoder
* [Buckinghamshire] Fix road placement question bug.Matthew Somerville2019-08-27-0/+12
| | | | | The question was being asked for even when it should not, because the error key had been changed to start with an 'x' in 120b57d1.
* Hide dupe suggestions signing in during reporting.Matthew Somerville2019-08-07-0/+22
|
* Retain extra data if signing in during reporting.Matthew Somerville2019-08-07-0/+21
|
* Hide category extras when dupe suggestions shown.Matthew Somerville2019-08-07-1/+13
|
* Set default mock area to default browser test areaMatthew Somerville2019-08-07-1/+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.
* [BANES] Move staff map code later.Matthew Somerville2019-07-16-0/+24
| | | | | Due to refactoring in 12d2346, this was loading prior to the main asset code and thus not activating.
* Update UI text when selecting a private categoryDave Arter2019-07-09-0/+35
| | | | | | | 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
* Add "Filter" toggle to mobile #sub_map_linksZarino Zappia2019-06-14-0/+25
| | | | | Allow users on narrow screens to filter the pins displayed on the map page, using the regular `.report-list-filters`.
*-. Merge branches 'move-up-bodies-set' and 'more-frontend-tests'Matthew Somerville2019-06-06-6/+116
|\ \
| | * [Northamptonshire] Add emergency message test.Matthew Somerville2019-06-05-0/+13
| | |
| | * [Buckinghamshire] Add flytipping front end test.Matthew Somerville2019-06-05-1/+81
| |/ |/|
| * [Cypress] Blacklist requests to Tilma.Matthew Somerville2019-06-04-1/+1
| |
| * Set fixmystreet.bodies sooner.Matthew Somerville2019-06-04-5/+22
|/ | | | | | | | | 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).