@@ -26,7 +26,7 @@ describe('generateIssueBody', () => {
2626 expect ( body ) . toContain ( '## What' )
2727 expect ( body ) . toContain ( '## Acceptance Criteria' )
2828 expect ( body ) . toContain ( 'The specific violation reported in this issue is no longer reproducible.' )
29- expect ( body ) . toContain ( 'The fix MUST meet WCAG 2.1 guidelines OR' )
29+ expect ( body ) . toContain ( 'The fix MUST meet WCAG 2.2 guidelines OR' )
3030 expect ( body ) . not . toContain ( 'Specifically:' )
3131 } )
3232
@@ -79,29 +79,29 @@ describe('generateIssueBody', () => {
7979 } )
8080
8181 it ( 'omits the category notice for WCAG findings' , ( ) => {
82- expect ( generateIssueBody ( baseFinding , 'github/accessibility-scanner' ) ) . not . toContain ( '**Note:** ' )
82+ expect ( generateIssueBody ( baseFinding , 'github/accessibility-scanner' ) ) . not . toContain ( '> [!NOTE] ' )
8383 expect ( generateIssueBody ( { ...baseFinding , category : 'wcag' } , 'github/accessibility-scanner' ) ) . not . toContain (
84- '**Note:** ' ,
84+ '> [!NOTE] ' ,
8585 )
8686 } )
8787
8888 it ( 'includes a best-practice notice for best-practice findings' , ( ) => {
8989 const body = generateIssueBody ( { ...baseFinding , category : 'best-practice' } , 'github/accessibility-scanner' )
9090
91- expect ( body ) . toContain ( '**Note:** ' )
91+ expect ( body ) . toContain ( '> [!NOTE] ' )
9292 expect ( body ) . toContain ( 'best-practice recommendation' )
93- expect ( body ) . toContain ( 'not a hard WCAG failure' )
94- expect ( body ) . toContain ( 'WCAG 2.1 if applicable' )
95- expect ( body ) . not . toContain ( 'The fix MUST meet WCAG 2.1 guidelines OR' )
93+ expect ( body ) . toContain ( 'not a definite WCAG failure' )
94+ expect ( body ) . toContain ( 'WCAG 2.2 if applicable' )
95+ expect ( body ) . not . toContain ( 'The fix MUST meet WCAG 2.2 guidelines OR' )
9696 } )
9797
9898 it ( 'includes an experimental notice for experimental findings' , ( ) => {
9999 const body = generateIssueBody ( { ...baseFinding , category : 'experimental' } , 'github/accessibility-scanner' )
100100
101- expect ( body ) . toContain ( '**Note:** ' )
101+ expect ( body ) . toContain ( '> [!NOTE] ' )
102102 expect ( body ) . toContain ( 'an experimental check' )
103- expect ( body ) . toContain ( 'not a hard WCAG failure' )
104- expect ( body ) . toContain ( 'WCAG 2.1 if applicable' )
105- expect ( body ) . not . toContain ( 'The fix MUST meet WCAG 2.1 guidelines OR' )
103+ expect ( body ) . toContain ( 'not a definite WCAG failure' )
104+ expect ( body ) . toContain ( 'WCAG 2.2 if applicable' )
105+ expect ( body ) . not . toContain ( 'The fix MUST meet WCAG 2.2 guidelines OR' )
106106 } )
107107} )
0 commit comments