aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
Commit message (Collapse)AuthorAgeLines
* [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).
* run front end tests for cobrands alongside main testsStruan Donald2019-05-28-83/+67
| | | | | | | | | | | | Add the hosts config option, from https://github.com/cypress-io/cypress/issues/1488#issuecomment-396435553 to the cypress config so we can access *.locahost. Then use those in the cobrand tests, as well as allowing them as cobrands by default in the FixMyStreet server setup. NB: need to set fixmystreet.localhost as the FixMyStreet BASE_URL otherwise form submissions can go to localhost and then you get a cypress cross origin security error.
* [Northamptonshire] cobrand specific front end testsStruan Donald2019-05-28-0/+131
|
* Fix bug going between report/new pages client sideMatthew Somerville2019-05-20-0/+12
| | | | | | A few bits weren't being correctly hidden, as the code didn't account for someone going directly from a report page to a reporting page via the Report another problem here button.
* [Cypress] Blacklist in config as fails in CLI.Matthew Somerville2019-05-15-1/+2
|
* Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-2/+2
| | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* [Borsetshire] add extra categories to demo siteStruan Donald2019-01-07-0/+1
| | | | Dropped Kerbs and Skips in a Licensing group.
* Don’t escape entities in report titles via ajax.Matthew Somerville2018-12-12-0/+17
|
* Activate test_mode on JS testing.Matthew Somerville2018-12-12-5/+5
| | | | | | 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.
* Show email form after logging in as leaving updateMatthew Somerville2018-12-08-1/+0
| | | | | | | | | With the recent login changes, the user form was being hidden after logging in while leaving an update, meaning you had to click "Continue" to see the thing it was asking you to check. Refactor the update flow slightly in this area to be more like reporting, showing the relevant bit of the user form immediately (and thus also not having it within a hidden section).
* [fixmystreet.com] More categories in fixture.Matthew Somerville2018-12-08-2/+25
|
* Fix issue with multiple button IDs on page.Matthew Somerville2018-12-05-2/+35
| | | | | | When a report is pulled in via ajax, it means there are then two sets of login flow buttons on the page, and the JS setup only attaches to the first of these.
* Move email input nearer password input on forms.Zarino Zappia2018-12-05-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This moves the email input from `user_loggedout.html` closer to the password inputs in `user_loggedout_{by_email,password}.html`, because we want to emphasise the connection between your login email/username and your password, and, now that only one "Yes I have an account / No I do not have an account" fieldset is displayed at a time, there was no reason to ask for the email/username up front. This, however, now means the form includes two username inputs, so: * `Report/New.pm` and `Report/Update.pm` now pick the first non-empty username param and use that. * `user_loggedout_email.html` now expects a `name` parameter, so that we can give the two username inputs unique ids in the markup. Also: * The "optional" phone and email inputs in user_loggedout_by_email.html are printed *after* the main username input if SMS login is enabled (since one or other of them is unhidden by javascript, based on whether you entered a phone number or and email address into the "username" input, and it would look weird to have an input become unhidden *above* the input you’re currently editing).
* Update sign in flow for new reports/updates.Matthew Somerville2018-12-05-0/+2
| | | | Co-authored-by: Zarino Zappia <zarino@mysociety.org>
* add report_prefill user permissionStruan Donald2018-11-19-0/+46
| | | | | | | If set then when the user creates a new body report it will prefill the report title and description with some basic text. For mysociety/freshdesk#23
* [UK] Front end tests for Highways England layerStruan Donald2018-11-19-0/+56
|
* Sort category groups correctlyDave Arter2018-11-02-2/+2
| | | | | Previously if there was a mix of groups and top-level categories they weren’t sorted together.
* Try and avoid transient test failure.Matthew Somerville2018-10-22-1/+2
|
* front end category testsStruan Donald2018-10-09-0/+41
| | | | Check selecting a category and selecting a sub category
* Add cobrand options to browser-test script.Struan Donald2018-10-03-0/+10
| | | | | | Add options to set the cobrand plus related options for co-ordinates, name and area id to the browser test command. Set BASE_URL to same as test server, as that is used in e.g. list link output.
* use postcode from ENV in front end testsStruan Donald2018-10-03-9/+12
| | | | | rather than hardcoding a postcode pull it from ENV to make testing a bit more flexible for use in cobrand testing
* Merge branch 'issues/commercial/1188-push-state'Matthew Somerville2018-10-02-0/+128
|\
| * Fix history API bug.Matthew Somerville2018-10-02-0/+12
| | | | | | | | | | | | replace_query_parameter() was stringifying select multiples, meaning they were incorrectly recorded by the pushState and thus breaking on navigation.
| * Add some Cypress tests for the map list pages.Struan Donald2018-10-02-0/+116
| | | | | | | | | | | | | | | | 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.