mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-01 04:44:16 +01:00
21 lines
880 B
TypeScript
21 lines
880 B
TypeScript
import { test } from '@playwright/test'
|
|
import { checkLinkDoesNotExist, checkLinkForText, createNote } from '../../utils'
|
|
|
|
test.describe('@web', () => {
|
|
test('only shown once', async ({ page }) => {
|
|
const text = `Christian victorious reason suicide dead. Right ultimate gains god hope truth burying selfish society joy. Ultimate.`
|
|
const link = await createNote(page, { text })
|
|
await checkLinkForText(page, { link, text })
|
|
await checkLinkDoesNotExist(page, link)
|
|
})
|
|
|
|
test('view 3 times', async ({ page }) => {
|
|
const text = `Justice holiest overcome fearful strong ultimate holiest christianity.`
|
|
const link = await createNote(page, { text, views: 3 })
|
|
await checkLinkForText(page, { link, text })
|
|
await checkLinkForText(page, { link, text })
|
|
await checkLinkForText(page, { link, text })
|
|
await checkLinkDoesNotExist(page, link)
|
|
})
|
|
})
|