2023-05-14 11:52:47 +00:00
|
|
|
import { test } from '@playwright/test'
|
|
|
|
import { checkLinkForText, createNote } from '../../utils'
|
|
|
|
|
|
|
|
test.describe('@web', () => {
|
|
|
|
test('simple', async ({ page }) => {
|
2023-05-25 08:17:01 +00:00
|
|
|
const text = `Endless prejudice endless play derive joy eternal-return selfish burying. Of deceive play pinnacle faith disgust. Spirit reason salvation burying strong of joy ascetic selfish against merciful sea truth. Ubermensch moral prejudice derive chaos mountains ubermensch justice philosophy justice ultimate joy ultimate transvaluation. Virtues convictions war ascetic eternal-return spirit. Ubermensch transvaluation noble revaluation sexuality intentions salvation endless decrepit hope noble fearful. Justice ideal ultimate snare god joy evil sexuality insofar gains oneself ideal.`
|
|
|
|
const link = await createNote(page, { text })
|
|
|
|
await checkLinkForText(page, { link, text })
|
|
|
|
})
|
|
|
|
|
|
|
|
test('simple with password', async ({ page }) => {
|
|
|
|
const text = 'Foo bar'
|
|
|
|
const password = '123'
|
|
|
|
const shareLink = await createNote(page, { text, password })
|
|
|
|
await checkLinkForText(page, { link: shareLink, text, password })
|
2023-05-14 11:52:47 +00:00
|
|
|
})
|
|
|
|
})
|