diff options
author | Dave Arter <davea@mysociety.org> | 2018-10-26 09:14:22 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-11-02 15:54:09 +0000 |
commit | e5eab60d971bbf97583a555d72374085ec45b5d4 (patch) | |
tree | 0384b5c6567b1afd7a9e61360a80ba471960763a /.cypress | |
parent | b27cd116c94f2f1edb97d32a9c7f0f9c7cf10aaf (diff) |
Sort category groups correctly
Previously if there was a mix of groups and top-level categories
they weren’t sorted together.
Diffstat (limited to '.cypress')
-rw-r--r-- | .cypress/cypress/integration/category_tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.cypress/cypress/integration/category_tests.js b/.cypress/cypress/integration/category_tests.js index 5135ef842..a40ec3fcd 100644 --- a/.cypress/cypress/integration/category_tests.js +++ b/.cypress/cypress/integration/category_tests.js @@ -13,7 +13,7 @@ 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 --', 'Graffiti', 'Potholes', 'Street lighting', 'Other', 'Bins' ]; + 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 +29,7 @@ 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 --', 'Graffiti', 'Potholes', 'Street lighting', 'Other', 'Bins' ]; + 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]); }); |