From c7078203406a95dc6f3c3f6148d8fdceb0fff91f Mon Sep 17 00:00:00 2001 From: Keith Kennedy Date: Fri, 22 Sep 2023 15:04:04 +0100 Subject: [PATCH 1/3] Removed related links from standards page --- docs/standards.md | 6 ------ 1 file changed, 6 deletions(-) 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 --- From bf1e84c414980b5797cc3f69746b5f0042583739 Mon Sep 17 00:00:00 2001 From: Keith Kennedy Date: Fri, 22 Sep 2023 15:14:41 +0100 Subject: [PATCH 2/3] Updated related link test to check related link on a standards page --- cypress/e2e/spec.cy.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/spec.cy.js b/cypress/e2e/spec.cy.js index 0416bfc2..920a7ca5 100644 --- a/cypress/e2e/spec.cy.js +++ b/cypress/e2e/spec.cy.js @@ -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', () => { 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') }) }) From e0bcaab4a5e6b60f626c3cab3a356fd8d1f69bde Mon Sep 17 00:00:00 2001 From: Keith Kennedy <133027753+keithkennedyHO@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:40:55 +0100 Subject: [PATCH 3/3] Update cypress/e2e/spec.cy.js Co-authored-by: edhamiltonHO <92923571+edhamiltonHO@users.noreply.github.com> --- cypress/e2e/spec.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/spec.cy.js b/cypress/e2e/spec.cy.js index 920a7ca5..db08bf37 100644 --- a/cypress/e2e/spec.cy.js +++ b/cypress/e2e/spec.cy.js @@ -115,7 +115,7 @@ 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 through to standard page that has a related link cy.contains('Read our standards').click()