Unverified 提交 5da907b2 authored 作者: wwwillchen-bot's avatar wwwillchen-bot 提交者: GitHub

feat: reduce toast duration in test mode for faster E2E tests (#2551)

## Summary - Set toast duration to 500ms when in test mode to speed up E2E tests - This reduces test flakiness and speeds up tests that wait for toasts to disappear ## Test plan - Run E2E tests to verify toasts now disappear faster in test mode - Verify regular app behavior is unchanged (toasts use default duration) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2551" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Shorten toast duration to 500ms when test mode is enabled to speed up E2E runs and reduce flakiness. Production behavior is unchanged; toasts use the default duration outside test mode. <sup>Written for commit 5d38cc2b792a215b89c2c4c3a5f970c44a3fa120. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by: 's avatarWill Chen <willchen90@gmail.com> Co-authored-by: 's avatarClaude Opus 4.5 <noreply@anthropic.com>
上级 1547f5fb
差异被折叠。
......@@ -100,7 +100,10 @@ export default function RootLayout({ children }: { children: ReactNode }) {
>
{children}
</div>
<Toaster richColors />
<Toaster
richColors
duration={settings?.isTestMode ? 500 : undefined}
/>
</SidebarProvider>
</DeepLinkProvider>
</ThemeProvider>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论