From 565a8e9d2ff940713eb31c483178616834cd48c9 Mon Sep 17 00:00:00 2001 From: guilletmarion <57708683+guilletmarion@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:25:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Ajout=20niveau=20dipl=C3=B4me=20bac+4=20?= =?UTF-8?q?(#1391)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Ajout niveau diplôme bac+4 * Update constant.service.ts * Update recruteur.ts * Update buildAvailableDiplomas.tsx * Update AjouterVoeux.tsx * Update buildDiplomas.tsx * fix: test update --------- Co-authored-by: Alan Le Ruyet --- cypress/pages/SearchForm.ts | 4 ++-- server/src/services/constant.service.ts | 2 +- shared/constants/recruteur.ts | 2 +- .../openapi/__snapshots__/generateOpenapi.test.ts.snap | 10 +++++----- ui/components/espace_pro/AjouterVoeux.tsx | 2 +- ui/services/buildAvailableDiplomas.tsx | 4 ++-- ui/services/buildDiplomas.tsx | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cypress/pages/SearchForm.ts b/cypress/pages/SearchForm.ts index b2da5993a7..1291b6d885 100644 --- a/cypress/pages/SearchForm.ts +++ b/cypress/pages/SearchForm.ts @@ -2,8 +2,8 @@ const diplomaMap = { "3 (CAP...)": "Cap, autres formations niveau 3", "4 (BAC...)": "Bac, autres formations niveau 4", "5 (BTS, DEUST...)": "BTS, DEUST, autres formations niveaux 5 (Bac+2)", - "6 (Licence...)": "Licence, autres formations niveaux 6 (bac+3)", - "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (bac+5)", + "6 (Licence...)": "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", + "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (Bac+5)", } type Diploma = keyof typeof diplomaMap diff --git a/server/src/services/constant.service.ts b/server/src/services/constant.service.ts index dbe883d697..236b0048ca 100644 --- a/server/src/services/constant.service.ts +++ b/server/src/services/constant.service.ts @@ -17,7 +17,7 @@ export const NIVEAUX_POUR_LBA = { "3 (CAP...)": "Cap, autres formations niveau (Infrabac)", "4 (BAC...)": "BP, Bac, autres formations niveau (Bac)", "5 (BTS, DEUST...)": "BTS, DEUST, autres formations niveau (Bac+2)", - "6 (Licence, BUT...)": "Licence, autres formations niveau (Bac+3)", + "6 (Licence, BUT...)": "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveau (Bac+5)", } diff --git a/shared/constants/recruteur.ts b/shared/constants/recruteur.ts index 9a0952bf43..2dac389994 100644 --- a/shared/constants/recruteur.ts +++ b/shared/constants/recruteur.ts @@ -64,7 +64,7 @@ export const NIVEAUX_POUR_LBA = { "3 (CAP...)": "Cap, autres formations niveau (Infrabac)", "4 (BAC...)": "BP, Bac, autres formations niveau (Bac)", "5 (BTS, DEUST...)": "BTS, DEUST, autres formations niveau (Bac+2)", - "6 (Licence, BUT...)": "Licence, autres formations niveau (Bac+3)", + "6 (Licence, BUT...)": "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveau (Bac+5)", } diff --git a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap index 16a5dfa26a..6134bbf806 100644 --- a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap +++ b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap @@ -918,7 +918,7 @@ exports[`generateOpenApiSchema > should generate proper schema 1`] = ` "Cap, autres formations niveau (Infrabac)", "BP, Bac, autres formations niveau (Bac)", "BTS, DEUST, autres formations niveau (Bac+2)", - "Licence, autres formations niveau (Bac+3)", + "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "Master, titre ingénieur, autres formations niveau (Bac+5)", "Indifférent", ], @@ -6778,7 +6778,7 @@ Limite : 5 appel(s) / 1 seconde(s) "Cap, autres formations niveau (Infrabac)", "BP, Bac, autres formations niveau (Bac)", "BTS, DEUST, autres formations niveau (Bac+2)", - "Licence, autres formations niveau (Bac+3)", + "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "Master, titre ingénieur, autres formations niveau (Bac+5)", "Indifférent", ], @@ -6951,7 +6951,7 @@ Limite : 5 appel(s) / 1 seconde(s) "Cap, autres formations niveau (Infrabac)", "BP, Bac, autres formations niveau (Bac)", "BTS, DEUST, autres formations niveau (Bac+2)", - "Licence, autres formations niveau (Bac+3)", + "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "Master, titre ingénieur, autres formations niveau (Bac+5)", "Indifférent", ], @@ -10064,7 +10064,7 @@ Limite : 5 appel(s) / 1 seconde(s) "Cap, autres formations niveau (Infrabac)", "BP, Bac, autres formations niveau (Bac)", "BTS, DEUST, autres formations niveau (Bac+2)", - "Licence, autres formations niveau (Bac+3)", + "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "Master, titre ingénieur, autres formations niveau (Bac+5)", "Indifférent", ], @@ -10236,7 +10236,7 @@ Limite : 5 appel(s) / 1 seconde(s) "Cap, autres formations niveau (Infrabac)", "BP, Bac, autres formations niveau (Bac)", "BTS, DEUST, autres formations niveau (Bac+2)", - "Licence, autres formations niveau (Bac+3)", + "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", "Master, titre ingénieur, autres formations niveau (Bac+5)", "Indifférent", ], diff --git a/ui/components/espace_pro/AjouterVoeux.tsx b/ui/components/espace_pro/AjouterVoeux.tsx index 00344ac463..41bf14b854 100644 --- a/ui/components/espace_pro/AjouterVoeux.tsx +++ b/ui/components/espace_pro/AjouterVoeux.tsx @@ -195,7 +195,7 @@ const AjouterVoeuxForm = ({ - + {errors.job_level_label && touched.job_level_label && {errors.job_level_label as string}} diff --git a/ui/services/buildAvailableDiplomas.tsx b/ui/services/buildAvailableDiplomas.tsx index 8591ef30c7..68662176ba 100644 --- a/ui/services/buildAvailableDiplomas.tsx +++ b/ui/services/buildAvailableDiplomas.tsx @@ -5,8 +5,8 @@ const diplomaMap = { "3 (CAP...)": "Cap, autres formations niveau 3", "4 (BAC...)": "Bac, autres formations niveau 4", "5 (BTS, DEUST...)": "BTS, DEUST, autres formations niveaux 5 (Bac+2)", - "6 (Licence, BUT...)": "Licence, autres formations niveaux 6 (bac+3)", - "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (bac+5)", + "6 (Licence, BUT...)": "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", + "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (Bac+5)", } const defaultDiploma = "Indifférent" diff --git a/ui/services/buildDiplomas.tsx b/ui/services/buildDiplomas.tsx index 09c70409bc..32c8994e89 100644 --- a/ui/services/buildDiplomas.tsx +++ b/ui/services/buildDiplomas.tsx @@ -4,8 +4,8 @@ const diplomaMap = { "3 (CAP...)": "Cap, autres formations niveau 3", "4 (BAC...)": "Bac, autres formations niveau 4", "5 (BTS, DEUST...)": "BTS, DEUST, autres formations niveaux 5 (Bac+2)", - "6 (Licence...)": "Licence, autres formations niveaux 6 (bac+3)", - "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (bac+5)", + "6 (Licence...)": "Licence, Maîtrise, autres formations niveaux 6 (Bac+3 à Bac+4)", + "7 (Master, titre ingénieur...)": "Master, titre ingénieur, autres formations niveaux 7 ou 8 (Bac+5)", } export default function buildDiplomas() {