@@ -386,11 +386,11 @@ describe("DashboardPage — onHotData integration", () => {
386386 expect ( capturedOnHotData ) . not . toBeNull ( ) ;
387387 } ) ;
388388
389- // Verify initial state shows pending
389+ // Verify initial state shows pending (collapsed summary shows "1 PR" with pending count)
390390 const user = userEvent . setup ( ) ;
391391 await user . click ( screen . getByText ( "Pull Requests" ) ) ;
392392 await waitFor ( ( ) => {
393- expect ( screen . getByLabelText ( "Checks in progress" ) ) . toBeTruthy ( ) ;
393+ screen . getByText ( "1 PR" ) ;
394394 } ) ;
395395
396396 // Simulate hot poll returning a status update (generation=0 matches default mock)
@@ -402,7 +402,8 @@ describe("DashboardPage — onHotData integration", () => {
402402 } ] ] ) ;
403403 capturedOnHotData ! ( prUpdates , new Map ( ) , 0 ) ;
404404
405- // The StatusDot should update from "Checks in progress" to "All checks passed"
405+ // Expand the repo to verify the StatusDot updated
406+ await user . click ( screen . getByText ( "owner/repo" ) ) ;
406407 await waitFor ( ( ) => {
407408 expect ( screen . getByLabelText ( "All checks passed" ) ) . toBeTruthy ( ) ;
408409 } ) ;
@@ -427,6 +428,12 @@ describe("DashboardPage — onHotData integration", () => {
427428
428429 const user = userEvent . setup ( ) ;
429430 await user . click ( screen . getByText ( "Pull Requests" ) ) ;
431+ await waitFor ( ( ) => {
432+ screen . getByText ( "1 PR" ) ;
433+ } ) ;
434+
435+ // Expand repo to see StatusDot
436+ await user . click ( screen . getByText ( "owner/repo" ) ) ;
430437 await waitFor ( ( ) => {
431438 expect ( screen . getByLabelText ( "Checks in progress" ) ) . toBeTruthy ( ) ;
432439 } ) ;
0 commit comments