From 71f1936e55614e403ee52300c008a00d09e54058 Mon Sep 17 00:00:00 2001 From: JohnTParsons Date: Wed, 10 May 2023 09:25:45 +0100 Subject: [PATCH] docs(812): revert new tests in header-navigation.cy.js --- .../site/functional/header-navigation.cy.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cypress/site/functional/header-navigation.cy.js b/cypress/site/functional/header-navigation.cy.js index 85e65d156d..cfb423535f 100644 --- a/cypress/site/functional/header-navigation.cy.js +++ b/cypress/site/functional/header-navigation.cy.js @@ -14,14 +14,6 @@ describe('Documentation Site - header-navigation component', () => { cy.mockConsentAndVisit('/about/contact-us'); cy.get(indicatorID).should('have.attr', 'aria-current'); }); - it('pages should have header links', () => { - cy.mockConsentAndVisit('/'); - cy.contains('a', 'About').should('exist'); - cy.contains('a', 'Guides').should('exist'); - cy.contains('a', 'Theme').should('exist'); - cy.contains('a', 'Components').should('exist'); - cy.contains('a', 'Patterns').should('exist'); - }); }); describe('Mobile view', () => { @@ -36,15 +28,5 @@ describe('Documentation Site - header-navigation component', () => { cy.get(hamburgerIconTestID).first().click(); cy.get(sidebarTestID).should('exist').and('not.be.visible'); }); - it('pages should have header links', () => { - cy.mockConsentAndVisit('/about/contact-us'); - // For reliability, wait for sidebar to be visible before doing header tests - cy.get(sidebarTestID).should('be.visible'); - cy.contains('a', 'About').should('exist'); - cy.contains('a', 'Guides').should('exist'); - cy.contains('a', 'Theme').should('exist'); - cy.contains('a', 'Components').should('exist'); - cy.contains('a', 'Patterns').should('exist'); - }); }); });