Skip to content

Commit 084cf97

Browse files
committed
test(app-shell): load the studio zh catalogue before the flow canvas chip cases
Same shard-order cause as the inspector string test: the zh "API name" title lives in the lazily fetched studio catalogue. Ported byte-identically from the same fix on the branch claude/project-thread-998cn0 so the two merge cleanly. Claude-Session: https://claude.ai/code/session_01QsR2jRkRJ1Po9y5UgWCsns Co-authored-by: Claude <noreply@anthropic.com>
1 parent f5a1b6c commit 084cf97

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)