* electron export test #3376 * typo * increase timeout
This commit is contained in:
@ -14,6 +14,15 @@ const save_ = async (file: ModelingAppFile) => {
|
||||
extensions.push(extension)
|
||||
}
|
||||
|
||||
if (!(window as any).playwrightSkipFilePicker) {
|
||||
// skip file picker, save to default location
|
||||
await window.electron.writeFile(
|
||||
file.name,
|
||||
new Uint8Array(file.contents)
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
// Open a dialog to save the file.
|
||||
const filePathMeta = await window.electron.save({
|
||||
defaultPath: file.name,
|
||||
|
Reference in New Issue
Block a user