aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-22 17:14:12 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-26 15:08:14 +0100
commit925ebbebe7e41a89c80cf0ee93405378cb17d44a (patch)
treec62b2f6796dc7a47059f84eb12fd23b652b5050e /.cypress
parent3b82cc190589cbc712ec35e28efa1dd0af2f0d82 (diff)
Fix issues with new report pin, improve cursor.
The "coerce pin ID to integer" behaviour to fix a previous issue was coercing undefined to NaN, which then caused other problems with the new report pin, such as fading out when hovered, and being the wrong size. Also improve the cursor handling, showing the grab/ grabbing cursors where available.
Diffstat (limited to '.cypress')
-rw-r--r--.cypress/cypress/integration/regressions.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/regressions.js b/.cypress/cypress/integration/regressions.js
index 209013339..c54bc8e9f 100644
--- a/.cypress/cypress/integration/regressions.js
+++ b/.cypress/cypress/integration/regressions.js
@@ -14,6 +14,11 @@ describe('Regression tests', function() {
cy.get('#sub_map_links').should('be.visible');
cy.cleanUpXHR();
});
+ it('Does not fade on new pin hover', function() {
+ cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.get('#map_box').click(200, 200);
+ cy.get('#map_box image').last().trigger('mousemove').should('have.css', 'opacity', '1');
+ });
it('Does not hide the new report pin even if you click really quick', function() {
cy.visit('/around?pc=BS10+5EE&js=1');
cy.get('#map_box').click(200, 200);