Files
freeCodeCamp/cypress/integration/learn/header/header-nav-links.js
Christian Z. Tamayo e2d6639773 feat(e2e): Add cypress globals to eslint overrides (#43234)
fix(docs): Remove cypress eslint note on e2e docs
2021-08-24 16:29:00 +02:00

14 lines
471 B
JavaScript

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/');
});
});