mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-17 19:10:29 +01:00
Nicco
c3b1772728
* testing * try playwrigth * testing * add pr support * not on each commit * add test ids * make backend more configuratble * 2.0.2 * spec
12 lines
495 B
TypeScript
12 lines
495 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, 'alfred-kenneally', checksums[1])
|
|
await checkLinkForDownload(page, link, 'AES.pdf', checksums[0])
|
|
})
|