refactor: remove pocketbase (#1138)

This commit is contained in:
Jonas Plum
2025-09-02 21:58:08 +02:00
committed by GitHub
parent f28c238135
commit eba2615ec0
435 changed files with 42677 additions and 4730 deletions
+22
View File
@@ -0,0 +1,22 @@
import { expect } from '@playwright/test'
import { randomUUID } from 'crypto'
import { login, test, createTicket, createLink } from './util'
test('can create a link', async ({ page }) => {
await login(page)
const ticketName = `playwright-${randomUUID()}`
await createTicket(page, ticketName)
const linkName = `link-${randomUUID()}`
await createLink(page, linkName, 'https://example.com')
})
test('can delete a link', async ({ page }) => {
await login(page)
const ticketName = `playwright-${randomUUID()}`
await createTicket(page, ticketName)
const linkName = `link-${randomUUID()}`
await createLink(page, linkName, 'https://example.com')
await page.locator('button', { hasText: 'Delete Link' }).click()
await page.getByRole('dialog').getByRole('button', { name: 'Delete' }).click()
await expect(page.getByText(linkName)).toHaveCount(0)
})