2020-11-22 00:09:38 +06:00
|
|
|
describe('Settings', () => {
|
2021-12-11 10:04:16 +01:00
|
|
|
before(() => {
|
2021-06-24 12:50:36 +03:00
|
|
|
cy.login();
|
2021-12-11 10:04:16 +01:00
|
|
|
});
|
|
|
|
it('should be possible to reset your progress', () => {
|
2020-11-22 00:09:38 +06:00
|
|
|
cy.visit('/settings');
|
2021-05-07 16:30:38 +02:00
|
|
|
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');
|
2020-11-22 00:09:38 +06:00
|
|
|
});
|
|
|
|
});
|