From 8c177d38eddececce7baeb42499727bee351f022 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Wed, 5 Feb 2025 22:43:16 +0100 Subject: [PATCH] =?UTF-8?q?test(=C3=A9conomie-collaborative):=20v=C3=A9rif?= =?UTF-8?q?ie=20que=20les=20cotisations=20s=E2=80=99affichent=20bien=20qua?= =?UTF-8?q?nd=20on=20saisit=20les=20recettes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mon-entreprise/simulateur-location-meuble.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/site/cypress/integration/mon-entreprise/simulateur-location-meuble.ts b/site/cypress/integration/mon-entreprise/simulateur-location-meuble.ts index d41c9c93d..05e59ea45 100644 --- a/site/cypress/integration/mon-entreprise/simulateur-location-meuble.ts +++ b/site/cypress/integration/mon-entreprise/simulateur-location-meuble.ts @@ -17,9 +17,19 @@ describe('Simulateur de location de meublé', () => { }) it('affiche le formulaire', () => { - cy.get('input#location_de_logement___meublé___loyer___net').should( - 'be.visible' + cy.get( + 'input#location_de_logement_meublé___courte_durée___recettes' + ).should('be.visible') + }) + + it('chiffre les cotisations quand on saisi des revenus', () => { + cy.get('input#location_de_logement_meublé___courte_durée___recettes').type( + '1000' ) + + cy.get('input#location_de_logement_meublé___cotisations') + .should('be.visible') + .should('have.lengthOf.at.least', 1) }) it('est accessible', function () {