Fix a ton of syntax changes and deflake 2 more tests (pain)

This commit is contained in:
49lf
2024-12-03 20:03:54 -05:00
parent 12b00aca34
commit 119cacf6a8
8 changed files with 164 additions and 117 deletions

View File

@ -707,13 +707,13 @@ 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)
return path.resolve(page.dir, PLAYWRIGHT_DOWNLOAD_DIR)
}
const moveDownloadedFileTo = async (page: Page, toLocation: string) => {
await fsp.mkdir(path.dirname(toLocation), { recursive: true })
const downloadDir = getPlaywrightDownloadDir()
const downloadDir = getPlaywrightDownloadDir(page)
// Expect there to be at least one file
expect