@@ -8,11 +8,11 @@ const TEXT_HINT = 'static text';
8
8
const NO_MATCHES_TEXT : any = 'not-existent-element' ;
9
9
10
10
const getMultipleInstancesFoundMessage = ( value : string ) => {
11
- return `Found multiple elements with accessibilityHint : ${ value } ` ;
11
+ return `Found multiple elements with accessibility hint : ${ value } ` ;
12
12
} ;
13
13
14
14
const getNoInstancesFoundMessage = ( value : string ) => {
15
- return `Unable to find an element with accessibilityHint : ${ value } ` ;
15
+ return `Unable to find an element with accessibility hint : ${ value } ` ;
16
16
} ;
17
17
18
18
const Typography = ( { children, ...rest } : any ) => {
@@ -114,7 +114,7 @@ test('byHintText queries support hidden option', () => {
114
114
expect ( screen . queryByHintText ( 'hidden' , { includeHiddenElements : false } ) ) . toBeFalsy ( ) ;
115
115
expect ( ( ) => screen . getByHintText ( 'hidden' , { includeHiddenElements : false } ) )
116
116
. toThrowErrorMatchingInlineSnapshot ( `
117
- "Unable to find an element with accessibilityHint : hidden
117
+ "Unable to find an element with accessibility hint : hidden
118
118
119
119
<Text
120
120
accessibilityHint="hidden"
@@ -133,7 +133,7 @@ test('error message renders the element tree, preserving only helpful props', as
133
133
render ( < Pressable accessibilityHint = "HINT" key = "3" /> ) ;
134
134
135
135
expect ( ( ) => screen . getByHintText ( 'FOO' ) ) . toThrowErrorMatchingInlineSnapshot ( `
136
- "Unable to find an element with accessibilityHint : FOO
136
+ "Unable to find an element with accessibility hint : FOO
137
137
138
138
<View
139
139
accessibilityHint="HINT"
@@ -142,7 +142,7 @@ test('error message renders the element tree, preserving only helpful props', as
142
142
` ) ;
143
143
144
144
expect ( ( ) => screen . getAllByHintText ( 'FOO' ) ) . toThrowErrorMatchingInlineSnapshot ( `
145
- "Unable to find an element with accessibilityHint : FOO
145
+ "Unable to find an element with accessibility hint : FOO
146
146
147
147
<View
148
148
accessibilityHint="HINT"
@@ -151,7 +151,7 @@ test('error message renders the element tree, preserving only helpful props', as
151
151
` ) ;
152
152
153
153
await expect ( screen . findByHintText ( 'FOO' ) ) . rejects . toThrowErrorMatchingInlineSnapshot ( `
154
- "Unable to find an element with accessibilityHint : FOO
154
+ "Unable to find an element with accessibility hint : FOO
155
155
156
156
<View
157
157
accessibilityHint="HINT"
@@ -160,7 +160,7 @@ test('error message renders the element tree, preserving only helpful props', as
160
160
` ) ;
161
161
162
162
await expect ( screen . findAllByHintText ( 'FOO' ) ) . rejects . toThrowErrorMatchingInlineSnapshot ( `
163
- "Unable to find an element with accessibilityHint : FOO
163
+ "Unable to find an element with accessibility hint : FOO
164
164
165
165
<View
166
166
accessibilityHint="HINT"
0 commit comments