From 3fbdcc7946796df4dcd3890e1ebd26fd621f9b78 Mon Sep 17 00:00:00 2001 From: maymanaf Date: Fri, 28 Jun 2024 19:15:22 +0200 Subject: [PATCH] front: add e2e tests search and filter rolling stock --- .../RollingStockEditorButtons.tsx | 3 + .../SearchRollingStock.tsx | 2 +- front/tests/009-rollingstock-editor.spec.ts | 77 +++- .../thermal-electric_rolling_stock.json | 367 ++++++++++++++++++ front/tests/assets/utils.ts | 15 +- .../pages/rollingstock-editor-page-model.ts | 63 ++- 6 files changed, 513 insertions(+), 14 deletions(-) create mode 100644 front/tests/assets/rollingStock/thermal-electric_rolling_stock.json diff --git a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx index be4fbbe4366..8c5ef0903ea 100644 --- a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx +++ b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx @@ -111,6 +111,7 @@ const RollingStockEditorButtons = ({ })} >