✅ Ajoute un test end to end pour la sauvegarde de la simulation
parent
d18f4cff35
commit
7f7c75ce8f
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue