mattermost-mobile/app/components/server_icon/__snapshots__/server_icon.test.tsx.snap
2024-04-24 06:54:09 +08:00

228 lines
4.7 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Server Icon Server Icon Component should match snapshot 1`] = `
<View>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": true,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={false}
hitSlop={
{
"bottom": 5,
"left": 40,
"right": 20,
"top": 20,
}
}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<Icon
color="rgba(255,255,255,0.56)"
name="server-variant"
size={24}
/>
</View>
</View>
`;
exports[`Server Icon Server Icon Component should match snapshot with mentions 1`] = `
<View>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": true,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={false}
hitSlop={
{
"bottom": 5,
"left": 40,
"right": 20,
"top": 20,
}
}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
testID="server_icon"
>
<Icon
color="rgba(255,255,255,0.56)"
name="server-variant"
size={24}
/>
<Text
collapsable={false}
numberOfLines={1}
style={
{
"alignSelf": "flex-end",
"backgroundColor": "#ffffff",
"borderColor": "#162545",
"borderRadius": 11,
"borderWidth": 2,
"color": "#1e325c",
"fontFamily": "OpenSans-Bold",
"fontSize": 12,
"height": 22,
"left": 13,
"lineHeight": 16.5,
"minWidth": 26,
"opacity": 1,
"overflow": "hidden",
"paddingHorizontal": 5,
"position": "absolute",
"textAlign": "center",
"top": -8,
"transform": [
{
"scale": 1,
},
],
}
}
testID="server_icon.badge"
>
1
</Text>
</View>
</View>
`;
exports[`Server Icon Server Icon Component should match snapshot with unreads 1`] = `
<View>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": true,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={false}
hitSlop={
{
"bottom": 5,
"left": 40,
"right": 20,
"top": 20,
}
}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
testID="server_icon"
>
<Icon
color="rgba(255,255,255,0.56)"
name="server-variant"
size={24}
/>
<Text
collapsable={false}
numberOfLines={1}
style={
{
"alignSelf": "flex-end",
"backgroundColor": "#ffffff",
"borderColor": "#162545",
"borderRadius": 6,
"borderWidth": 2,
"color": "#1e325c",
"fontFamily": "OpenSans-Bold",
"fontSize": 12,
"height": 12,
"left": 18,
"lineHeight": 16.5,
"minWidth": 12,
"opacity": 1,
"overflow": "hidden",
"paddingHorizontal": 0,
"position": "absolute",
"textAlign": "center",
"top": -5,
"transform": [
{
"scale": 1,
},
],
}
}
testID="server_icon.badge"
/>
</View>
</View>
`;