From c8522d91cf0ee0b7c6d191a3fc844aa4ab222c6a Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Tue, 7 Jan 2025 09:55:25 +0100 Subject: [PATCH] [EuiSuperDatePicker] Fix locale date string test (#8258) --- .../date_popover/absolute_tab.test.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/eui/src/components/date_picker/super_date_picker/date_popover/absolute_tab.test.tsx b/packages/eui/src/components/date_picker/super_date_picker/date_popover/absolute_tab.test.tsx index 10f49342d61..97b5543246b 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/date_popover/absolute_tab.test.tsx +++ b/packages/eui/src/components/date_picker/super_date_picker/date_popover/absolute_tab.test.tsx @@ -115,13 +115,17 @@ describe('EuiAbsoluteTab', () => { locale: LocaleSpecifier; dateString: string; }>([ - { locale: 'en', dateString: 'Mon Jan 1st' }, - { locale: 'zh-CN', dateString: '周一 1月 1日' }, - { locale: 'ja-JP', dateString: '月 1月 1日' }, - { locale: 'fr-FR', dateString: 'lun. janv. 1er' }, + { locale: 'en', dateString: 'Mon Jan 2024 1st' }, + { locale: 'zh-CN', dateString: '周一 1月 2024 1日' }, + { locale: 'ja-JP', dateString: '月 1月 2024 1日' }, + { locale: 'fr-FR', dateString: 'lun. janv. 2024 1er' }, ])('%p', ({ locale, dateString }) => { const { getByTestSubject } = render( - + ); const input = getByTestSubject('superDatePickerAbsoluteDateInput');