Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #57 from uktrade/feature/noindex
Browse files Browse the repository at this point in the history
RT-226: Prevent indexing.
  • Loading branch information
NickFitz authored May 25, 2021
2 parents 2049ac9 + 29465f9 commit 35c6dd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/integration/noindex_nofollow_spec.js
Original file line number Diff line number Diff line change
@@ -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 <meta name="robots" content="noindex, nofollow"> tag', () => {
cy.visit(Cypress.config('baseUrl'));
cy.get('html head meta[name="robots"][content="noindex, nofollow"]').should('exist');
})
})
1 change: 1 addition & 0 deletions defend_data_capture/supply_chains/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<head>
<meta charset="utf-8">
<title>{% block page_title %}Defend Data Capture{% endblock page_title %}</title>
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#0b0c0c">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down

0 comments on commit 35c6dd7

Please sign in to comment.