mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(dify-ui): make native form story locators locale-independent (#43250)
This commit is contained in:
1 file changed
+2
-2
@@ -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 })
|
||||
|
||||
Reference in new issue
Block a user