Skip to content

Commit 0865f61

Browse files
committed
test(console): the chunk-preload case waits for the chrome, which waits for the deployment flags
Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 423bf5b commit 0865f61

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎ui/packages/app-shell/src/console/__tests__/AppContent.routeChunkPreload-12980.test.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ describe('the route element chunk loads beside the route reads (objectui#12980)'
252252
await waitFor(() => expect(chunks.page.requested).toBe(true));
253253
expect(chunks.page.splashUpWhenRequested).toBe(true);
254254
expect(splashUp()).toBe(true);
255-
// objectstack#35981 — the chrome is up; the route's skeleton is the boot wait.
256-
expect(screen.getByTestId('console-layout')).toBeInTheDocument();
255+
// objectstack#35981 — the chrome comes up (once the deployment flags have
256+
// answered, a promise apart from the chunk's); the route's skeleton is the
257+
// boot wait.
258+
await waitFor(() => expect(screen.getByTestId('console-layout')).toBeInTheDocument());
257259
expect(screen.getByTestId('route-metadata-skeleton')).toHaveAttribute('data-boot-splash');
258260
expect(meta.status.page).toBe('loading');
259261

0 commit comments

Comments
 (0)