@@ -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