Electron export test #3376 (#3512)

* electron export test #3376

* typo

* increase timeout
This commit is contained in:
Kurt Hutten
2024-08-19 16:29:44 +10:00
committed by GitHub
parent 5e694961e8
commit 2e24137863
4 changed files with 132 additions and 16 deletions

View File

@ -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,