Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
bit-pm
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
燕伟桐
bit-pm
Commits
a44a9783
Unverified
提交
a44a9783
authored
6月 03, 2025
作者:
Will Chen
提交者:
GitHub
6月 03, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New chat e2e (#314)
上级
1dde72e7
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
59 行增加
和
0 行删除
+59
-0
chat1.md
e2e-tests/fixtures/chat1.md
+3
-0
chat2.md
e2e-tests/fixtures/chat2.md
+3
-0
test_helper.ts
e2e-tests/helpers/test_helper.ts
+8
-0
new_chat.spec.ts
e2e-tests/new_chat.spec.ts
+21
-0
new_chat.spec.ts_new-chat-first-button-1.aria.yml
...apshots/new_chat.spec.ts_new-chat-first-button-1.aria.yml
+5
-0
new_chat.spec.ts_new-chat-first-button-2.aria.yml
...apshots/new_chat.spec.ts_new-chat-first-button-2.aria.yml
+2
-0
new_chat.spec.ts_new-chat-first-button-3.aria.yml
...apshots/new_chat.spec.ts_new-chat-first-button-3.aria.yml
+5
-0
new_chat.spec.ts_new-chat-second-button-1.aria.yml
...pshots/new_chat.spec.ts_new-chat-second-button-1.aria.yml
+5
-0
new_chat.spec.ts_new-chat-second-button-2.aria.yml
...pshots/new_chat.spec.ts_new-chat-second-button-2.aria.yml
+2
-0
new_chat.spec.ts_new-chat-second-button-3.aria.yml
...pshots/new_chat.spec.ts_new-chat-second-button-3.aria.yml
+5
-0
没有找到文件。
e2e-tests/fixtures/chat1.md
0 → 100644
浏览文件 @
a44a9783
chat1
<dyad-chat-summary>
Chat 1
</dyad-chat-summary>
e2e-tests/fixtures/chat2.md
0 → 100644
浏览文件 @
a44a9783
chat2
<dyad-chat-summary>
Chat 2
</dyad-chat-summary>
e2e-tests/helpers/test_helper.ts
浏览文件 @
a44a9783
...
...
@@ -163,6 +163,14 @@ class PageObject {
return
this
.
page
.
getByRole
(
"textbox"
,
{
name
:
"Ask Dyad to build..."
});
}
clickNewChat
({
index
=
0
}:
{
index
?:
number
}
=
{})
{
// There is two new chat buttons...
return
this
.
page
.
getByRole
(
"button"
,
{
name
:
"New Chat"
})
.
nth
(
index
)
.
click
();
}
async
sendPrompt
(
prompt
:
string
)
{
await
this
.
getChatInput
().
click
();
await
this
.
getChatInput
().
fill
(
prompt
);
...
...
e2e-tests/new_chat.spec.ts
0 → 100644
浏览文件 @
a44a9783
import
{
test
}
from
"./helpers/test_helper"
;
const
newChatTestCases
=
[
{
name
:
"first button"
,
clickOptions
:
undefined
},
{
name
:
"second button"
,
clickOptions
:
{
index
:
1
}
},
];
newChatTestCases
.
forEach
(({
name
,
clickOptions
})
=>
{
test
(
`new chat (
${
name
}
)`
,
async
({
po
})
=>
{
await
po
.
setUp
();
await
po
.
sendPrompt
(
"tc=chat1"
);
await
po
.
snapshotMessages
();
await
po
.
clickNewChat
(
clickOptions
);
// Make sure it's empty
await
po
.
snapshotMessages
();
await
po
.
sendPrompt
(
"tc=chat2"
);
await
po
.
snapshotMessages
();
});
});
e2e-tests/snapshots/new_chat.spec.ts_new-chat-first-button-1.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
paragraph
:
tc=chat1
-
paragraph
:
chat1
-
button "Retry"
:
-
img
\ No newline at end of file
e2e-tests/snapshots/new_chat.spec.ts_new-chat-first-button-2.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
text
:
No messages yet
\ No newline at end of file
e2e-tests/snapshots/new_chat.spec.ts_new-chat-first-button-3.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
paragraph
:
tc=chat2
-
paragraph
:
chat2
-
button "Retry"
:
-
img
\ No newline at end of file
e2e-tests/snapshots/new_chat.spec.ts_new-chat-second-button-1.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
paragraph
:
tc=chat1
-
paragraph
:
chat1
-
button "Retry"
:
-
img
\ No newline at end of file
e2e-tests/snapshots/new_chat.spec.ts_new-chat-second-button-2.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
text
:
No messages yet
\ No newline at end of file
e2e-tests/snapshots/new_chat.spec.ts_new-chat-second-button-3.aria.yml
0 → 100644
浏览文件 @
a44a9783
-
paragraph
:
tc=chat2
-
paragraph
:
chat2
-
button "Retry"
:
-
img
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论