Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
bit-pm
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
燕伟桐
bit-pm
Commits
fe597db5
Unverified
提交
fe597db5
authored
6月 24, 2025
作者:
Will Chen
提交者:
GitHub
6月 24, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
harden app files snapshot (#486)
上级
87a0de43
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
5 行增加
和
20 行删除
+5
-20
dyad_tags_parsing.spec.ts
e2e-tests/dyad_tags_parsing.spec.ts
+1
-1
test_helper.ts
e2e-tests/helpers/test_helper.ts
+1
-1
partial_response.spec.ts
e2e-tests/partial_response.spec.ts
+1
-1
select_component.spec.ts
e2e-tests/select_component.spec.ts
+1
-1
dyad_tags_parsing.spec.ts_angle-tags-handled.txt
...napshots/dyad_tags_parsing.spec.ts_angle-tags-handled.txt
+0
-0
partial_response.spec.ts_message-resumed.txt
...ts/snapshots/partial_response.spec.ts_message-resumed.txt
+0
-0
select_component.spec.ts_app-upgraded.txt
...tests/snapshots/select_component.spec.ts_app-upgraded.txt
+0
-0
select_component.spec.ts_upgrade-app-to-select-component-1.txt
...t_component.spec.ts_upgrade-app-to-select-component-1.txt
+0
-0
select_component.spec.ts_upgrade-app-to-select-component-2.txt
...t_component.spec.ts_upgrade-app-to-select-component-2.txt
+0
-15
supabase_client.spec.ts_supabase-client-generated.txt
...ots/supabase_client.spec.ts_supabase-client-generated.txt
+0
-0
supabase_client.spec.ts
e2e-tests/supabase_client.spec.ts
+1
-1
没有找到文件。
e2e-tests/dyad_tags_parsing.spec.ts
浏览文件 @
fe597db5
...
@@ -4,5 +4,5 @@ testSkipIfWindows("dyad tags handles nested < tags", async ({ po }) => {
...
@@ -4,5 +4,5 @@ testSkipIfWindows("dyad tags handles nested < tags", async ({ po }) => {
await
po
.
setUp
({
autoApprove
:
true
});
await
po
.
setUp
({
autoApprove
:
true
});
await
po
.
importApp
(
"minimal"
);
await
po
.
importApp
(
"minimal"
);
await
po
.
sendPrompt
(
"tc=dyad-write-angle"
);
await
po
.
sendPrompt
(
"tc=dyad-write-angle"
);
await
po
.
snapshotAppFiles
();
await
po
.
snapshotAppFiles
(
{
name
:
"angle-tags-handled"
}
);
});
});
e2e-tests/helpers/test_helper.ts
浏览文件 @
fe597db5
...
@@ -285,7 +285,7 @@ export class PageObject {
...
@@ -285,7 +285,7 @@ export class PageObject {
await
expect
(
this
.
page
.
getByRole
(
"dialog"
)).
toMatchAriaSnapshot
();
await
expect
(
this
.
page
.
getByRole
(
"dialog"
)).
toMatchAriaSnapshot
();
}
}
async
snapshotAppFiles
({
name
}:
{
name
?:
string
}
=
{
})
{
async
snapshotAppFiles
({
name
}:
{
name
:
string
})
{
const
currentAppName
=
await
this
.
getCurrentAppName
();
const
currentAppName
=
await
this
.
getCurrentAppName
();
if
(
!
currentAppName
)
{
if
(
!
currentAppName
)
{
throw
new
Error
(
"No app selected"
);
throw
new
Error
(
"No app selected"
);
...
...
e2e-tests/partial_response.spec.ts
浏览文件 @
fe597db5
...
@@ -8,5 +8,5 @@ test("partial message is resumed", async ({ po }) => {
...
@@ -8,5 +8,5 @@ test("partial message is resumed", async ({ po }) => {
// This is a special test case which triggers a dump.
// This is a special test case which triggers a dump.
await
po
.
snapshotServerDump
(
"all-messages"
);
await
po
.
snapshotServerDump
(
"all-messages"
);
await
po
.
snapshotMessages
({
replaceDumpPath
:
true
});
await
po
.
snapshotMessages
({
replaceDumpPath
:
true
});
await
po
.
snapshotAppFiles
();
await
po
.
snapshotAppFiles
(
{
name
:
"message-resumed"
}
);
});
});
e2e-tests/select_component.spec.ts
浏览文件 @
fe597db5
...
@@ -61,7 +61,7 @@ testSkipIfWindows("upgrade app to select component", async ({ po }) => {
...
@@ -61,7 +61,7 @@ testSkipIfWindows("upgrade app to select component", async ({ po }) => {
await
po
.
expectAppUpgradeButtonIsNotVisible
({
await
po
.
expectAppUpgradeButtonIsNotVisible
({
upgradeId
:
"component-tagger"
,
upgradeId
:
"component-tagger"
,
});
});
await
po
.
snapshotAppFiles
();
await
po
.
snapshotAppFiles
(
{
name
:
"app-upgraded"
}
);
await
po
.
clickOpenInChatButton
();
await
po
.
clickOpenInChatButton
();
// There should be another version from the upgrade being committed.
// There should be another version from the upgrade being committed.
await
expect
(
po
.
page
.
getByText
(
"Version 2"
)).
toBeVisible
();
await
expect
(
po
.
page
.
getByText
(
"Version 2"
)).
toBeVisible
();
...
...
e2e-tests/snapshots/dyad_tags_parsing.spec.ts_
dyad-tags-handles-nested-tags-1
.txt
→
e2e-tests/snapshots/dyad_tags_parsing.spec.ts_
angle-tags-handled
.txt
浏览文件 @
fe597db5
File moved
e2e-tests/snapshots/partial_response.spec.ts_
partial-message-is-resumed-2
.txt
→
e2e-tests/snapshots/partial_response.spec.ts_
message-resumed
.txt
浏览文件 @
fe597db5
File moved
e2e-tests/snapshots/select_component.spec.ts_app-upgraded.txt
0 → 100644
浏览文件 @
fe597db5
差异被折叠。
点击展开。
e2e-tests/snapshots/select_component.spec.ts_upgrade-app-to-select-component-1.txt
浏览文件 @
fe597db5
差异被折叠。
点击展开。
e2e-tests/snapshots/select_component.spec.ts_upgrade-app-to-select-component-2.txt
deleted
100644 → 0
浏览文件 @
87a0de43
===
role: user
message: [dump] make it smaller
Selected component: h1 (file: src/pages/Index.tsx)
Snippet:
```
<header className="flex-1 flex flex-col items-center justify-center px-4 py-16">
<h1 className="text-5xl font-extrabold mb-4 text-foreground text-center"> // <-- EDIT HERE
Launch Your Next Project
</h1>
<p className="text-xl text-muted-foreground mb-8 text-center max-w-xl">
```
\ No newline at end of file
e2e-tests/snapshots/supabase_client.spec.ts_supabase-client-
is-generated-1
.txt
→
e2e-tests/snapshots/supabase_client.spec.ts_supabase-client-
generated
.txt
浏览文件 @
fe597db5
File moved
e2e-tests/supabase_client.spec.ts
浏览文件 @
fe597db5
...
@@ -11,5 +11,5 @@ testSkipIfWindows("supabase client is generated", async ({ po }) => {
...
@@ -11,5 +11,5 @@ testSkipIfWindows("supabase client is generated", async ({ po }) => {
await
po
.
clickBackButton
();
await
po
.
clickBackButton
();
await
po
.
sendPrompt
(
"tc=generate-supabase-client"
);
await
po
.
sendPrompt
(
"tc=generate-supabase-client"
);
await
po
.
snapshotAppFiles
();
await
po
.
snapshotAppFiles
(
{
name
:
"supabase-client-generated"
}
);
});
});
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论