From 07861747d499822ad4d5362f143ce1cf7319bc15 Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Fri, 6 Dec 2024 17:14:30 +0100 Subject: [PATCH] tests(rgcp): ajout de tests pour le mois incomplet --- .../mon-entreprise/reduction-generale.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/site/cypress/integration/mon-entreprise/reduction-generale.ts b/site/cypress/integration/mon-entreprise/reduction-generale.ts index 0c840287b..022aa893f 100755 --- a/site/cypress/integration/mon-entreprise/reduction-generale.ts +++ b/site/cypress/integration/mon-entreprise/reduction-generale.ts @@ -217,6 +217,23 @@ describe( ).should('include.text', '666,33 €') }) + it('should handle incomplete months', function () { + cy.get(inputSelector).first().type('{selectall}1500') + cy.get('input[id="option-heures-sup-janvier"]').type('{selectall}5') + cy.get( + 'div[id="simulator-legend"] p[aria-describedby="options-mois-incomplet-description"]' + ) + .should('be.visible') + .click() + cy.get('input[id="option-rémunération-etp-janvier"]').should('be.visible') + cy.get('input[id="option-rémunération-primes-janvier"]').should( + 'be.visible' + ) + cy.get('input[id="option-rémunération-heures-sup-janvier"]').should( + 'be.visible' + ) + }) + it('should be RGAA compliant', function () { cy.contains('Réduction mensuelle').click() checkA11Y()