feat: refine task and countdown interactions
ci / gitleaks (push) Successful in 9s
ci / docker (push) Successful in 3m31s

This commit is contained in:
2026-09-17 09:32:22 +08:00
parent bdf2a53fa9
commit 1571c3946f
14 changed files with 388 additions and 31 deletions
+3 -2
View File
@@ -193,8 +193,9 @@ test('Memo mobile search is one-row, focus-safe, persistent when collapsed, and
await expect(toggle).toHaveAttribute('aria-expanded', 'false')
await toggle.click()
const closeToggle = page.getByRole('button', { name: '收起搜索备忘录' })
const input = page.getByRole('textbox', { name: '搜索备忘录' })
await expect(toggle).toHaveAttribute('aria-expanded', 'true')
await expect(closeToggle).toHaveAttribute('aria-expanded', 'true')
await expect(input).toBeFocused()
await input.fill(`保留查询-${testInfo.project.name}`)
const openPanel = page.locator('#memo-search-panel')
@@ -207,7 +208,7 @@ test('Memo mobile search is one-row, focus-safe, persistent when collapsed, and
expect(openMetrics.right).toBeLessThanOrEqual(page.viewportSize()!.width + 1)
expect(openMetrics.scrollWidth).toBeLessThanOrEqual(openMetrics.clientWidth)
await toggle.click()
await closeToggle.click()
await expect(openPanel).toBeHidden()
await expect(toggle).toBeFocused()
await expect(toggle).toHaveAttribute('aria-expanded', 'false')