diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-12 14:59:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-22 15:00:46 +0100 |
commit | 158c9e95f0a63f1a53a598639263e532f0108ef6 (patch) | |
tree | 15a69b8d4dd6bb8e78de8b3997e014b38ec1ac80 | |
parent | 8d03691a077a3cb34a157fadf357530d089131c2 (diff) |
Try and avoid transient test failure.
-rw-r--r-- | .cypress/cypress/integration/around_filters.js | 3 |
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'); |