Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ import * as React from 'react';
import { describe, it, expect, vi, afterEach } from 'vitest';
import { render, screen, cleanup, fireEvent, act, within } from '@testing-library/react';
import { I18nProvider } from '@object-ui/i18n';
// The `engine.inspector.flowNode.*` rows live in `@object-ui/i18n`'s `studio`
// namespace (#25922 slice S2), whose `zh` catalogue is fetched on demand.
// Resident before any case, so `zhRow` reads the zh row, never the en fallback
// while the chunk is in flight (objectstack#26692).
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
await loadStudioCatalogue('zh');

// Every roster in these inspectors comes through the shared metadata client
// (stable identity, like the real memoized client). Nothing here needs a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { render, screen, cleanup } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import { I18nProvider } from '@object-ui/i18n';
// The chip's tooltip row (`designer.field.apiName`) lives in `@object-ui/i18n`'s
// `studio` namespace, whose `zh` catalogue is fetched on demand. Resident before
// any case, so the zh tooltip is read after the catalogue lands, never racing it
// (objectstack#26692).
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
await loadStudioCatalogue('zh');

const PKG = 'com.acme.app';
const API_NAME = 'nightly_digest';
Expand Down
Loading