blob: a4293b0286b615ccab906f0685c59041e791f311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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');
});
});
|