Files
freeCodeCamp/cypress/integration/settings/settings.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

13 lines
404 B
JavaScript

describe('Settings', () => {
it('should be possible to reset your progress', () => {
cy.login();
cy.visit('/settings');
cy.contains('Reset all of my progress').click();
cy.contains('Reset everything. I want to start from the beginning').click();
cy.location().should(loc => {
expect(loc.pathname).to.eq('/');
});
cy.contains('Your progress has been reset');
});
});