From 5ca8c3bb1f57150c1fc3e035d1f3d30400f4218d Mon Sep 17 00:00:00 2001 From: Keith Kennedy <133027753+keithkennedyHO@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:05:06 +0100 Subject: [PATCH] Removed related links from standards page (#271) * 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 <92923571+edhamiltonHO@users.noreply.github.com> --------- Co-authored-by: edhamiltonHO <92923571+edhamiltonHO@users.noreply.github.com> --- cypress/e2e/spec.cy.js | 9 +++++---- docs/standards.md | 6 ------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/cypress/e2e/spec.cy.js b/cypress/e2e/spec.cy.js index 0416bfc2..db08bf37 100644 --- a/cypress/e2e/spec.cy.js +++ b/cypress/e2e/spec.cy.js @@ -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') }) }) diff --git a/docs/standards.md b/docs/standards.md index 226af48b..3d13e51a 100644 --- a/docs/standards.md +++ b/docs/standards.md @@ -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 ---