From 0e8003c10192e7769ac244f05ba58dd52890bfc7 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Thu, 17 Oct 2024 11:54:52 +0200 Subject: [PATCH 1/2] Add RUE 2024 --- frontend/src/features/Regulation/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/features/Regulation/utils.ts b/frontend/src/features/Regulation/utils.ts index 00c211129d..c147bba127 100644 --- a/frontend/src/features/Regulation/utils.ts +++ b/frontend/src/features/Regulation/utils.ts @@ -220,6 +220,7 @@ const REG_OUTRE_MER = 'Reg. Outre-mer' const RUE_2019 = 'R(UE) 2019/1241' const RUE_1380 = 'R(UE) 1380/2013' const RUE_2022 = 'R(UE) 2022/1614' +const RUE_2024 = 'R(UE) 2024/2594' const RUE_494 = 'R(CE) 494/2002' const RUE_2017 = 'R(CE) 2017/118' @@ -248,6 +249,7 @@ export const LAWTYPES_TO_TERRITORY = { [RUE_2017]: UE, [RUE_2019]: UE, [RUE_2022]: UE, + [RUE_2024]: UE, [RUE_494]: UE } From 62dbf82fcfd193c3885e585c5e49e525c8e6d14e Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Thu, 17 Oct 2024 13:55:49 +0200 Subject: [PATCH 2/2] Fix REG number --- frontend/cypress/e2e/backoffice/new_regulation.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/cypress/e2e/backoffice/new_regulation.spec.ts b/frontend/cypress/e2e/backoffice/new_regulation.spec.ts index 5fcbb7268b..bfaf2fc303 100644 --- a/frontend/cypress/e2e/backoffice/new_regulation.spec.ts +++ b/frontend/cypress/e2e/backoffice/new_regulation.spec.ts @@ -8,7 +8,7 @@ context('New Regulation', () => { it('Select, change and remove law type Reg. MEMN', () => { cy.get('[id="Choisir un ensemble"]').click() - cy.get('[id="Choisir un ensemble-listbox"] > div').should('have.length', 18) + cy.get('[id="Choisir un ensemble-listbox"] > div').should('have.length', 19) cy.get('[id="Choisir un ensemble-listbox"]').type('{esc}') // Open menu and select "Reg. MEMN", the tag is displayed