收口大鱼结果页空态
将大鱼吃小鱼结果页缺草稿提示迁移到 PlatformEmptyState 补充缺草稿空态公共组件断言 更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user