Pass desktop export tests

This commit is contained in:
49lf
2024-11-25 14:17:46 -05:00
parent 08a4016fda
commit 4b0823dbbf
2 changed files with 34 additions and 41 deletions

View File

@ -693,13 +693,19 @@ export const makeTemplate: (
}
}
const PLAYWRIGHT_DOWNLOAD_DIR = 'downloads-during-playwright'
export const getPlaywrightDownloadDir = (page: Page) => {
return path.resolve(
page.TEST_SETTINGS_FILE_KEY,
PLAYWRIGHT_DOWNLOAD_DIR
)
}
const moveDownloadedFileTo = async (page: Page, toLocation: string) => {
await fsp.mkdir(path.dirname(toLocation), { recursive: true })
const downloadDir = path.resolve(
page.TEST_SETTINGS_FILE_KEY,
'downloads-during-playwright'
)
const downloadDir = getPlaywrightDownloadDir()
// Expect there to be at least one file
expect