mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Update snapshot tests
This commit is contained in:
@@ -19,147 +19,143 @@ exports[`AddObsButton renders correctly 1`] = `
|
||||
}
|
||||
>
|
||||
<View
|
||||
onLayout={[Function]}
|
||||
>
|
||||
<View
|
||||
accessibilityHint="Opens AI camera."
|
||||
accessibilityLabel="Add observations"
|
||||
accessibilityRole="button"
|
||||
accessibilityState={
|
||||
{
|
||||
"busy": undefined,
|
||||
"checked": undefined,
|
||||
"disabled": false,
|
||||
"expanded": undefined,
|
||||
"selected": undefined,
|
||||
}
|
||||
accessibilityHint="Opens AI camera."
|
||||
accessibilityLabel="Add observations"
|
||||
accessibilityRole="button"
|
||||
accessibilityState={
|
||||
{
|
||||
"busy": undefined,
|
||||
"checked": undefined,
|
||||
"disabled": false,
|
||||
"expanded": undefined,
|
||||
"selected": undefined,
|
||||
}
|
||||
accessibilityValue={
|
||||
{
|
||||
"max": undefined,
|
||||
"min": undefined,
|
||||
"now": undefined,
|
||||
"text": undefined,
|
||||
}
|
||||
}
|
||||
accessibilityValue={
|
||||
{
|
||||
"max": undefined,
|
||||
"min": undefined,
|
||||
"now": undefined,
|
||||
"text": undefined,
|
||||
}
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
onBlur={[Function]}
|
||||
onClick={[Function]}
|
||||
onFocus={[Function]}
|
||||
onResponderGrant={[Function]}
|
||||
onResponderMove={[Function]}
|
||||
onResponderRelease={[Function]}
|
||||
onResponderTerminate={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
style={
|
||||
}
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
onBlur={[Function]}
|
||||
onClick={[Function]}
|
||||
onFocus={[Function]}
|
||||
onResponderGrant={[Function]}
|
||||
onResponderMove={[Function]}
|
||||
onResponderRelease={[Function]}
|
||||
onResponderTerminate={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
style={
|
||||
[
|
||||
[
|
||||
[
|
||||
{
|
||||
"width": 69,
|
||||
{
|
||||
"width": 69,
|
||||
},
|
||||
{
|
||||
"height": 69,
|
||||
},
|
||||
{
|
||||
"marginBottom": 5,
|
||||
},
|
||||
{
|
||||
"borderBottomLeftRadius": 9999,
|
||||
"borderBottomRightRadius": 9999,
|
||||
"borderTopLeftRadius": 9999,
|
||||
"borderTopRightRadius": 9999,
|
||||
},
|
||||
{
|
||||
"overflow": "hidden",
|
||||
},
|
||||
{
|
||||
"elevation": 5,
|
||||
"shadowColor": "rgba( 0, 0, 0, 0.25 )",
|
||||
"shadowOffset": {
|
||||
"height": 2,
|
||||
"width": 0,
|
||||
},
|
||||
{
|
||||
"height": 69,
|
||||
},
|
||||
{
|
||||
"marginBottom": 5,
|
||||
},
|
||||
{
|
||||
"borderBottomLeftRadius": 9999,
|
||||
"borderBottomRightRadius": 9999,
|
||||
"borderTopLeftRadius": 9999,
|
||||
"borderTopRightRadius": 9999,
|
||||
},
|
||||
{
|
||||
"overflow": "hidden",
|
||||
},
|
||||
{
|
||||
"elevation": 5,
|
||||
"shadowColor": "rgba( 0, 0, 0, 0.25 )",
|
||||
"shadowOffset": {
|
||||
"height": 2,
|
||||
"width": 0,
|
||||
},
|
||||
"shadowOpacity": 0.25,
|
||||
"shadowRadius": 2,
|
||||
},
|
||||
],
|
||||
"shadowOpacity": 0.25,
|
||||
"shadowRadius": 2,
|
||||
},
|
||||
],
|
||||
]
|
||||
}
|
||||
testID="add-obs-button"
|
||||
>
|
||||
<BVLinearGradient
|
||||
angle={156.95}
|
||||
colors={
|
||||
[
|
||||
4285836288,
|
||||
4280909703,
|
||||
]
|
||||
}
|
||||
testID="add-obs-button"
|
||||
endPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 1,
|
||||
}
|
||||
}
|
||||
locations={null}
|
||||
startPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 0,
|
||||
}
|
||||
}
|
||||
useAngle={true}
|
||||
>
|
||||
<BVLinearGradient
|
||||
angle={156.95}
|
||||
colors={
|
||||
<View
|
||||
style={
|
||||
[
|
||||
4285836288,
|
||||
4280909703,
|
||||
[
|
||||
{
|
||||
"flexGrow": 1,
|
||||
},
|
||||
{
|
||||
"aspectRatio": 1,
|
||||
},
|
||||
{
|
||||
"display": "flex",
|
||||
},
|
||||
{
|
||||
"alignItems": "center",
|
||||
},
|
||||
{
|
||||
"justifyContent": "center",
|
||||
},
|
||||
],
|
||||
]
|
||||
}
|
||||
endPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 1,
|
||||
}
|
||||
}
|
||||
locations={null}
|
||||
startPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 0,
|
||||
}
|
||||
}
|
||||
useAngle={true}
|
||||
>
|
||||
<View
|
||||
<Text
|
||||
allowFontScaling={false}
|
||||
selectable={false}
|
||||
style={
|
||||
[
|
||||
[
|
||||
{
|
||||
"flexGrow": 1,
|
||||
},
|
||||
{
|
||||
"aspectRatio": 1,
|
||||
},
|
||||
{
|
||||
"display": "flex",
|
||||
},
|
||||
{
|
||||
"alignItems": "center",
|
||||
},
|
||||
{
|
||||
"justifyContent": "center",
|
||||
},
|
||||
],
|
||||
{
|
||||
"color": "#ffffff",
|
||||
"fontSize": 47,
|
||||
},
|
||||
null,
|
||||
{
|
||||
"fontFamily": "INatIcon",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
},
|
||||
{},
|
||||
]
|
||||
}
|
||||
>
|
||||
<Text
|
||||
allowFontScaling={false}
|
||||
selectable={false}
|
||||
style={
|
||||
[
|
||||
{
|
||||
"color": "#ffffff",
|
||||
"fontSize": 47,
|
||||
},
|
||||
null,
|
||||
{
|
||||
"fontFamily": "INatIcon",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
},
|
||||
{},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
||||
</Text>
|
||||
</View>
|
||||
</BVLinearGradient>
|
||||
</View>
|
||||
|
||||
</Text>
|
||||
</View>
|
||||
</BVLinearGradient>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
@@ -370,147 +370,143 @@ exports[`CustomTabBar with advanced user layout should render correctly 1`] = `
|
||||
}
|
||||
>
|
||||
<View
|
||||
onLayout={[Function]}
|
||||
>
|
||||
<View
|
||||
accessibilityHint="Shows observation creation options"
|
||||
accessibilityLabel="Add observations"
|
||||
accessibilityRole="button"
|
||||
accessibilityState={
|
||||
{
|
||||
"busy": undefined,
|
||||
"checked": undefined,
|
||||
"disabled": false,
|
||||
"expanded": undefined,
|
||||
"selected": undefined,
|
||||
}
|
||||
accessibilityHint="Shows observation creation options"
|
||||
accessibilityLabel="Add observations"
|
||||
accessibilityRole="button"
|
||||
accessibilityState={
|
||||
{
|
||||
"busy": undefined,
|
||||
"checked": undefined,
|
||||
"disabled": false,
|
||||
"expanded": undefined,
|
||||
"selected": undefined,
|
||||
}
|
||||
accessibilityValue={
|
||||
{
|
||||
"max": undefined,
|
||||
"min": undefined,
|
||||
"now": undefined,
|
||||
"text": undefined,
|
||||
}
|
||||
}
|
||||
accessibilityValue={
|
||||
{
|
||||
"max": undefined,
|
||||
"min": undefined,
|
||||
"now": undefined,
|
||||
"text": undefined,
|
||||
}
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
onBlur={[Function]}
|
||||
onClick={[Function]}
|
||||
onFocus={[Function]}
|
||||
onResponderGrant={[Function]}
|
||||
onResponderMove={[Function]}
|
||||
onResponderRelease={[Function]}
|
||||
onResponderTerminate={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
style={
|
||||
}
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
onBlur={[Function]}
|
||||
onClick={[Function]}
|
||||
onFocus={[Function]}
|
||||
onResponderGrant={[Function]}
|
||||
onResponderMove={[Function]}
|
||||
onResponderRelease={[Function]}
|
||||
onResponderTerminate={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
style={
|
||||
[
|
||||
[
|
||||
[
|
||||
{
|
||||
"width": 69,
|
||||
{
|
||||
"width": 69,
|
||||
},
|
||||
{
|
||||
"height": 69,
|
||||
},
|
||||
{
|
||||
"marginBottom": 5,
|
||||
},
|
||||
{
|
||||
"borderBottomLeftRadius": 9999,
|
||||
"borderBottomRightRadius": 9999,
|
||||
"borderTopLeftRadius": 9999,
|
||||
"borderTopRightRadius": 9999,
|
||||
},
|
||||
{
|
||||
"overflow": "hidden",
|
||||
},
|
||||
{
|
||||
"elevation": 5,
|
||||
"shadowColor": "rgba( 0, 0, 0, 0.25 )",
|
||||
"shadowOffset": {
|
||||
"height": 2,
|
||||
"width": 0,
|
||||
},
|
||||
{
|
||||
"height": 69,
|
||||
},
|
||||
{
|
||||
"marginBottom": 5,
|
||||
},
|
||||
{
|
||||
"borderBottomLeftRadius": 9999,
|
||||
"borderBottomRightRadius": 9999,
|
||||
"borderTopLeftRadius": 9999,
|
||||
"borderTopRightRadius": 9999,
|
||||
},
|
||||
{
|
||||
"overflow": "hidden",
|
||||
},
|
||||
{
|
||||
"elevation": 5,
|
||||
"shadowColor": "rgba( 0, 0, 0, 0.25 )",
|
||||
"shadowOffset": {
|
||||
"height": 2,
|
||||
"width": 0,
|
||||
},
|
||||
"shadowOpacity": 0.25,
|
||||
"shadowRadius": 2,
|
||||
},
|
||||
],
|
||||
"shadowOpacity": 0.25,
|
||||
"shadowRadius": 2,
|
||||
},
|
||||
],
|
||||
]
|
||||
}
|
||||
testID="add-obs-button"
|
||||
>
|
||||
<BVLinearGradient
|
||||
angle={156.95}
|
||||
colors={
|
||||
[
|
||||
4285836288,
|
||||
4280909703,
|
||||
]
|
||||
}
|
||||
testID="add-obs-button"
|
||||
endPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 1,
|
||||
}
|
||||
}
|
||||
locations={null}
|
||||
startPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 0,
|
||||
}
|
||||
}
|
||||
useAngle={true}
|
||||
>
|
||||
<BVLinearGradient
|
||||
angle={156.95}
|
||||
colors={
|
||||
<View
|
||||
style={
|
||||
[
|
||||
4285836288,
|
||||
4280909703,
|
||||
[
|
||||
{
|
||||
"flexGrow": 1,
|
||||
},
|
||||
{
|
||||
"aspectRatio": 1,
|
||||
},
|
||||
{
|
||||
"display": "flex",
|
||||
},
|
||||
{
|
||||
"alignItems": "center",
|
||||
},
|
||||
{
|
||||
"justifyContent": "center",
|
||||
},
|
||||
],
|
||||
]
|
||||
}
|
||||
endPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 1,
|
||||
}
|
||||
}
|
||||
locations={null}
|
||||
startPoint={
|
||||
{
|
||||
"x": 0.5,
|
||||
"y": 0,
|
||||
}
|
||||
}
|
||||
useAngle={true}
|
||||
>
|
||||
<View
|
||||
<Text
|
||||
allowFontScaling={false}
|
||||
selectable={false}
|
||||
style={
|
||||
[
|
||||
[
|
||||
{
|
||||
"flexGrow": 1,
|
||||
},
|
||||
{
|
||||
"aspectRatio": 1,
|
||||
},
|
||||
{
|
||||
"display": "flex",
|
||||
},
|
||||
{
|
||||
"alignItems": "center",
|
||||
},
|
||||
{
|
||||
"justifyContent": "center",
|
||||
},
|
||||
],
|
||||
{
|
||||
"color": "#ffffff",
|
||||
"fontSize": 31,
|
||||
},
|
||||
null,
|
||||
{
|
||||
"fontFamily": "INatIcon",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
},
|
||||
{},
|
||||
]
|
||||
}
|
||||
>
|
||||
<Text
|
||||
allowFontScaling={false}
|
||||
selectable={false}
|
||||
style={
|
||||
[
|
||||
{
|
||||
"color": "#ffffff",
|
||||
"fontSize": 31,
|
||||
},
|
||||
null,
|
||||
{
|
||||
"fontFamily": "INatIcon",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
},
|
||||
{},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
||||
</Text>
|
||||
</View>
|
||||
</BVLinearGradient>
|
||||
</View>
|
||||
|
||||
</Text>
|
||||
</View>
|
||||
</BVLinearGradient>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user