Skip to content

Commit

Permalink
docs(812): revert new tests in header-navigation.cy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTParsons authored and JohnTParsons committed May 10, 2023
1 parent b2cc896 commit 71f1936
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cypress/site/functional/header-navigation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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');
});
});
});

0 comments on commit 71f1936

Please sign in to comment.