恢复首页最近项目说明
恢复最近项目独立静态说明 补回创建中状态下的首页回归断言
This commit is contained in:
@@ -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(
|
||||
'正在创建工作区',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user