aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-12 14:47:46 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-19 17:59:36 +0000
commita28723f3e5fc4ec05166a8b8cb029cee8846555a (patch)
tree2ecbb5f06bc74d53c322c58a59a34617e725fef9 /.cypress
parent8d69e4d3f20db5d122d711673346c4ce9adc4242 (diff)
Fix check for visible sub map links.
I don't think this check could ever have worked, because items are invisible if their parent is set to `display: none`, so it would hide the links bar if it was already hidden, and show it if it was already shown. Use a js- class for the movement of the feed item into the sub map links.
Diffstat (limited to '.cypress')
-rw-r--r--.cypress/cypress/integration/regressions.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/regressions.js b/.cypress/cypress/integration/regressions.js
new file mode 100644
index 000000000..a0d5b3fc9
--- /dev/null
+++ b/.cypress/cypress/integration/regressions.js
@@ -0,0 +1,9 @@
+describe('Regression tests', function() {
+ it('Shows the sub-map links after clicking Try again', function() {
+ cy.viewport(480, 800);
+ cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.get('#map_box').click(200, 200);
+ cy.get('#try_again').click();
+ cy.get('#sub_map_links').should('be.visible');
+ });
+});