feat: remove Canvas inspiration entry
This commit is contained in:
1 parent
f8eee430f4
commit
b22559a596
11 files changed
+126
-98
No files matched your search
@@ -121,13 +121,13 @@ describe('TitleBar platform behavior', () => {
|
||||
expect(screen.queryByTestId('titlebar-project-context')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('keeps the painting page title after the macOS traffic-light safe area', () => {
|
||||
it('keeps an optional page title after the macOS traffic-light safe area', () => {
|
||||
window.electron.platform = 'darwin';
|
||||
useSettingsStore.setState({ sidebarCollapsed: true });
|
||||
|
||||
render(<TitleBar integrated pageTitle="获取灵感" />);
|
||||
render(<TitleBar integrated pageTitle="页面标题" />);
|
||||
|
||||
expect(screen.getByTestId('titlebar-page-title')).toHaveTextContent('获取灵感');
|
||||
expect(screen.getByTestId('titlebar-page-title')).toHaveTextContent('页面标题');
|
||||
expect(screen.getByTestId('titlebar-sidebar-surface')).toHaveClass('w-[132px]');
|
||||
expect(screen.queryByTestId('titlebar-project-context')).not.toBeInTheDocument();
|
||||
expect(screen.getByTestId('titlebar-logo').querySelectorAll('img')).toHaveLength(1);
|
||||
|
||||
Reference in new issue
Block a user