Skip to content

Commit 3d8ac11

Browse files
committed
test(app-shell): the marketplace frame test checks the first frame for keys and English
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXDwFw71MwSG9FKYDQ
1 parent ae5aac7 commit 3d8ac11

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePage.namespaceGate-30588.test.tsx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ describe('the marketplace pages wait for their strings (objectstack#30588)', ()
174174
it('zh-CN: the catalogue page shows the load skeleton, then Chinese, and never English or a raw key', async () => {
175175
const zhMarketplace = builtInLocales.zh.marketplace;
176176
const view = renderRecording(<MarketplacePage />, 'zh-CN');
177+
// The first frame holds no namespace text yet — in no language, and not
178+
// as a key — only the skeleton.
179+
const firstFrame = view.container.textContent ?? '';
180+
expect(firstFrame).not.toMatch(RAW_KEY);
181+
expect(firstFrame).not.toContain(ENGLISH.title);
177182
expect(screen.getByTestId('marketplace-resolving')).toBeInTheDocument();
178183

179184
expect(await screen.findByText(zhMarketplace.title)).toBeInTheDocument();
@@ -188,6 +193,9 @@ describe('the marketplace pages wait for their strings (objectstack#30588)', ()
188193
it('de: the package page shows the load skeleton, then German, and never English or a raw key', async () => {
189194
const deMarketplace = builtInLocales.de.marketplace;
190195
const view = renderRecording(<MarketplacePackagePage />, 'de');
196+
const firstFrame = view.container.textContent ?? '';
197+
expect(firstFrame).not.toMatch(RAW_KEY);
198+
expect(firstFrame).not.toContain(ENGLISH.back);
191199
expect(screen.getByTestId('marketplace-resolving')).toBeInTheDocument();
192200

193201
expect((await screen.findAllByText(deMarketplace.back)).length).toBeGreaterThan(0);

0 commit comments

Comments
 (0)