feat(tools): test navigation links (#43080)
* feat(tools): test navigation links * fix(tools): use single itpull/43092/head
parent
14b795c305
commit
7e8a05ac1c
|
@ -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/');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue