收口大鱼结果页空态

将大鱼吃小鱼结果页缺草稿提示迁移到 PlatformEmptyState

补充缺草稿空态公共组件断言

更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 13:37:09 +08:00
parent 7977a19d24
commit 3e194c647e
4 changed files with 31 additions and 7 deletions

View File

@@ -157,6 +157,26 @@ function createSession(): BigFishSessionSnapshotResponse {
}
describe('BigFishResultView', () => {
test('uses PlatformEmptyState chrome when draft is missing', () => {
render(
<BigFishResultView
session={{
...createSession(),
draft: null,
}}
onBack={() => {}}
onExecuteAction={() => {}}
onStartTestRun={() => {}}
/>,
);
const emptyState = screen.getByText('还没有可编辑的玩法草稿');
expect(emptyState.className).toContain('platform-empty-state');
expect(emptyState.className).toContain('bg-white/74');
expect(emptyState.className).toContain('text-[var(--platform-text-base)]');
});
test('renders generated formal previews with accurate status copy', () => {
render(
<BigFishResultView