@@ -10,11 +10,11 @@ const TEXT_HINT = 'static text';
10
10
const NO_MATCHES_TEXT : any = 'not-existent-element' ;
11
11
12
12
const getMultipleInstancesFoundMessage = ( value : string ) => {
13
- return `Found multiple elements with aria-label or accessibilityLabel : ${ value } ` ;
13
+ return `Found multiple elements with accessibility label : ${ value } ` ;
14
14
} ;
15
15
16
16
const getNoInstancesFoundMessage = ( value : string ) => {
17
- return `Unable to find an element with aria-label or accessibilityLabel : ${ value } ` ;
17
+ return `Unable to find an element with accessibility label : ${ value } ` ;
18
18
} ;
19
19
20
20
const Typography = ( { children, ...rest } : any ) => {
@@ -161,7 +161,7 @@ test('byLabelText queries support hidden option', () => {
161
161
) . toBeFalsy ( ) ;
162
162
expect ( ( ) => getByLabelText ( 'hidden' , { includeHiddenElements : false } ) )
163
163
. toThrowErrorMatchingInlineSnapshot ( `
164
- "Unable to find an element with aria-label or accessibilityLabel : hidden
164
+ "Unable to find an element with accessibility label : hidden
165
165
166
166
<Text
167
167
accessibilityLabel="hidden"
@@ -258,7 +258,7 @@ test('error message renders the element tree, preserving only helpful props', as
258
258
const view = render ( < TouchableOpacity accessibilityLabel = "LABEL" key = "3" /> ) ;
259
259
260
260
expect ( ( ) => view . getByLabelText ( 'FOO' ) ) . toThrowErrorMatchingInlineSnapshot ( `
261
- "Unable to find an element with aria-label or accessibilityLabel : FOO
261
+ "Unable to find an element with accessibility label : FOO
262
262
263
263
<View
264
264
accessibilityLabel="LABEL"
@@ -267,7 +267,7 @@ test('error message renders the element tree, preserving only helpful props', as
267
267
268
268
expect ( ( ) => view . getAllByLabelText ( 'FOO' ) )
269
269
. toThrowErrorMatchingInlineSnapshot ( `
270
- "Unable to find an element with aria-label or accessibilityLabel : FOO
270
+ "Unable to find an element with accessibility label : FOO
271
271
272
272
<View
273
273
accessibilityLabel="LABEL"
@@ -276,7 +276,7 @@ test('error message renders the element tree, preserving only helpful props', as
276
276
277
277
await expect ( view . findByLabelText ( 'FOO' ) ) . rejects
278
278
. toThrowErrorMatchingInlineSnapshot ( `
279
- "Unable to find an element with aria-label or accessibilityLabel : FOO
279
+ "Unable to find an element with accessibility label : FOO
280
280
281
281
<View
282
282
accessibilityLabel="LABEL"
@@ -285,7 +285,7 @@ test('error message renders the element tree, preserving only helpful props', as
285
285
286
286
await expect ( view . findAllByLabelText ( 'FOO' ) ) . rejects
287
287
. toThrowErrorMatchingInlineSnapshot ( `
288
- "Unable to find an element with aria-label or accessibilityLabel : FOO
288
+ "Unable to find an element with accessibility label : FOO
289
289
290
290
<View
291
291
accessibilityLabel="LABEL"
0 commit comments