diff options
-rw-r--r-- | .cypress/cypress/integration/simple_spec.js | 1 | ||||
-rw-r--r-- | .cypress/cypress/integration/staff.js | 2 | ||||
-rw-r--r-- | t/Mock/MapIt.pm | 4 | ||||
-rw-r--r-- | t/app/controller/report_import.t | 2 | ||||
-rw-r--r-- | t/app/controller/report_new_open311.t | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/.cypress/cypress/integration/simple_spec.js b/.cypress/cypress/integration/simple_spec.js index faf24f70e..8b658b21b 100644 --- a/.cypress/cypress/integration/simple_spec.js +++ b/.cypress/cypress/integration/simple_spec.js @@ -9,6 +9,7 @@ describe('Clicking the map', function() { it('allows me to report a new problem', function() { cy.url().should('include', '/around'); cy.get('#map_box').click(200, 200); + cy.get('#category_group').select('Flyposting'); cy.get('[name=title]').type('Title'); cy.get('[name=detail]').type('Detail'); cy.get('.js-new-report-user-show').click(); diff --git a/.cypress/cypress/integration/staff.js b/.cypress/cypress/integration/staff.js index ab1de0749..4ce909972 100644 --- a/.cypress/cypress/integration/staff.js +++ b/.cypress/cypress/integration/staff.js @@ -40,7 +40,7 @@ describe('Staff user tests', function() { cy.wait('@report-ajax'); cy.get('select:eq(3)').select('Graffiti'); cy.get('[name=title]').should('have.value', 'A Graffiti problem has been found'); - cy.get('[name=detail]').should('have.value', 'A Graffiti problem has been found by Borsetshire'); + cy.get('[name=detail]').should('have.value', 'A Graffiti problem has been found by Borsetshire County Council'); cy.cleanUpXHR(); }); }); diff --git a/t/Mock/MapIt.pm b/t/Mock/MapIt.pm index 337b4049f..b5cc694df 100644 --- a/t/Mock/MapIt.pm +++ b/t/Mock/MapIt.pm @@ -96,8 +96,8 @@ sub dispatch_request { } } my $response = { - "63999" => {"parent_area" => 2245, "generation_high" => 25, "all_names" => {}, "id" => 63999, "codes" => {"ons" => "00HYNS", "gss" => "E05008366", "unit_id" => "44025"}, "name" => "Kington", "country" => "E", "type_name" => "Unitary Authority electoral division (UTE)", "generation_low" => 12, "country_name" => "England", "type" => "UTE"}, - "2245" => {"parent_area" => undef, "generation_high" => 25, "all_names" => {}, "id" => 2245, "codes" => {"ons" => "00HY", "gss" => "E06000054", "unit_id" => "43925"}, "name" => "Wiltshire Council", "country" => "E", "type_name" => "Unitary Authority", "generation_low" => 11, "country_name" => "England", "type" => "UTA"} + "153255" => {"parent_area" => 2608, "generation_high" => 36, "all_names" => {}, "id" => 153255, "codes" => {"gss" => "E05012110", "unit_id" => "174450"}, "name" => "Chipping Sodbury & Cotswold Edge", "country" => "E", "type_name" => "Unitary Authority ward (UTW)", "generation_low" => 36, "country_name" => "England", "type" => "UTW"}, + "2608" => {"parent_area" => undef, "generation_high" => 36, "all_names" => {}, "id" => 2608, "codes" => {"ons" => "00HD", "gss" => "E06000025", "unit_id" => "25559"}, "name" => "South Gloucestershire Council", "country" => "E", "type_name" => "Unitary Authority", "generation_low" => 1, "country_name" => "England", "type" => "UTA"} }; return $self->output($response); }, diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 223979d1b..eb3a54963 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -17,7 +17,7 @@ ok -e $sample_file, "sample file $sample_file exists"; FixMyStreet::App->log->disable('info'); END { FixMyStreet::App->log->enable('info'); } -my $body = $mech->create_body_ok(2245, 'Wiltshire Council'); +my $body = $mech->create_body_ok(2608, 'Borsetshire Council'); $mech->create_contact_ok( body_id => $body->id, category => 'Street lighting', diff --git a/t/app/controller/report_new_open311.t b/t/app/controller/report_new_open311.t index d2f39f40f..3b733622b 100644 --- a/t/app/controller/report_new_open311.t +++ b/t/app/controller/report_new_open311.t @@ -9,7 +9,7 @@ END { FixMyStreet::App->log->enable('info'); } my $mech = FixMyStreet::TestMech->new; -my $body = $mech->create_body_ok(2245, 'Wiltshire Council'); +my $body = $mech->create_body_ok(2608, 'Borsetshire Council'); $body->update({ endpoint => 'http://example.com/open311', jurisdiction => 'mySociety', |