From e8549f5b46ef6551d627adfa3d7036958531a3a8 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Wed, 11 Sep 2024 17:32:12 +0200 Subject: [PATCH] Add number input type in functional tests --- frontend/tests/utils/form-content.ts | 3 ++- frontend/tests/utils/test-utils.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/tests/utils/form-content.ts b/frontend/tests/utils/form-content.ts index 7a2afd6b8..fb4f05f87 100644 --- a/frontend/tests/utils/form-content.ts +++ b/frontend/tests/utils/form-content.ts @@ -7,7 +7,8 @@ export enum FormFieldType { SELECT = 'select', SELECT_AUTOCOMPLETE = 'select-autocomplete', SELECT_MULTIPLE_AUTOCOMPLETE = 'select-multi-autocomplete', - TEXT = 'text' + TEXT = 'text', + NUMBER = 'number' } type FormField = { diff --git a/frontend/tests/utils/test-utils.ts b/frontend/tests/utils/test-utils.ts index a99ede306..574d11a1c 100644 --- a/frontend/tests/utils/test-utils.ts +++ b/frontend/tests/utils/test-utils.ts @@ -230,7 +230,7 @@ export const test = base.extend({ { name: 'expiry_date', type: type.DATE }, { name: 'link', type: type.TEXT }, { name: 'effort', type: type.SELECT }, - { name: 'cost', type: type.TEXT }, + { name: 'cost', type: type.NUMBER }, { name: 'folder', type: type.SELECT_AUTOCOMPLETE }, { name: 'reference_control', type: type.SELECT_AUTOCOMPLETE } ]);