aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress/cypress/integration/hackney.js
diff options
context:
space:
mode:
authorMartin Wright <martin@mysociety.org>2019-10-09 14:02:12 +0100
committerDave Arter <davea@mysociety.org>2020-07-02 14:38:29 +0100
commit3e9277ed0e81b5d09656bff0aa5dacd87da1e55e (patch)
tree2b1ee47d1dd0591f5999eb1b3a1e62b4787dca53 /.cypress/cypress/integration/hackney.js
parentd157073eb872a98f9c697a0e3e959f498a922e12 (diff)
[Hackney] Initial cobrand design & privacy policy amendment
Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
Diffstat (limited to '.cypress/cypress/integration/hackney.js')
-rw-r--r--.cypress/cypress/integration/hackney.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/hackney.js b/.cypress/cypress/integration/hackney.js
new file mode 100644
index 000000000..a4293b028
--- /dev/null
+++ b/.cypress/cypress/integration/hackney.js
@@ -0,0 +1,19 @@
+describe('When you look at the Hackney site', function() {
+
+ beforeEach(function() {
+ cy.server();
+ cy.route('/report/new/ajax*').as('report-ajax');
+ cy.visit('http://hackney.localhost:3001/');
+ cy.contains('Hackney Council');
+ cy.should('not.contain', 'Hackney Borough');
+ cy.get('[name=pc]').type('E8 1DY');
+ cy.get('[name=pc]').parents('form').submit();
+ });
+
+ it('uses the correct name', function() {
+ cy.get('#map_box').click();
+ cy.wait('@report-ajax');
+ cy.get('select:eq(4)').select('Potholes');
+ cy.contains('sent to Hackney Council');
+ });
+});