diff --git a/cypress/integration/embauche/embauche.js b/cypress/integration/embauche/embauche.js index 38c855da4..c1cdcfaaf 100644 --- a/cypress/integration/embauche/embauche.js +++ b/cypress/integration/embauche/embauche.js @@ -28,6 +28,21 @@ describe('Landing basic test', function() { }) }) +describe('Simulation saving test', function() { + it('should save the current simulation', async function() { + cy.visit('/') + salaryInput('Salaire net').type('5471') + cy.tick(500) + cy.contains('Autres').click() + cy.contains('passer').click() + cy.contains('passer').click() + cy.tick(2000).then(() => this.clock.restore) + cy.visit('/') + cy.contains('Retrouver ma simulation').click() + salaryInput('Salaire net').should('have.value', '5471') + }) +}) + describe('Iframe integration test', function() { it('should display an iframe of the simulateur', function() { cy.visit('/integration-test')