2021-06-20 14:14:42 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								/* global cy */
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-07 16:30:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-11-22 00:09:38 +06:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								describe('Settings', () => {
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-07 16:30:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  it('should be possible to reset your progress', () => {
							 | 
						
					
						
							
								
									
										
										
										
											2020-11-22 00:09:38 +06:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    cy.visit('/');
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-07 16:30:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    cy.contains("Get started (it's free)").click();
							 | 
						
					
						
							
								
									
										
										
										
											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
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  });
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								});
							 |