From 1cd672fa5754bae7791d30fa1babe040e3d17600 Mon Sep 17 00:00:00 2001 From: maymanaf Date: Wed, 10 Jul 2024 15:22:55 +0200 Subject: [PATCH] front: add route e2e test for operational studies --- front/src/common/BootstrapSNCF/NavBarSNCF.tsx | 2 +- .../DisplayItinerary/v2/DestinationV2.tsx | 5 +- .../DisplayItinerary/v2/OriginV2.tsx | 5 +- .../Itinerary/DisplayItinerary/v2/ViasV2.tsx | 10 +- .../components/Itinerary/ItineraryV2.tsx | 13 +- .../Itinerary/ModalSuggestedVias.tsx | 7 +- .../components/Pathfinding/PathfindingV2.tsx | 3 +- front/tests/005-operational-studies.spec.ts | 10 + front/tests/006-stdcm-page.spec.ts | 2 +- front/tests/007-op-rollingstock-tab.spec.ts | 6 +- front/tests/010-op-route-tab.spec.ts | 170 +++++++++ front/tests/assets/scenario-utlis.ts | 97 +++++ front/tests/pages/home-page-model.ts | 25 +- .../pages/operationa-studies-page-model.ts | 42 +++ .../pages/operational-studies-page-model.ts | 348 +++++++++++++++++- front/tests/pages/stdcm-page-model.ts | 18 - 16 files changed, 721 insertions(+), 42 deletions(-) create mode 100644 front/tests/010-op-route-tab.spec.ts create mode 100644 front/tests/assets/scenario-utlis.ts create mode 100644 front/tests/pages/operationa-studies-page-model.ts diff --git a/front/src/common/BootstrapSNCF/NavBarSNCF.tsx b/front/src/common/BootstrapSNCF/NavBarSNCF.tsx index 789c85c2034..451774be5df 100644 --- a/front/src/common/BootstrapSNCF/NavBarSNCF.tsx +++ b/front/src/common/BootstrapSNCF/NavBarSNCF.tsx @@ -87,7 +87,7 @@ const LegacyNavBarSNCF = ({ appName, logo = getLogo() }: Props) => { {i18n.language && getUnicodeFlagIcon(language2flag(i18n.language))} - {t(`language.${i18n.language}`)} + {t(`language.${i18n.language}`)} , )} - ) : (