恢复首页最近项目说明

恢复最近项目独立静态说明
补回创建中状态下的首页回归断言
This commit is contained in:
2026-08-23 15:37:15 +08:00
parent 47d8c61009
commit 5e8af31702
2 changed files with 6 additions and 1 deletions
@@ -253,6 +253,9 @@ export default function HomeView({
<h2 className="m-0 text-[15px] text-(--platform-text-strong)">
</h2>
<p className="mb-0 mt-1 text-[12px] text-(--platform-text-soft)">
</p>
</div>
<div className="launcher-project-list-actions">
<button
@@ -1497,7 +1497,9 @@ export function registerHomeProjectCreationTests() {
});
expect((createButton as HTMLButtonElement).disabled).toBe(true);
expect(screen.queryByLabelText('陶泥儿首页对话')).toBeNull();
expect(screen.getByLabelText('最近项目').textContent).toContain('最近项目');
expect(screen.getByLabelText('最近项目').textContent).toContain(
'选择一个项目继续创作',
);
expect(screen.getByLabelText('最近项目').textContent).not.toContain(
'正在创建工作区',
);