From 7b6c7d17a95665c279e9f17d9ecef0e626066e6b Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Fri, 31 Jan 2025 17:35:48 +0100 Subject: [PATCH] =?UTF-8?q?fix(pam):=20correction=20des=20r=C3=A8gles=20de?= =?UTF-8?q?=20l'assistant=20revenus=20pour=20les=20dentistes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...claration-revenus-pamc-formulaire.publicodes | 2 -- .../assistants/declaration-revenus-pamc.ts | 26 ++++++++++--------- .../components/Résultats.tsx | 6 +++-- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/modele-social/règles/declaration-pam/déclaration-revenus-pamc-formulaire.publicodes b/modele-social/règles/declaration-pam/déclaration-revenus-pamc-formulaire.publicodes index ba2582e6b..8223a37f2 100644 --- a/modele-social/règles/declaration-pam/déclaration-revenus-pamc-formulaire.publicodes +++ b/modele-social/règles/declaration-pam/déclaration-revenus-pamc-formulaire.publicodes @@ -72,13 +72,11 @@ déclaration revenus PAMC . cotisations sociales obligatoires: déclaration revenus PAMC . SNIR: déclaration revenus PAMC . SNIR . honoraires remboursables: - non applicable si: profession . dentiste titre: honoraires tirés d’actes conventionnés unité: €/an déclaration revenus PAMC . SNIR . dépassements honoraires: titre: dépassements d’honoraires - non applicable si: profession . dentiste question: dépassements d’honoraires unité: €/an diff --git a/site/cypress/integration/mon-entreprise/assistants/declaration-revenus-pamc.ts b/site/cypress/integration/mon-entreprise/assistants/declaration-revenus-pamc.ts index 3f3c93dfd..f84e22499 100644 --- a/site/cypress/integration/mon-entreprise/assistants/declaration-revenus-pamc.ts +++ b/site/cypress/integration/mon-entreprise/assistants/declaration-revenus-pamc.ts @@ -321,15 +321,6 @@ describe( cy.contains('Chirurgien/chirurgienne-dentiste').click() - cy.get(`#${idPrefix}_SNIR___honoraires_remboursables-title`).should( - 'not.exist' - ) - cy.get(`#${idPrefix}_SNIR___honoraires_remboursables`).should('not.exist') - cy.get(`#${idPrefix}_SNIR___dépassements_honoraires-title`).should( - 'not.exist' - ) - cy.get(`#${idPrefix}_SNIR___dépassements_honoraires`).should('not.exist') - cy.get(`#${idPrefix}_SNIR___taux_urssaf-title`).should('be.visible') cy.get(`#${idPrefix}_SNIR___taux_urssaf`).should('be.visible') @@ -349,15 +340,26 @@ describe( cy.get(`#${idPrefix}_SNIR___taux_urssaf-value`).should('not.exist') cy.contains('Chirurgien/chirurgienne-dentiste').click() - cy.get('input[type="text"]').as('inputs').should('have.length', 4) + cy.get('input[type="text"]').as('inputs').should('have.length', 6) cy.get('@inputs').each(($input) => { cy.wrap($input).type('{selectall}100') }) - // TODO: à compléter une fois clarifié les résultats pour dentistes - cy.get(`#${idPrefix}_SNIR___taux_urssaf-label`).should('be.visible') cy.get(`#${idPrefix}_SNIR___taux_urssaf-value`).should('be.visible') + + cy.get(`#${idPrefix}_SNIR___honoraires_remboursables-label`).should( + 'not.exist' + ) + cy.get(`#${idPrefix}_SNIR___honoraires_remboursables-value`).should( + 'not.exist' + ) + cy.get(`#${idPrefix}_SNIR___dépassements_honoraires-label`).should( + 'not.exist' + ) + cy.get(`#${idPrefix}_SNIR___dépassements_honoraires-value`).should( + 'not.exist' + ) }) it('devrait montrer des champs différents aux médecins', function () { diff --git a/site/source/pages/assistants/declaration-revenus-pamc/components/Résultats.tsx b/site/source/pages/assistants/declaration-revenus-pamc/components/Résultats.tsx index 0c8ec9c85..ebaad0faf 100644 --- a/site/source/pages/assistants/declaration-revenus-pamc/components/Résultats.tsx +++ b/site/source/pages/assistants/declaration-revenus-pamc/components/Résultats.tsx @@ -69,8 +69,10 @@ export default function Résultats() { />

Données transmises par l’Assurance Maladie

- - + + + +