mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-03-13 05:05:05 +00:00
test(économie-collaborative): arrange un peu les tests
This commit is contained in:
parent
3f79d65020
commit
223c6c4397
1 changed files with 6 additions and 7 deletions
|
@ -10,10 +10,9 @@ describe('Simulateur de location de meublé', () => {
|
|||
})
|
||||
|
||||
it('s’affiche', () => {
|
||||
cy.get('h1').should(
|
||||
'contain',
|
||||
'Simulateur de revenu pour location de logement meublé'
|
||||
)
|
||||
cy.get('h1')
|
||||
.should('be.visible')
|
||||
.and('contain', 'Simulateur de revenu pour location de logement meublé')
|
||||
})
|
||||
|
||||
it('affiche le formulaire', () => {
|
||||
|
@ -24,17 +23,17 @@ describe('Simulateur de location de meublé', () => {
|
|||
|
||||
it('chiffre les cotisations quand on saisi des revenus', () => {
|
||||
cy.get('input#location_de_logement_meublé___courte_durée___recettes').type(
|
||||
'25000'
|
||||
'{selectall}25000'
|
||||
)
|
||||
|
||||
cy.get('#location_de_logement_meublé___cotisations-value')
|
||||
.should('be.visible')
|
||||
.should('have.lengthOf.at.least', 1)
|
||||
.and('have.lengthOf.at.least', 1)
|
||||
})
|
||||
|
||||
it('ne chiffre rien si on dépasse le plafond de recettes au régime général', () => {
|
||||
cy.get('input#location_de_logement_meublé___courte_durée___recettes').type(
|
||||
'78000'
|
||||
'{selectall}78000'
|
||||
)
|
||||
|
||||
cy.get('#location_de_logement_meublé___cotisations-value').should(
|
||||
|
|
Loading…
Add table
Reference in a new issue