Skip to content

Commit 2386cf6

Browse files
committed
tests: update snapshot for visionOS
1 parent 6a93c10 commit 2386cf6

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

packages/react-native/Libraries/Components/Pressable/__tests__/__snapshots__/Pressable-test.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ exports[`<Pressable /> should render as expected: should deep render when mocked
3131
onResponderTerminate={[Function]}
3232
onResponderTerminationRequest={[Function]}
3333
onStartShouldSetResponder={[Function]}
34+
visionos_hoverEffect="highlight"
3435
>
3536
<View />
3637
</View>
@@ -67,6 +68,7 @@ exports[`<Pressable /> should render as expected: should deep render when not mo
6768
onResponderTerminate={[Function]}
6869
onResponderTerminationRequest={[Function]}
6970
onStartShouldSetResponder={[Function]}
71+
visionos_hoverEffect="highlight"
7072
>
7173
<View />
7274
</View>
@@ -115,6 +117,7 @@ exports[`<Pressable disabled={true} /> should be disabled when disabled is true:
115117
onResponderTerminate={[Function]}
116118
onResponderTerminationRequest={[Function]}
117119
onStartShouldSetResponder={[Function]}
120+
visionos_hoverEffect="highlight"
118121
>
119122
<View />
120123
</View>
@@ -151,6 +154,7 @@ exports[`<Pressable disabled={true} /> should be disabled when disabled is true:
151154
onResponderTerminate={[Function]}
152155
onResponderTerminationRequest={[Function]}
153156
onStartShouldSetResponder={[Function]}
157+
visionos_hoverEffect="highlight"
154158
>
155159
<View />
156160
</View>
@@ -203,6 +207,7 @@ exports[`<Pressable disabled={true} accessibilityState={{}} /> should be disable
203207
onResponderTerminate={[Function]}
204208
onResponderTerminationRequest={[Function]}
205209
onStartShouldSetResponder={[Function]}
210+
visionos_hoverEffect="highlight"
206211
>
207212
<View />
208213
</View>
@@ -239,6 +244,7 @@ exports[`<Pressable disabled={true} accessibilityState={{}} /> should be disable
239244
onResponderTerminate={[Function]}
240245
onResponderTerminationRequest={[Function]}
241246
onStartShouldSetResponder={[Function]}
247+
visionos_hoverEffect="highlight"
242248
>
243249
<View />
244250
</View>
@@ -293,6 +299,7 @@ exports[`<Pressable disabled={true} accessibilityState={{checked: true}} /> shou
293299
onResponderTerminate={[Function]}
294300
onResponderTerminationRequest={[Function]}
295301
onStartShouldSetResponder={[Function]}
302+
visionos_hoverEffect="highlight"
296303
>
297304
<View />
298305
</View>
@@ -329,6 +336,7 @@ exports[`<Pressable disabled={true} accessibilityState={{checked: true}} /> shou
329336
onResponderTerminate={[Function]}
330337
onResponderTerminationRequest={[Function]}
331338
onStartShouldSetResponder={[Function]}
339+
visionos_hoverEffect="highlight"
332340
>
333341
<View />
334342
</View>
@@ -391,6 +399,7 @@ exports[`<Pressable disabled={true} accessibilityState={{disabled: false}} /> sh
391399
onResponderTerminate={[Function]}
392400
onResponderTerminationRequest={[Function]}
393401
onStartShouldSetResponder={[Function]}
402+
visionos_hoverEffect="highlight"
394403
>
395404
<View />
396405
</View>
@@ -427,6 +436,7 @@ exports[`<Pressable disabled={true} accessibilityState={{disabled: false}} /> sh
427436
onResponderTerminate={[Function]}
428437
onResponderTerminationRequest={[Function]}
429438
onStartShouldSetResponder={[Function]}
439+
visionos_hoverEffect="highlight"
430440
>
431441
<View />
432442
</View>

packages/react-native/Libraries/Components/Touchable/__tests__/__snapshots__/TouchableOpacity-test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ exports[`TouchableOpacity renders correctly 1`] = `
3434
"opacity": 1,
3535
}
3636
}
37+
visionos_hoverEffect="highlight"
3738
>
3839
<Text>
3940
Touchable
@@ -75,6 +76,7 @@ exports[`TouchableOpacity renders in disabled state when a disabled prop is pass
7576
"opacity": 1,
7677
}
7778
}
79+
visionos_hoverEffect="highlight"
7880
>
7981
<Text>
8082
Touchable
@@ -116,6 +118,7 @@ exports[`TouchableOpacity renders in disabled state when a key disabled in acces
116118
"opacity": 1,
117119
}
118120
}
121+
visionos_hoverEffect="highlight"
119122
>
120123
<Text>
121124
Touchable

packages/react-native/Libraries/Components/__tests__/__snapshots__/Button-test.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ exports[`<Button /> should be disabled and it should set accessibilityState to d
3535
"opacity": 1,
3636
}
3737
}
38+
visionos_hoverEffect="highlight"
3839
>
3940
<View
4041
style={
@@ -101,6 +102,7 @@ exports[`<Button /> should be disabled when disabled is empty and accessibilityS
101102
"opacity": 1,
102103
}
103104
}
105+
visionos_hoverEffect="highlight"
104106
>
105107
<View
106108
style={
@@ -167,6 +169,7 @@ exports[`<Button /> should be disabled when disabled={true} and accessibilitySta
167169
"opacity": 1,
168170
}
169171
}
172+
visionos_hoverEffect="highlight"
170173
>
171174
<View
172175
style={
@@ -234,6 +237,7 @@ exports[`<Button /> should be set importantForAccessibility={no-hide-descendants
234237
"opacity": 1,
235238
}
236239
}
240+
visionos_hoverEffect="highlight"
237241
>
238242
<View
239243
style={
@@ -296,6 +300,7 @@ exports[`<Button /> should be set importantForAccessibility={no-hide-descendants
296300
"opacity": 1,
297301
}
298302
}
303+
visionos_hoverEffect="highlight"
299304
>
300305
<View
301306
style={
@@ -357,6 +362,7 @@ exports[`<Button /> should not be disabled when disabled={false} and accessibili
357362
"opacity": 1,
358363
}
359364
}
365+
visionos_hoverEffect="highlight"
360366
>
361367
<View
362368
style={
@@ -419,6 +425,7 @@ exports[`<Button /> should not be disabled when disabled={false} and accessibili
419425
"opacity": 1,
420426
}
421427
}
428+
visionos_hoverEffect="highlight"
422429
>
423430
<View
424431
style={
@@ -481,6 +488,7 @@ exports[`<Button /> should overwrite accessibilityState with value of disabled p
481488
"opacity": 1,
482489
}
483490
}
491+
visionos_hoverEffect="highlight"
484492
>
485493
<View
486494
style={
@@ -547,6 +555,7 @@ exports[`<Button /> should render as expected 1`] = `
547555
"opacity": 1,
548556
}
549557
}
558+
visionos_hoverEffect="highlight"
550559
>
551560
<View
552561
style={

0 commit comments

Comments
 (0)