aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-09-21 11:13:04 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-10-03 12:25:12 +0100
commit19f8ec9a3f61b1561cb4bebdcc0fb7da92421511 (patch)
tree2d12d4788bd6159c331f1c5de96f7f12c4aab4c0 /.cypress
parent4b5324221f126943f97d18a115faf9f3ed887d50 (diff)
Add cobrand options to browser-test script.
Add options to set the cobrand plus related options for co-ordinates, name and area id to the browser test command. Set BASE_URL to same as test server, as that is used in e.g. list link output.
Diffstat (limited to '.cypress')
-rw-r--r--.cypress/cypress/integration/bathnes.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/bathnes.js b/.cypress/cypress/integration/bathnes.js
new file mode 100644
index 000000000..29037fc00
--- /dev/null
+++ b/.cypress/cypress/integration/bathnes.js
@@ -0,0 +1,10 @@
+var cobrand = Cypress.env('cobrand');
+var only_or_skip = (cobrand == 'bathnes') ? describe.only : describe.skip;
+
+only_or_skip('Bath cobrand specific testing', function() {
+
+ it('loads the right front page', function() {
+ cy.visit('/');
+ cy.contains('North East Somerset');
+ });
+});