From cb4ff98bfc64d4e2d7b4e7fbec01c33e43f3b7fc Mon Sep 17 00:00:00 2001 From: Jagger <634750802@qq.com> Date: Fri, 13 Sep 2024 10:28:54 +0800 Subject: [PATCH] e2e: add widget chat tests (#279) --- e2e/test-html/widget-controlled.html | 11 ++++ e2e/test-html/widget.html | 2 +- e2e/tests/chat.spec.ts | 41 ++---------- e2e/tests/widget.spec.ts | 66 +++++++++++++++++-- e2e/utils/chat.ts | 36 ++++++++++ .../api/[[...fallback_placeholder]]/route.ts | 2 +- 6 files changed, 115 insertions(+), 43 deletions(-) create mode 100644 e2e/test-html/widget-controlled.html create mode 100644 e2e/utils/chat.ts diff --git a/e2e/test-html/widget-controlled.html b/e2e/test-html/widget-controlled.html new file mode 100644 index 00000000..1c90f28a --- /dev/null +++ b/e2e/test-html/widget-controlled.html @@ -0,0 +1,11 @@ + + +
+ + +