Skip to content

Commit

Permalink
Removed related links from standards page (#271)
Browse files Browse the repository at this point in the history
* Removed related links from standards page

* Updated related link test to check related link on a standards page

* Update cypress/e2e/spec.cy.js

Co-authored-by: edhamiltonHO <[email protected]>

---------

Co-authored-by: edhamiltonHO <[email protected]>
  • Loading branch information
keithkennedyHO and edhamiltonHO committed Sep 22, 2023
1 parent 62ea0dd commit 5ca8c3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 5 additions & 4 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ describe('Cookies page links from footer test', () => {
})

describe('Related links respect path prefix', () => {
it('finds the related writing a standard link and follows it to a valid page', () => {
it('finds the correct related link and follows it to a valid page', () => {
cy.visit(testing_params.TEST_ROOT_URL)
// Click to standards page that has a related link
// Click through to standard page that has a related link
cy.contains('Read our standards').click()
cy.contains('Infrastructure utilisation monitoring').click()
// Use the related link
cy.contains('.x-govuk-related-navigation a', 'Writing a standard').click()
cy.contains('h1', 'Writing a standard')
cy.contains('.x-govuk-related-navigation a', 'Monitor and measure proactively').click()
cy.contains('h1', 'Monitor and measure proactively')
})
})

Expand Down
6 changes: 0 additions & 6 deletions docs/standards.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ paginationHeading: false
pagination:
data: collections.getAllStandardsOrderedByTitle
size: 10
related:
sections:
- title: Related links
items:
- text: Writing a standard
href: /standards/writing-a-standard/ # https://github.com/11ty/eleventy-dev-server/pull/64
---

0 comments on commit 5ca8c3b

Please sign in to comment.