77 */
88
99const FIXTURE_REASONS = {
10+ accessible : {
11+ label : 'Confirmed accessible' ,
12+ description : 'Reviewed and verified to meet accessibility requirements.' ,
13+ } ,
1014 false_positive : {
1115 label : 'False positive' ,
1216 description : 'This issue does not apply to this content.' ,
@@ -15,10 +19,6 @@ const FIXTURE_REASONS = {
1519 label : 'Remediated' ,
1620 description : 'This issue has been fixed.' ,
1721 } ,
18- accessible : {
19- label : 'Accessible' ,
20- description : 'This content is accessible by other means.' ,
21- } ,
2222} ;
2323
2424/**
@@ -83,9 +83,9 @@ describe( 'dismissHelpers', () => {
8383 const options = getDismissReasonOptions ( ) ;
8484 const values = options . map ( ( o ) => o . value ) ;
8585
86+ expect ( values [ 0 ] ) . toBe ( 'accessible' ) ;
8687 expect ( values ) . toContain ( 'false_positive' ) ;
8788 expect ( values ) . toContain ( 'remediated' ) ;
88- expect ( values ) . toContain ( 'accessible' ) ;
8989 } ) ;
9090
9191 test ( 'returns empty array when no dismiss reasons exist' , ( ) => {
@@ -99,7 +99,7 @@ describe( 'dismissHelpers', () => {
9999 const { getDismissReasonLabel } = loadHelpers ( FIXTURE_REASONS ) ;
100100 expect ( getDismissReasonLabel ( 'false_positive' ) ) . toBe ( 'False positive' ) ;
101101 expect ( getDismissReasonLabel ( 'remediated' ) ) . toBe ( 'Remediated' ) ;
102- expect ( getDismissReasonLabel ( 'accessible' ) ) . toBe ( 'Accessible ' ) ;
102+ expect ( getDismissReasonLabel ( 'accessible' ) ) . toBe ( 'Confirmed accessible ' ) ;
103103 } ) ;
104104
105105 test ( 'returns empty string for an unknown reason value' , ( ) => {
@@ -116,6 +116,7 @@ describe( 'dismissHelpers', () => {
116116 describe ( 'getDismissReasonDescription' , ( ) => {
117117 test ( 'returns the description for a known reason value' , ( ) => {
118118 const { getDismissReasonDescription } = loadHelpers ( FIXTURE_REASONS ) ;
119+ expect ( getDismissReasonDescription ( 'accessible' ) ) . toBe ( 'Reviewed and verified to meet accessibility requirements.' ) ;
119120 expect ( getDismissReasonDescription ( 'false_positive' ) ) . toBe ( 'This issue does not apply to this content.' ) ;
120121 expect ( getDismissReasonDescription ( 'remediated' ) ) . toBe ( 'This issue has been fixed.' ) ;
121122 } ) ;
@@ -131,4 +132,3 @@ describe( 'dismissHelpers', () => {
131132 } ) ;
132133 } ) ;
133134} ) ;
134-
0 commit comments