mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-23 00:36:28 +00:00
Nicco
d7e5a34b14
* move to packages * update deps * update deps * actions maintenance * don't use blob * cli * fix default import * use synthetic default imports * remove comment * cli packaging * node 18 guard * packages * build system * testing * test pipeline * pipelines * changelog * version bump * update locales * update deps * update deps * update dependecies
27 lines
948 B
TypeScript
27 lines
948 B
TypeScript
import { test } from '@playwright/test'
|
|
import { checkLinkDoesNotExist, checkLinkForDownload, checkLinkForText, createNote, getFileChecksum } from '../../utils'
|
|
import Files from './files'
|
|
|
|
test.describe('@web', () => {
|
|
test('simple pdf', async ({ page }) => {
|
|
const files = [Files.PDF]
|
|
const link = await createNote(page, { files })
|
|
await checkLinkForText(page, link, 'AES.pdf')
|
|
await checkLinkDoesNotExist(page, link)
|
|
})
|
|
|
|
test('pdf content', async ({ page }) => {
|
|
const files = [Files.PDF]
|
|
const checksum = await getFileChecksum(files[0])
|
|
const link = await createNote(page, { files })
|
|
await checkLinkForDownload(page, link, 'AES.pdf', checksum)
|
|
})
|
|
|
|
test('image content', async ({ page }) => {
|
|
const files = [Files.Image]
|
|
const checksum = await getFileChecksum(files[0])
|
|
const link = await createNote(page, { files })
|
|
await checkLinkForDownload(page, link, 'image.jpg', checksum)
|
|
})
|
|
})
|