From 96abb8ea220b5d17a2ef2958d94ffbf60d1cf950 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Wed, 30 Sep 2026 01:03:29 +0000 Subject: [PATCH] fix(dify-ui): make native form story locators locale-independent (#43250) --- packages/dify-ui/src/date-time/date-picker/index.stories.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dify-ui/src/date-time/date-picker/index.stories.tsx b/packages/dify-ui/src/date-time/date-picker/index.stories.tsx index 81310f91fb0..e1987a1265c 100644 --- a/packages/dify-ui/src/date-time/date-picker/index.stories.tsx +++ b/packages/dify-ui/src/date-time/date-picker/index.stories.tsx @@ -150,8 +150,8 @@ export const NativeForm: Story = { ) for (const [label, name] of [ ['Start date (required)', 'Start date (required)'], - ['Start time', 'Start time 1:30 PM'], - ['Reminder (UTC)', 'Reminder (UTC) Jan 15, 2025, 1:30 PM'], + ['Start time', /^Start time\b/], + ['Reminder (UTC)', /^Reminder \(UTC\)/], ] as const) { await userEvent.click(canvas.getByText(label, { exact: true })) const field = canvas.getByRole('button', { name })