完善客户端模块与工作区能力
This commit is contained in:
@@ -94,6 +94,30 @@ describe('TitleBar platform behavior', () => {
|
||||
expect(screen.queryByTestId('titlebar-project-context')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders the painting title bar as a transparent overlay with the logo at the window edge', () => {
|
||||
window.electron.platform = 'darwin';
|
||||
|
||||
render(<TitleBar integrated overlay />);
|
||||
|
||||
expect(screen.getByTestId('product-titlebar')).toHaveClass(
|
||||
'absolute',
|
||||
'inset-x-0',
|
||||
'top-0',
|
||||
'pointer-events-none',
|
||||
'bg-transparent',
|
||||
);
|
||||
expect(screen.getByTestId('product-titlebar')).not.toHaveClass('border-b', 'glass-surface');
|
||||
expect(screen.getByTestId('titlebar-main-surface')).toHaveClass(
|
||||
'pointer-events-none',
|
||||
'border-b-0',
|
||||
'bg-transparent',
|
||||
);
|
||||
expect(screen.getByTestId('titlebar-logo')).toHaveClass('bg-transparent');
|
||||
expect(screen.getByTestId('titlebar-logo')).toHaveStyle({ right: '0px' });
|
||||
expect(screen.getByTestId('titlebar-logo').querySelector('img')).toHaveClass('mix-blend-multiply');
|
||||
expect(screen.queryByTestId('titlebar-project-context')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('previews the collapsed sidebar on hover and pins it on click', () => {
|
||||
window.electron.platform = 'darwin';
|
||||
useSettingsStore.setState({ sidebarCollapsed: true });
|
||||
|
||||
Reference in New Issue
Block a user