feat(tools): test navigation links (#43080)
* feat(tools): test navigation links * fix(tools): use single it
This commit is contained in:
committed by
GitHub
parent
14b795c305
commit
7e8a05ac1c
15
cypress/integration/learn/header/header-nav-links.js
Normal file
15
cypress/integration/learn/header/header-nav-links.js
Normal 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/');
|
||||||
|
});
|
||||||
|
});
|
Reference in New Issue
Block a user