fix: optimize ui

This commit is contained in:
07akioni
2026-08-18 18:54:18 +08:00
parent aab839a971
commit b1be9e93cd
4 changed files with 23 additions and 18 deletions
+1 -2
View File
@@ -427,8 +427,7 @@ describe('web e2e: seeded history renders through cold resume', () => {
await fileLink.click()
const dialog = page.getByRole('dialog', { name: 'Couldnt open file' })
await dialog.waitFor({ timeout: 5_000 })
await expect.poll(() => dialog.getByRole('alert').innerText(), { timeout: 5_000 })
.toBe('path open failed: xdg-open is not available')
await expect(dialog.getByText('path open failed: xdg-open is not available')).toBeVisible({ timeout: 5_000 })
await page.getByRole('button', { name: 'Retry' }).click()
await expect.poll(() => openPath.mock.calls.length, { timeout: 5_000 }).toBe(2)
expect(openPath.mock.calls[0]![0].payload).toEqual(openPath.mock.calls[1]![0].payload)