aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
diff options
context:
space:
mode:
Diffstat (limited to '.cypress')
-rw-r--r--.cypress/cypress/integration/category_tests.js4
-rw-r--r--.cypress/cypress/integration/highways.js2
-rw-r--r--.cypress/cypress/integration/staff.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/.cypress/cypress/integration/category_tests.js b/.cypress/cypress/integration/category_tests.js
index 8bd21acaa..e9cf6b0d1 100644
--- a/.cypress/cypress/integration/category_tests.js
+++ b/.cypress/cypress/integration/category_tests.js
@@ -35,7 +35,7 @@ describe('Basic categories', function() {
cy.server();
cy.route('/report/new/ajax*').as('report-ajax');
cy.url().should('include', '/around');
- cy.get('#map_box').click(210, 200);
+ cy.get('#map_box').click(240, 249);
cy.wait('@report-ajax');
cy.get('[name=category]').should('not.be.visible');
cy.get('select:eq(3) option').each(function (obj, i) {
@@ -51,7 +51,7 @@ describe('Basic categories', function() {
it('category dropdown contains works from new page', function() {
cy.server();
cy.route('/report/new/ajax*').as('report-ajax');
- cy.visit('/report/new?latitude=51.496194&longitude=-2.603482');
+ cy.visit('/report/new?latitude=51.496194&longitude=-2.603439');
cy.get('[name=category]').should('not.be.visible');
cy.get('select:eq(1) option').each(function (obj, i) {
expect(obj[0].value).to.equal(categories[i]);
diff --git a/.cypress/cypress/integration/highways.js b/.cypress/cypress/integration/highways.js
index 8494259c8..72438b820 100644
--- a/.cypress/cypress/integration/highways.js
+++ b/.cypress/cypress/integration/highways.js
@@ -9,7 +9,7 @@ describe('Highways England tests', function() {
cy.get('[name=pc]').type(Cypress.env('postcode'));
cy.get('[name=pc]').parents('form').submit();
cy.url().should('include', '/around');
- cy.get('#map_box').click(210, 200);
+ cy.get('#map_box').click(240, 249);
cy.wait('@report-ajax');
cy.wait('@highways-tilma');
cy.get('#highways').should('contain', 'M6');
diff --git a/.cypress/cypress/integration/staff.js b/.cypress/cypress/integration/staff.js
index 88afb5490..ab1de0749 100644
--- a/.cypress/cypress/integration/staff.js
+++ b/.cypress/cypress/integration/staff.js
@@ -17,7 +17,7 @@ describe('Staff user tests', function() {
cy.get('[name=pc]').type(Cypress.env('postcode'));
cy.get('[name=pc]').parents('form').submit();
cy.url().should('include', '/around');
- cy.get('#map_box').click(210, 200);
+ cy.get('#map_box').click(240, 249);
cy.get('[name=form_as]').should('have.value', 'body');
cy.cleanUpXHR();
});
@@ -36,7 +36,7 @@ describe('Staff user tests', function() {
cy.get('[name=pc]').type(Cypress.env('postcode'));
cy.get('[name=pc]').parents('form').submit();
cy.url().should('include', '/around');
- cy.get('#map_box').click(210, 200);
+ cy.get('#map_box').click(240, 249);
cy.wait('@report-ajax');
cy.get('select:eq(3)').select('Graffiti');
cy.get('[name=title]').should('have.value', 'A Graffiti problem has been found');