From 3ee82bd9ce09c28b53e859c69757d9da0d856c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=B7=E5=B8=83=E5=8A=B3=E5=A4=96=20=C2=B7=20=E8=B4=BE?= =?UTF-8?q?=E8=B4=B5?= <472285740@qq.com> Date: Sun, 13 Jul 2025 21:02:03 +0800 Subject: [PATCH] test: skip ai chat with multi tags test (#13170) ## Summary by CodeRabbit * **Tests** * Temporarily skipped tests related to chatting with tags and specified documents due to flakiness. * Improved chat retry test by streamlining status checks for faster validation. --- tests/affine-cloud-copilot/e2e/basic/chat.spec.ts | 11 ----------- tests/affine-cloud-copilot/e2e/chat-with/doc.spec.ts | 3 ++- tests/affine-cloud-copilot/e2e/chat-with/tags.spec.ts | 5 +++-- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/tests/affine-cloud-copilot/e2e/basic/chat.spec.ts b/tests/affine-cloud-copilot/e2e/basic/chat.spec.ts index 0e3472de4..637f98648 100644 --- a/tests/affine-cloud-copilot/e2e/basic/chat.spec.ts +++ b/tests/affine-cloud-copilot/e2e/basic/chat.spec.ts @@ -254,17 +254,6 @@ test.describe('AIBasic/Chat', () => { const { actions } = await utils.chatPanel.getLatestAssistantMessage(page); await actions.retry(); - await utils.chatPanel.waitForHistory(page, [ - { - role: 'user', - content: 'Introduce Large Language Model. Answer in 50 words.', - }, - { - role: 'assistant', - status: 'transmitting', - }, - ]); - await utils.chatPanel.waitForHistory(page, [ { role: 'user', diff --git a/tests/affine-cloud-copilot/e2e/chat-with/doc.spec.ts b/tests/affine-cloud-copilot/e2e/chat-with/doc.spec.ts index 74a4d8e5c..6886063c4 100644 --- a/tests/affine-cloud-copilot/e2e/chat-with/doc.spec.ts +++ b/tests/affine-cloud-copilot/e2e/chat-with/doc.spec.ts @@ -43,7 +43,8 @@ test.describe('AIChatWith/Doc', () => { }).toPass({ timeout: 10000 }); }); - test('support chat with specified docs', async ({ + // FIXME: This test is flaky, need to fix it. + test.skip('support chat with specified docs', async ({ loggedInPage: page, utils, }) => { diff --git a/tests/affine-cloud-copilot/e2e/chat-with/tags.spec.ts b/tests/affine-cloud-copilot/e2e/chat-with/tags.spec.ts index 3d256c197..655077770 100644 --- a/tests/affine-cloud-copilot/e2e/chat-with/tags.spec.ts +++ b/tests/affine-cloud-copilot/e2e/chat-with/tags.spec.ts @@ -16,7 +16,7 @@ test.describe('AIChatWith/tags', () => { await utils.editor.clearAllTags(page); }); - test('should support chat with tag', async ({ + test.skip('should support chat with tag', async ({ loggedInPage: page, utils, }) => { @@ -49,7 +49,8 @@ test.describe('AIChatWith/tags', () => { }).toPass(); }); - test('should support chat with multiple tags', async ({ + // FIXME: This test is flaky, need to fix it. + test.skip('should support chat with multiple tags', async ({ loggedInPage: page, utils, }) => {