diff --git a/cypress/integration/learn/header/header-nav-links.js b/cypress/integration/learn/header/header-nav-links.js new file mode 100644 index 00000000000..2c4ddb56e74 --- /dev/null +++ b/cypress/integration/learn/header/header-nav-links.js @@ -0,0 +1,15 @@ +/* global cy */ + +describe('Navigation links', () => { + it('should render the expected forum and news links.', () => { + cy.visit('/learn'); + cy.get('.toggle-button-nav').should('be.visible'); + cy.get('.toggle-button-nav').click(); + cy.get('.nav-list') + .contains('Forum') + .should('have.attr', 'href', 'https://forum.freecodecamp.org/'); + cy.get('.nav-list') + .contains('News') + .should('have.attr', 'href', 'https://freecodecamp.org/news/'); + }); +});