From d0e103b2685cc1195a1b473d1491fabdaf589bb3 Mon Sep 17 00:00:00 2001 From: Nick Fitzsimons Date: Tue, 25 May 2021 10:42:28 +0100 Subject: [PATCH 1/2] Prevent indexing. Ref. "Indexing" at https://readme.trade.gov.uk/docs/procedures/1st-go-live.html?highlight=indexing#operations --- defend_data_capture/supply_chains/templates/base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/defend_data_capture/supply_chains/templates/base.html b/defend_data_capture/supply_chains/templates/base.html index e228ffa0..d7712430 100644 --- a/defend_data_capture/supply_chains/templates/base.html +++ b/defend_data_capture/supply_chains/templates/base.html @@ -6,6 +6,7 @@ {% block page_title %}Defend Data Capture{% endblock page_title %} + From 29465f97b47b66ae4ee17cbc862de94056643c59 Mon Sep 17 00:00:00 2001 From: Nick Fitzsimons Date: Tue, 25 May 2021 10:59:01 +0100 Subject: [PATCH 2/2] Test for robots meta tag. --- cypress/integration/noindex_nofollow_spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cypress/integration/noindex_nofollow_spec.js diff --git a/cypress/integration/noindex_nofollow_spec.js b/cypress/integration/noindex_nofollow_spec.js new file mode 100644 index 00000000..61d95bfa --- /dev/null +++ b/cypress/integration/noindex_nofollow_spec.js @@ -0,0 +1,12 @@ +import users from '../fixtures/user.json' +import govDepartments from '../fixtures/govDepartment.json' + +const user = users[0].fields +const govDepartment = govDepartments[0].fields + +describe('The Home Page', () => { + it('has a tag', () => { + cy.visit(Cypress.config('baseUrl')); + cy.get('html head meta[name="robots"][content="noindex, nofollow"]').should('exist'); + }) +})