2022-07-19 21:55:05 +02:00
|
|
|
import { test } from '@playwright/test'
|
|
|
|
import { checkLinkForDownload, createNote, getFileChecksum } from '../utils'
|
|
|
|
import Files from './files'
|
|
|
|
|
|
|
|
test('multiple', async ({ page }) => {
|
|
|
|
const files = [Files.PDF, Files.Image]
|
|
|
|
const checksums = await Promise.all(files.map(getFileChecksum))
|
|
|
|
const link = await createNote(page, { files, views: 2 })
|
2022-11-15 13:05:13 +01:00
|
|
|
await checkLinkForDownload(page, link, 'image.jpg', checksums[1])
|
2022-07-19 21:55:05 +02:00
|
|
|
await checkLinkForDownload(page, link, 'AES.pdf', checksums[0])
|
|
|
|
})
|