Files
freeCodeCamp/cypress/integration/settings/settings.js
2021-05-07 07:30:38 -07:00

16 lines
483 B
JavaScript

/* global cy expect */
describe('Settings', () => {
it('should be possible to reset your progress', () => {
cy.visit('/');
cy.contains("Get started (it's free)").click();
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');
});
});