chore(client) remove contextual navigation (#41919)

This commit is contained in:
Sem Bauke
2021-04-28 15:10:43 +02:00
committed by GitHub
parent a0463d2c99
commit 20cbfce484
9 changed files with 13 additions and 93 deletions

View File

@ -1,26 +1,8 @@
/* global cy expect */
/* global cy */
describe('Settings', () => {
beforeEach(() => {
it('should be possible to visit the settings page', () => {
cy.visit('/');
cy.contains("Get started (it's free)").click({ force: true });
cy.visit('/settings');
});
describe('The `Sign me out of freeCodeCamp` button works properly', () => {
it('Should get rendered properly', () => {
cy.contains('Sign me out of freeCodeCamp')
.should('be.visible')
// We are checking for classes here to check for proper styling
// This will be replaces with Percy in the future
.should('have.class', 'btn-invert btn btn-lg btn-primary btn-block');
});
it('Should take to the landing page when clicked', () => {
cy.contains('Sign me out of freeCodeCamp').click({ force: true });
cy.location().should(loc => {
expect(loc.pathname).to.eq('/');
});
});
});
});