Skip to content

Commit ff6bcc6

Browse files
committed
test(app-shell): load the studio zh catalogue before the flow canvas chip cases
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV9H4DGK4phGzhzdZ4
1 parent a0101f8 commit ff6bcc6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
2424
import { render, screen, cleanup } from '@testing-library/react';
2525
import { MemoryRouter } from 'react-router-dom';
2626
import { I18nProvider } from '@object-ui/i18n';
27+
// The chip's tooltip row (`designer.field.apiName`) lives in `@object-ui/i18n`'s
28+
// `studio` namespace, whose `zh` catalogue is fetched on demand. Resident before
29+
// any case, so the zh tooltip is read after the catalogue lands, never racing it
30+
// (objectstack#26692).
31+
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
32+
await loadStudioCatalogue('zh');
2733

2834
const PKG = 'com.acme.app';
2935
const API_NAME = 'nightly_digest';

0 commit comments

Comments
 (0)