diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-06 15:59:05 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-08 09:29:58 +0000 |
commit | 0e84e1a8f51af275b1b0e8400d23b6dffeb4303c (patch) | |
tree | 1694917f7d0515324d81ae44ac97e709b1054e56 /.cypress | |
parent | fda50e07fc671eefa68257fbc9d9bdea63dd4b0f (diff) |
[fixmystreet.com] More categories in fixture.
Diffstat (limited to '.cypress')
-rw-r--r-- | .cypress/cypress/integration/category_tests.js | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/.cypress/cypress/integration/category_tests.js b/.cypress/cypress/integration/category_tests.js index a40ec3fcd..8bd21acaa 100644 --- a/.cypress/cypress/integration/category_tests.js +++ b/.cypress/cypress/integration/category_tests.js @@ -6,6 +6,31 @@ describe('Basic categories', function() { cy.get('[name=pc]').parents('form').submit(); }); + var categories = [ + '-- Pick a category --', + 'Abandoned vehicles', + 'Bins', + 'Bus stops', + 'Dog fouling', + 'Flyposting', + 'Flytipping', + 'Footpath/bridleway away from road', + 'Graffiti', + 'Parks/landscapes', + 'Pavements', + 'Potholes', + 'Public toilets', + 'Road traffic signs', + 'Roads/highways', + 'Rubbish (refuse and recycling)', + 'Street cleaning', + 'Street lighting', + 'Street nameplates', + 'Traffic lights', + 'Trees', + 'Other' + ]; + it('category dropdown contains the expected values', function() { cy.server(); cy.route('/report/new/ajax*').as('report-ajax'); @@ -13,7 +38,6 @@ describe('Basic categories', function() { cy.get('#map_box').click(210, 200); cy.wait('@report-ajax'); cy.get('[name=category]').should('not.be.visible'); - var categories = ['-- Pick a category --', 'Bins', 'Graffiti', 'Potholes', 'Street lighting', 'Other' ]; cy.get('select:eq(3) option').each(function (obj, i) { expect(obj[0].value).to.equal(categories[i]); }); @@ -29,7 +53,6 @@ describe('Basic categories', function() { cy.route('/report/new/ajax*').as('report-ajax'); cy.visit('/report/new?latitude=51.496194&longitude=-2.603482'); cy.get('[name=category]').should('not.be.visible'); - var categories = ['-- Pick a category --', 'Bins', 'Graffiti', 'Potholes', 'Street lighting', 'Other' ]; cy.get('select:eq(1) option').each(function (obj, i) { expect(obj[0].value).to.equal(categories[i]); }); |