test(e2e): more settings tests (#42046)
This commit is contained in:
committed by
GitHub
parent
94788e2719
commit
de40fe86e9
@ -1,8 +1,15 @@
|
||||
/* global cy */
|
||||
/* global cy expect */
|
||||
|
||||
describe('Settings', () => {
|
||||
it('should be possible to visit the settings page', () => {
|
||||
it('should be possible to reset your progress', () => {
|
||||
cy.visit('/');
|
||||
cy.contains("Get started (it's free)").click({ force: true });
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user