Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cupcakearmy committed Nov 15, 2022
1 parent 88ea828 commit 0934808
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dev:packages": "pnpm --parallel run dev",
"dev:proxy": "node proxy.mjs",
"dev": "run-p dev:*",
"test:run": "playwright test --project chrome firefox safari",
"test": "playwright test --project chrome firefox safari",
"test:local": "playwright test --project local",
"test:server": "docker compose -f docker-compose.dev.yaml up",
"test:prepare": "docker compose -f docker-compose.dev.yaml build"
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion test/file/files.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
PDF: 'test/assets/AES.pdf',
Image: 'test/assets/alfred-kenneally-UIu4RmMxnHU-unsplash.jpg',
Image: 'test/assets/image.jpg',
Zip: 'test/assets/Pigeons.zip',
}
2 changes: 1 addition & 1 deletion test/file/multiple.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ 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, 'image.jpg', checksums[1])
await checkLinkForDownload(page, link, 'AES.pdf', checksums[0])
})
2 changes: 1 addition & 1 deletion test/file/simple.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ 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, 'alfred-kenneally', checksum)
await checkLinkForDownload(page, link, 'image.jpg', checksum)
})

0 comments on commit 0934808

Please sign in to comment.