Skip to content

Commit e355404

Browse files
committed
test(ui): preload the studio zh catalogue in the clone-to-customize zh case
Claude-Session: https://claude.ai/code/session_01ADHkmRuDqEXC3CybUtz5d1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3fea3ac commit e355404

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.cloneToCustomize.test.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ vi.mock('./AssignedUsersSection', () => ({
161161

162162
import { PermissionMatrixEditPage } from './PermissionMatrixEditor';
163163

164+
// The designer's `designer.*` / `perm.*` rows live in `@object-ui/i18n`'s `studio`
165+
// namespace, whose `zh` catalogue is fetched on demand (objectstack#25922).
166+
// Resident before any case, so the zh rows below read synchronously.
167+
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
168+
await loadStudioCatalogue('zh');
169+
164170
/* ── The door ────────────────────────────────────────────────────────────── */
165171

166172
interface Call {

0 commit comments

Comments
 (0)