Keep toast message around longer when testing (#6902)

This commit is contained in:
Jace Browning
2025-05-13 13:59:52 -04:00
committed by GitHub
parent 33e83747f3
commit 0cc833e687
2 changed files with 4 additions and 3 deletions

View File

@ -809,8 +809,6 @@ export const doExport = async (
await page.getByRole('button', { name: 'Submit command' }).click()
// This usually happens immediately after. If we're too slow we don't
// catch it.
await expect(page.getByText('Exported successfully')).toBeVisible()
if (exportFrom === 'sidebarButton' || exportFrom === 'commandBar') {

View File

@ -29,7 +29,10 @@ const save_ = async (file: ModelingAppFile, toastId: string) => {
window.electron.join(downloadDir, file.name),
new Uint8Array(file.contents)
)
toast.success(EXPORT_TOAST_MESSAGES.SUCCESS, { id: toastId })
toast.success(EXPORT_TOAST_MESSAGES.SUCCESS + ' [TEST]', {
id: toastId,
duration: 5_000,
})
return
}