chore: ignore test-results and raise AI test timeouts
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,3 +13,4 @@ Thumbs.db
|
|||||||
release/
|
release/
|
||||||
*.novel
|
*.novel
|
||||||
*.novel-all
|
*.novel-all
|
||||||
|
test-results/
|
||||||
|
|||||||
+5
-5
@@ -88,7 +88,7 @@ test.describe('AI chat', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('E2E-P3-CHAT-01: send message and receive assistant reply', async () => {
|
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 app = await launchApp(userDataDir)
|
||||||
const page = await app.firstWindow()
|
const page = await app.firstWindow()
|
||||||
@@ -105,7 +105,7 @@ test.describe('AI chat', () => {
|
|||||||
await page.getByTestId('ai-send').click()
|
await page.getByTestId('ai-send').click()
|
||||||
|
|
||||||
const assistant = page.getByTestId('chat-message-assistant').last()
|
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 expect(assistant).not.toBeEmpty()
|
||||||
|
|
||||||
await app.close()
|
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('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 app = await launchApp(userDataDir)
|
||||||
const page = await app.firstWindow()
|
const page = await app.firstWindow()
|
||||||
@@ -151,9 +151,9 @@ test.describe('AI chat', () => {
|
|||||||
await expect(page.getByTestId('ai-send')).toBeEnabled()
|
await expect(page.getByTestId('ai-send')).toBeEnabled()
|
||||||
await page.getByTestId('ai-send').click()
|
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()
|
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()
|
await app.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { defineConfig } from '@playwright/test'
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: './e2e',
|
testDir: './e2e',
|
||||||
timeout: 120_000,
|
timeout: 180_000,
|
||||||
workers: 1,
|
workers: 1,
|
||||||
globalSetup: './e2e/global-setup.ts',
|
globalSetup: './e2e/global-setup.ts',
|
||||||
use: {
|
use: {
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ describe('AiClientService', () => {
|
|||||||
it('IT-AI-01: chat returns non-empty content from LM Studio', async () => {
|
it('IT-AI-01: chat returns non-empty content from LM Studio', async () => {
|
||||||
const content = await client.chat([{ role: 'user', content: '回复一个字:好' }])
|
const content = await client.chat([{ role: 'user', content: '回复一个字:好' }])
|
||||||
expect(content.trim().length).toBeGreaterThan(0)
|
expect(content.trim().length).toBeGreaterThan(0)
|
||||||
}, 90_000)
|
}, 180_000)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user