feat(tools): test navigation links (#43080)

* feat(tools): test navigation links

* fix(tools): use single it
pull/43092/head
Nicholas Carrigan (he/him) 2021-07-31 00:21:50 -07:00 committed by GitHub
parent 14b795c305
commit 7e8a05ac1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

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