Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed related links from standards page #271

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ 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', () => {
keithkennedyHO marked this conversation as resolved.
Show resolved Hide resolved
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
---