fix(canvas): compact workspace toolbar
This commit is contained in:
@@ -132,22 +132,26 @@ describe('AI Design Canvas page', () => {
|
||||
|
||||
const historyRail = screen.getByTestId('image-workspace-history-rail');
|
||||
expect(historyRail).toHaveClass('h-full', 'border-l');
|
||||
expect(screen.getByTestId('image-workspace-header')).toHaveClass('h-16');
|
||||
expect(screen.getByTestId('image-workspace-history-header')).toHaveClass('h-16');
|
||||
expect(screen.getByTestId('image-workspace-header')).toHaveClass('h-12');
|
||||
expect(screen.getByTestId('image-workspace-history-header')).toHaveClass('h-12');
|
||||
expect(within(historyRail).getByRole('heading', { name: '历史作品' })).toBeInTheDocument();
|
||||
expect(within(historyRail).queryByText('当前设计项目的制作记录')).not.toBeInTheDocument();
|
||||
expect(within(historyRail).getByText('还没有历史作品')).toBeInTheDocument();
|
||||
expect(screen.queryByTestId('image-workspace-works-rail')).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '项目' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('实时同步')).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '刷新作品' })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('prioritizes an offered current plan over older completed-work status', () => {
|
||||
it('keeps an offered current plan actionable without a second header status row', () => {
|
||||
setViewport(true);
|
||||
prepareWorkspace({
|
||||
form: designFormFixture({ activeQuotes: [designQuoteFixture()] }),
|
||||
});
|
||||
render(<ImageCanvas />);
|
||||
|
||||
expect(screen.getByText(/制作方案已准备好,确认前仍可修改/)).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '确认并开始制作' })).toBeInTheDocument();
|
||||
expect(screen.queryByText(/制作方案已准备好,确认前仍可修改/)).not.toBeInTheDocument();
|
||||
expect(screen.getByTestId('image-workspace-history-rail')).toBeInTheDocument();
|
||||
expect(screen.queryByTestId('image-workspace-works-rail')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user