Keep toast message around longer when testing (#6902)
This commit is contained in:
@ -809,8 +809,6 @@ export const doExport = async (
|
|||||||
|
|
||||||
await page.getByRole('button', { name: 'Submit command' }).click()
|
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()
|
await expect(page.getByText('Exported successfully')).toBeVisible()
|
||||||
|
|
||||||
if (exportFrom === 'sidebarButton' || exportFrom === 'commandBar') {
|
if (exportFrom === 'sidebarButton' || exportFrom === 'commandBar') {
|
||||||
|
@ -29,7 +29,10 @@ const save_ = async (file: ModelingAppFile, toastId: string) => {
|
|||||||
window.electron.join(downloadDir, file.name),
|
window.electron.join(downloadDir, file.name),
|
||||||
new Uint8Array(file.contents)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user