aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-10-12 14:59:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-10-22 15:00:46 +0100
commit158c9e95f0a63f1a53a598639263e532f0108ef6 (patch)
tree15a69b8d4dd6bb8e78de8b3997e014b38ec1ac80 /.cypress
parent8d03691a077a3cb34a157fadf357530d089131c2 (diff)
Try and avoid transient test failure.
Diffstat (limited to '.cypress')
-rw-r--r--.cypress/cypress/integration/around_filters.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/.cypress/cypress/integration/around_filters.js b/.cypress/cypress/integration/around_filters.js
index 3facf9e8c..d14fe34dd 100644
--- a/.cypress/cypress/integration/around_filters.js
+++ b/.cypress/cypress/integration/around_filters.js
@@ -115,7 +115,8 @@ describe('Around page filtering and push state', function() {
cy.visit('/around?lon=-2.295894&lat=51.526877&zoom=6');
// get the second image which is the pin, first is the shadow
cy.get('image[title="Lights out in tunnel"]:last').invoke('attr', 'xlink:href').should('contain', 'small');
- cy.get('image[title="Lights out in tunnel"]:last').click();
+ // force to hopefully work around apparent Cypress SVG issue
+ cy.get('image[title="Lights out in tunnel"]:last').click({force: true});
cy.wait('@show-report');
cy.contains('Back to all reports');
cy.get('image[title="Lights out in tunnel"]:last').invoke('attr', 'xlink:href').should('not.contain', 'small');