diff --git a/packages/console-ui/src/__tests__/console-shell.test.tsx b/packages/console-ui/src/__tests__/console-shell.test.tsx index e8bef7803..6c46875cc 100644 --- a/packages/console-ui/src/__tests__/console-shell.test.tsx +++ b/packages/console-ui/src/__tests__/console-shell.test.tsx @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { render } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import { ConsoleShell } from '@/components/shell/console-shell'; import { initialConsoleProjectState } from '@/lib/project-state'; @@ -8,64 +8,16 @@ const stubState = { connectionStatus: 'connected' as const, }; -describe('ConsoleShell', () => { - it('renders a
element as the first child of the shell root', () => { - const { container } = render( - -
content
-
, - ); - const shellRoot = container.firstElementChild; - const firstChild = shellRoot?.firstElementChild; - expect(firstChild?.tagName.toLowerCase()).toBe('header'); - }); - - it('renders children inside a
element', () => { - const { getByRole } = render( +describe('ConsoleShell layout', () => { + it('renders the header shell and places children in the main landmark', () => { + render(
content
, ); - const main = getByRole('main'); - expect(main).toBeDefined(); - expect(main.querySelector('[data-testid="child"]')).not.toBeNull(); - }); - - it('does not render the legacy sidebar navigation element', () => { - const { queryByRole } = render( - -
content
-
, - ); - // The old sidebar rendered as