@@ -455,7 +455,7 @@ describe("PersonalSummaryStrip — click applies filters", () => {
455455 expect ( viewState . tabFilters . pullRequests . reviewDecision ) . toBe ( "REVIEW_REQUIRED" ) ;
456456 } ) ;
457457
458- it ( "clicking ready to merge sets scope=all, role=author, draft=ready, checkStatus=success" , ( ) => {
458+ it ( "clicking ready to merge sets scope=all, role=author, draft=ready, checkStatus=success, reviewDecision=mergeable " , ( ) => {
459459 const onTabChange = vi . fn ( ) ;
460460 const prs = [ makePullRequest ( { userLogin : "me" , draft : false , checkStatus : "success" , reviewDecision : "APPROVED" } ) ] ;
461461
@@ -469,6 +469,7 @@ describe("PersonalSummaryStrip — click applies filters", () => {
469469 expect ( viewState . tabFilters . pullRequests . role ) . toBe ( "author" ) ;
470470 expect ( viewState . tabFilters . pullRequests . draft ) . toBe ( "ready" ) ;
471471 expect ( viewState . tabFilters . pullRequests . checkStatus ) . toBe ( "success" ) ;
472+ expect ( viewState . tabFilters . pullRequests . reviewDecision ) . toBe ( "mergeable" ) ;
472473 } ) ;
473474
474475 it ( "clicking blocked sets scope=all, role=author, draft=ready, checkStatus=blocked" , ( ) => {
@@ -507,6 +508,8 @@ describe("PersonalSummaryStrip — count-to-filter contract", () => {
507508 makePullRequest ( { id : 4 , title : "Review PR" , repoFullName : "org/repo-c" , userLogin : "other-author" , draft : false , checkStatus : "pending" , reviewDecision : "REVIEW_REQUIRED" , surfacedBy : [ "other-author" ] , enriched : true , reviewerLogins : [ "me" ] } ) ,
508509 // PR authored by me, draft with failing CI → NOT blocked (draft excluded)
509510 makePullRequest ( { id : 5 , title : "Draft PR" , repoFullName : "org/repo-a" , userLogin : "me" , draft : true , checkStatus : "failure" , reviewDecision : null , surfacedBy : [ "me" ] , enriched : true , reviewerLogins : [ ] } ) ,
511+ // PR authored by me, passing CI, but CHANGES_REQUESTED → NOT ready to merge
512+ makePullRequest ( { id : 7 , title : "Changes Requested PR" , repoFullName : "org/repo-a" , userLogin : "me" , draft : false , checkStatus : "success" , reviewDecision : "CHANGES_REQUESTED" , surfacedBy : [ "me" ] , enriched : true , reviewerLogins : [ ] } ) ,
510513 // PR from tracked user, user not involved → only visible in scope=all
511514 makePullRequest ( { id : 6 , title : "Tracked PR" , repoFullName : "org/repo-d" , userLogin : "tracked-user" , draft : false , checkStatus : "success" , reviewDecision : "APPROVED" , surfacedBy : [ "tracked-user" ] , enriched : true , reviewerLogins : [ ] } ) ,
512515 ] ;
@@ -598,6 +601,7 @@ describe("PersonalSummaryStrip — count-to-filter contract", () => {
598601 screen . getByText ( "Ready PR" ) ;
599602 expect ( screen . queryByText ( "Conflict PR" ) ) . toBeNull ( ) ;
600603 expect ( screen . queryByText ( "Failing PR" ) ) . toBeNull ( ) ;
604+ expect ( screen . queryByText ( "Changes Requested PR" ) ) . toBeNull ( ) ;
601605 } ) ;
602606
603607 it ( "'assigned' count matches IssuesTab filtered view" , ( ) => {
0 commit comments