Ajoute un test end to end pour la sauvegarde de la simulation

pull/410/head
Johan Girod 2018-10-17 13:33:22 +02:00
parent d18f4cff35
commit 7f7c75ce8f
1 changed files with 15 additions and 0 deletions

View File

@ -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')