chore: ignore test-results and raise AI test timeouts

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 17:01:25 +08:00
parent df75d9c560
commit 0a054606fe
4 changed files with 8 additions and 7 deletions
+5 -5
View File
@@ -88,7 +88,7 @@ test.describe('AI chat', () => {
})
test('E2E-P3-CHAT-01: send message and receive assistant reply', async () => {
test.setTimeout(120_000)
test.setTimeout(180_000)
const app = await launchApp(userDataDir)
const page = await app.firstWindow()
@@ -105,7 +105,7 @@ test.describe('AI chat', () => {
await page.getByTestId('ai-send').click()
const assistant = page.getByTestId('chat-message-assistant').last()
await expect(assistant).toBeVisible({ timeout: 90_000 })
await expect(assistant).toBeVisible({ timeout: 120_000 })
await expect(assistant).not.toBeEmpty()
await app.close()
@@ -138,7 +138,7 @@ test.describe('AI chat', () => {
})
test('E2E-P3-CMD-01: slash summarize command sends and receives reply', async () => {
test.setTimeout(120_000)
test.setTimeout(180_000)
const app = await launchApp(userDataDir)
const page = await app.firstWindow()
@@ -151,9 +151,9 @@ test.describe('AI chat', () => {
await expect(page.getByTestId('ai-send')).toBeEnabled()
await page.getByTestId('ai-send').click()
await expect(page.getByTestId('chat-message-user').last()).toContainText('/总结', { timeout: 90_000 })
await expect(page.getByTestId('chat-message-user').last()).toContainText('/总结', { timeout: 120_000 })
const assistant = page.getByTestId('chat-message-assistant').last()
await expect(assistant).toBeVisible({ timeout: 90_000 })
await expect(assistant).toBeVisible({ timeout: 120_000 })
await app.close()
})