Skip to content

Commit 7a4b4a3

Browse files
committed
test(console): the detail header page imports components by source path, so the e2e program stays build-free
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
1 parent d1fa7d4 commit 7a4b4a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/e2e/studio-detail-header-width.spec.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const REPO_ROOT = uiRoot();
4040
const source = (rel: string) => path.join(REPO_ROOT, rel);
4141

4242
const DETAIL_HEADER = source('packages/app-shell/src/views/studio-detail/StudioDetailHeader.tsx');
43+
const COMPONENTS = source('packages/components/src/index.ts');
4344
const THEME_CSS = source('packages/components/src/index.css');
4445

4546
/** `px-6` on the header: the row is this much narrower than the header. */
@@ -70,7 +71,7 @@ function entry(): Plugin {
7071
const code = `
7172
import * as React from 'react';
7273
import { createRoot } from 'react-dom/client';
73-
import { DropdownMenuItem } from '@object-ui/components';
74+
import { DropdownMenuItem } from ${JSON.stringify(COMPONENTS)};
7475
import { StudioDetailHeader } from ${JSON.stringify(DETAIL_HEADER)};
7576
7677
const h = React.createElement;

0 commit comments

Comments
 (0)