Skip to content

Commit 8dd8c25

Browse files
committed
test(app-shell): flowCanvasChip-11665 awaits the lazy studio zh catalogue before reading the tooltip
The zh case awaited only the caption testid and then read the chip's `title` (`designer.field.apiName`, a row of the lazy `studio` namespace) synchronously, so under a saturated Vite transform pipeline it could read the en row before the zh chunk landed. Load the catalogue at module scope, the shape the other studio-namespace zh tests already use. Claude-Session: https://claude.ai/code/session_01JQwxbXwuDiqzYUyEfANmtM Co-authored-by: Claude <noreply@anthropic.com>
1 parent 665059b commit 8dd8c25

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)