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.

test(dify-ui): wait for time picker visibility before axe scan (#44105)

yyh9c833be8a370
diff --git a/packages/dify-ui/src/date-time/time-picker/index.stories.tsx b/packages/dify-ui/src/date-time/time-picker/index.stories.tsx
index 87acfbba4fc..a35ebc804bb 100644
--- a/packages/dify-ui/src/date-time/time-picker/index.stories.tsx
+++ b/packages/dify-ui/src/date-time/time-picker/index.stories.tsx
@@ -155,6 +155,7 @@ export const UnavailableTime: Story = {
)
await expect(body.getByRole('button', { name: 'OK' })).toBeDisabled()
await expect(body.getByRole('status')).toHaveTextContent('This date or time is unavailable.')
+ await waitFor(() => expect(body.getByRole('dialog', { name: 'Start time' })).toBeVisible())
},
}