mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 16:26:28 +00:00
12 lines
488 B
TypeScript
12 lines
488 B
TypeScript
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 })
|
|
await checkLinkForDownload(page, link, 'image.jpg', checksums[1])
|
|
await checkLinkForDownload(page, link, 'AES.pdf', checksums[0])
|
|
})
|