From 09be17f42aaf9a0b0be1551e10688bcf5adc40f0 Mon Sep 17 00:00:00 2001 From: maymanaf Date: Mon, 1 Jul 2024 13:36:59 +0200 Subject: [PATCH] fixup! front: add e2e tests search and filter rolling stock --- front/playwright.config.ts | 4 +- .../RollingStockEditorButtons.tsx | 6 +- .../RollingStockEditorFormModal.tsx | 4 +- .../SearchRollingStock.tsx | 2 +- front/tests/009-rollingstock-editor.spec.ts | 79 +++++++++++++++++-- .../pages/rollingstock-editor-page-model.ts | 1 + 6 files changed, 80 insertions(+), 16 deletions(-) diff --git a/front/playwright.config.ts b/front/playwright.config.ts index 3ae73e059e4..43f3703555f 100644 --- a/front/playwright.config.ts +++ b/front/playwright.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ testDir: './tests', /* Maximum time one test can run for. */ - timeout: 50 * 1000, + timeout: 60 * 1000, expect: { /** * Maximum time expect() should wait for the condition to be met. @@ -27,7 +27,7 @@ export default defineConfig({ /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ - retries: process.env.CI ? 2 : 0, + retries: process.env.CI ? 3 : 0, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ diff --git a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx index 8c5ef0903ea..9795a41f7e3 100644 --- a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx +++ b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorButtons.tsx @@ -111,7 +111,7 @@ const RollingStockEditorButtons = ({ })} > {!errorObject && (