Skip to content

Commit 4bc2d00

Browse files
committed
test(app-shell): environmentOverlay-12141 preloads the studio zh catalogue before its zh-CN banner case
Claude-Session: https://claude.ai/code/session_01JQwxbaA4X9WGDi4ZgwZ4PZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent c6be064 commit 4bc2d00

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.environmentOverlay-12141.test.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest';
3737
import { render, screen, cleanup, waitFor } from '@testing-library/react';
3838
import { MemoryRouter } from 'react-router-dom';
3939
import type { RichMetadataTypeEntry } from './useMetadata';
40+
// The lock banner's zh row lives in `@object-ui/i18n`'s `studio` namespace,
41+
// whose `zh` catalogue is fetched on demand (objectstack#25922). Resident
42+
// before any case, so the zh-CN banner reads its zh row on first render.
43+
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
44+
await loadStudioCatalogue('zh');
4045

4146
const OVERLAY_TYPES = ['view', 'dashboard', 'report', 'translation', 'email_template'] as const;
4247

0 commit comments

Comments
 (0)