mattermost-mobile/app/screens/thread/__snapshots__/thread.ios.test.js.snap
Elias Nahum 1a605891fe
MM-22401 Refactor Post Draft (#4122)
* Babel TS and Eslint config

* Channel is archived component

* Move Typing component

* Move Uploads component

* Add PostInput component

* QuickActions components

* Add PostDraft component

* Remove old PostTextbox component

* Rename post_textbox constant

* Fix Autocomplete

* Rename blur post draft event

* Fix references

* Feedback review

* Fix autocomplete for iOS
2020-05-06 06:30:51 -04:00

162 lines
3.4 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`thread should match snapshot, has root post 1`] = `
<React.Fragment>
<Connect(SafeAreaIos)
excludeHeader={true}
forceInsets={true}
>
<View
style={
Object {
"backgroundColor": "rgba(61,60,64,0.2)",
"height": 1,
}
}
/>
<Connect(StatusBar) />
<React.Fragment>
<Connect(PostList)
currentUserId="member_user_id"
indicateNewMessages={false}
lastPostIndex={2}
lastViewedAt={0}
location="thread"
onPostPress={[Function]}
postIds={
Array [
"root_id",
"post_id_1",
"post_id_2",
]
}
renderFooter={
<Loading
color="#3d3c40"
size="large"
style={Object {}}
/>
}
scrollViewNativeID="threadPostList"
/>
<View
nativeID="threadAccessoriesContainer"
>
<Connect(Autocomplete)
cursorPositionEvent="onThreadTextBoxCursorChange"
maxHeight={200}
onChangeText={[Function]}
rootId="root_id"
valueEvent="onThreadTextBoxValueChange"
/>
</View>
</React.Fragment>
</Connect(SafeAreaIos)>
<KeyboardTrackingView
accessoriesContainerID="threadAccessoriesContainer"
scrollViewNativeID="threadPostList"
>
<Connect(PostDraft)
channelId="channel_id"
channelIsArchived={false}
cursorPositionEvent="onThreadTextBoxCursorChange"
rootId="root_id"
valueEvent="onThreadTextBoxValueChange"
/>
</KeyboardTrackingView>
</React.Fragment>
`;
exports[`thread should match snapshot, no root post, loading 1`] = `
<React.Fragment>
<Connect(SafeAreaIos)
excludeHeader={true}
forceInsets={true}
>
<View
style={
Object {
"backgroundColor": "rgba(61,60,64,0.2)",
"height": 1,
}
}
/>
<Connect(StatusBar) />
<Loading
color="#3d3c40"
size="large"
style={Object {}}
/>
</Connect(SafeAreaIos)>
</React.Fragment>
`;
exports[`thread should match snapshot, render footer 1`] = `
<Connect(PostList)
currentUserId="member_user_id"
indicateNewMessages={false}
lastPostIndex={2}
lastViewedAt={0}
location="thread"
onPostPress={[Function]}
postIds={
Array [
"root_id",
"post_id_1",
"post_id_2",
]
}
renderFooter={
<Loading
color="#3d3c40"
size="large"
style={Object {}}
/>
}
scrollViewNativeID="threadPostList"
/>
`;
exports[`thread should match snapshot, render footer 2`] = `
<Connect(PostList)
currentUserId="member_user_id"
indicateNewMessages={false}
lastPostIndex={2}
lastViewedAt={0}
location="thread"
onPostPress={[Function]}
postIds={
Array [
"root_id",
"post_id_1",
"post_id_2",
]
}
renderFooter={null}
scrollViewNativeID="threadPostList"
/>
`;
exports[`thread should match snapshot, render footer 3`] = `
<React.Fragment>
<Connect(SafeAreaIos)
excludeHeader={true}
forceInsets={true}
>
<View
style={
Object {
"backgroundColor": "rgba(61,60,64,0.2)",
"height": 1,
}
}
/>
<Connect(StatusBar) />
<Loading
color="#3d3c40"
size="large"
style={Object {}}
/>
</Connect(SafeAreaIos)>
</React.Fragment>
`;