Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(dify-ui): make native form story locators locale-independent (#43250)

yyh96abb8ea220b
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 })