feat: 改造云智能体桌面编辑与试用工作区
This commit is contained in:
@@ -89,7 +89,16 @@ describe('MainLayout module isolation', () => {
|
||||
expect(screen.getByTestId('sidebar-stub')).toHaveAttribute('data-has-peek-handler', 'false');
|
||||
});
|
||||
|
||||
it('does not overlay the local project initialization gate on AI hardware', () => {
|
||||
it('gives cloud Agents the full desktop content area and an account workspace title', () => {
|
||||
renderLayout('/cloud-agents');
|
||||
expect(screen.getByTestId('main-content')).toHaveClass('h-full', 'overflow-hidden', 'p-0');
|
||||
expect(screen.getByTestId('main-content')).not.toHaveClass('p-5', 'sm:p-6');
|
||||
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-page-title', '智能体工作区');
|
||||
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-overlay', 'false');
|
||||
expect(screen.getByTestId('sidebar-stub')).toHaveAttribute('data-hide-on-compact', 'false');
|
||||
});
|
||||
|
||||
it('does not overlay the local project initialization gate on AI hardware' , () => {
|
||||
renderLayout('/ai-hardware');
|
||||
|
||||
expect(screen.getByTestId('route-content')).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user