Skip to content

Commit d386bd3

Browse files
committed
test(app-shell): spell the named record page route in the #36150 pin instead of importing the console shell
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk
1 parent e43f5ac commit d386bd3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/packages/app-shell/src/views/RecordDetailView.authoredPageDesktopOnly-36150.test.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ import { I18nProvider } from '@object-ui/i18n';
5656
import { MetadataCtx } from '@object-ui/react';
5757
import { RecordDetailView } from './RecordDetailView';
5858
import { FavoritesProvider } from '../context/FavoritesProvider';
59-
import { RECORD_NAMED_PAGE_ROUTE } from '../console/AppContent';
6059
import { authoredRecordPageApplies, OBJECTS_KEEPING_AUTHORED_PAGE } from './recordPageSurface';
6160

61+
// The console's named record page route (`RECORD_NAMED_PAGE_ROUTE` in
62+
// `console/AppContent.tsx`), spelled here: importing it would load the whole
63+
// console shell into this file.
64+
const RECORD_NAMED_PAGE_ROUTE = ':objectName/record/:recordId/page/:pageName';
6265
const RECORD_ID = 'rec-1';
6366
const AUTHORED_MARK = 'Authored page block';
6467
const SLOT_MARK = 'Slotted alert';

0 commit comments

Comments
 (0)