refactor: remove manual refresh and search controls
ci / gitleaks (push) Successful in 8s
ci / docker (push) Successful in 7m17s

This commit is contained in:
2026-09-19 21:15:23 +08:00
parent 0cf1c49094
commit 4973d56a64
29 changed files with 244 additions and 860 deletions
+4 -4
View File
@@ -30,13 +30,13 @@ test('inbox and task composer match approved visuals', async ({ page, request, b
const inbox = (await bootstrap.json()).lists.find((item: { is_inbox: boolean }) => item.is_inbox)
expect(inbox).toBeTruthy()
await createTask(request, baseURL!, '整理本周工作记录', inbox.id)
await createTask(request, baseURL!, '检查 Dodo 备份', inbox.id)
await createTask(request, baseURL!, '周末买水果和牛奶', inbox.id)
const seededTitles = ['整理本周工作记录', '检查 Dodo 备份', '周末买水果和牛奶'] as const
for (const title of seededTitles) await createTask(request, baseURL!, title, inbox.id)
await page.goto('/')
await openInbox(page)
await expect(page.locator('.task-row')).toHaveCount(3)
const seededRows = page.locator('.task-row').filter({ hasText: /整理本周工作记录|检查 Dodo 备份|周末买水果和牛奶/ })
await expect(seededRows).toHaveCount(3)
await expect(page).toHaveScreenshot('inbox.png', { fullPage: true })
await page.getByRole('button', { name: '添加任务' }).click()