Skip to content

Commit

Permalink
fix(e2e): set number of idcc for h2 in contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Apr 16, 2024
1 parent 45c1e49 commit adba475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe("Contributions", () => {
);
cy.get("h2").should(
"contain",
"Votre convention collective est Maisons à succursales de vente au détail d'habillement (IDCC 675)"
"Votre convention collective est Maisons à succursales de vente au détail d'habillement (IDCC 0675)"
);

cy.get("body").should(
Expand Down
3 changes: 3 additions & 0 deletions packages/react-ui/src/field/InputDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export const InputDate = ({ value, onChange, invalid, ref, ...props }) => {
const day = splitParts[0] ?? "";
const month = splitParts[1] ?? "";
const year = splitParts[2] ?? "";
if (year.length === 2) {
return `20${year}-${month}-${day}`;
}
return `${year}-${month}-${day}`;
};

Expand Down

0 comments on commit adba475

Please sign in to comment.