@@ -849,7 +849,7 @@ describe('comment-pr-findings.js', () => {
849849 } ) ;
850850
851851 describe ( 'Stale Review Handling' , ( ) => {
852- test ( 'should only dismiss own bot reviews when DISMISS_STALE_REVIEWS is true' , async ( ) => {
852+ test ( 'should only dismiss marker-tagged reviews when DISMISS_STALE_REVIEWS is true' , async ( ) => {
853853 process . env . DISMISS_STALE_REVIEWS = 'true' ;
854854
855855 const mockFindings = [ {
@@ -864,13 +864,13 @@ describe('comment-pr-findings.js', () => {
864864
865865 const mockReviews = [
866866 // Our reviews - should be dismissed
867- { id : 101 , state : 'CHANGES_REQUESTED' , user : { type : 'Bot' } , body : 'Found 3 security issues. Please address the high-severity issues before merging.' } ,
868- { id : 102 , state : 'APPROVED' , user : { type : 'Bot' } , body : 'No issues found. Changes look good.' } ,
867+ { id : 101 , state : 'CHANGES_REQUESTED' , user : { type : 'Bot' } , body : 'Found 3 security issues. Please address the high-severity issues before merging.\n\n<!-- nutrient-code-review-action --> ' } ,
868+ { id : 102 , state : 'APPROVED' , user : { type : 'Bot' } , body : 'No issues found. Changes look good.\n\n<!-- nutrient-code-review-action --> ' } ,
869869 // Other bot reviews - should NOT be dismissed
870870 { id : 103 , state : 'APPROVED' , user : { type : 'Bot' } , body : 'Dependabot has approved this PR.' } ,
871871 { id : 104 , state : 'CHANGES_REQUESTED' , user : { type : 'Bot' } , body : 'Renovate: This PR has conflicts.' } ,
872872 // COMMENTED state - should NOT be dismissed
873- { id : 105 , state : 'COMMENTED' , user : { type : 'Bot' } , body : 'Found 1 security issue.' } ,
873+ { id : 105 , state : 'COMMENTED' , user : { type : 'Bot' } , body : 'Found 1 security issue.\n\n<!-- nutrient-code-review-action --> ' } ,
874874 // User review - should NOT be dismissed
875875 { id : 106 , state : 'CHANGES_REQUESTED' , user : { type : 'User' } , body : 'Please fix the typo.' }
876876 ] ;
0 commit comments