refactor: remove manual refresh and search controls
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user