收口智能创作与大鱼动作按钮
将智能创作首页 prompt suggestion 按钮迁移到共享动作按钮组件 将大鱼吃小鱼结果页 hero 动作迁移到共享按钮组件 补充轻量列表行暂不单独抽象的团队决策与收口文档
This commit is contained in:
@@ -336,6 +336,27 @@ describe('BigFishResultView', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('reuses shared hero action chrome for top-level result actions', () => {
|
||||
render(
|
||||
<BigFishResultView
|
||||
session={createSession()}
|
||||
onBack={() => {}}
|
||||
onExecuteAction={() => {}}
|
||||
onStartTestRun={() => {}}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(screen.getByRole('button', { name: '返回' }).className).toContain(
|
||||
'rounded-full',
|
||||
);
|
||||
expect(screen.getByRole('button', { name: '测试' }).className).toContain(
|
||||
'platform-action-button--editor-dark',
|
||||
);
|
||||
expect(screen.getByRole('button', { name: '发布' }).className).toContain(
|
||||
'platform-action-button--editor-dark',
|
||||
);
|
||||
});
|
||||
|
||||
test('shows publish failures in a dismissible modal', () => {
|
||||
const onDismissError = vi.fn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user