diff --git a/app/components/announcement_banner/__snapshots__/announcement_banner.test.js.snap b/app/components/announcement_banner/__snapshots__/announcement_banner.test.js.snap
index 2577cdd12..4ead02e20 100644
--- a/app/components/announcement_banner/__snapshots__/announcement_banner.test.js.snap
+++ b/app/components/announcement_banner/__snapshots__/announcement_banner.test.js.snap
@@ -1,401 +1,62 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AnnouncementBanner should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
- ,
- "style": Array [
- Object {
- "overflow": "hidden",
- "paddingHorizontal": 10,
- "position": "absolute",
- "top": 0,
- "width": "100%",
- },
- Object {
- "backgroundColor": "#ddd",
- "height": 0,
- },
- ],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
-
-
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- },
+,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Array [
- Object {
- "flex": 1,
- "fontSize": 14,
- "marginRight": 5,
- },
- Object {
- "color": "#fff",
- },
- ],
+ Object {
+ "backgroundColor": "#ddd",
+ "height": 0,
+ },
+ ]
+ }
+>
+
+
-
-
-
-
- ,
- "style": Array [
- Object {
- "overflow": "hidden",
- "paddingHorizontal": 10,
- "position": "absolute",
- "top": 0,
- "width": "100%",
- },
- Object {
- "backgroundColor": "#ddd",
- "height": 0,
- },
- ],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
-
-
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Array [
- Object {
- "flex": 1,
- "fontSize": 14,
- "marginRight": 5,
- },
- Object {
- "color": "#fff",
- },
- ],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "value": "Banner Text",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "color": "#fff",
- "name": "info",
- "size": 16,
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ ]
+ }
+ >
+
+
+
+
+
`;
-exports[`AnnouncementBanner should match snapshot 2`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): null,
- Symbol(enzyme.__nodes__): Array [
- null,
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
-`;
+exports[`AnnouncementBanner should match snapshot 2`] = `null`;
diff --git a/app/components/announcement_banner/announcement_banner.test.js b/app/components/announcement_banner/announcement_banner.test.js
index 92d59ac51..f0d4d1f43 100644
--- a/app/components/announcement_banner/announcement_banner.test.js
+++ b/app/components/announcement_banner/announcement_banner.test.js
@@ -24,9 +24,9 @@ describe('AnnouncementBanner', () => {
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
wrapper.setProps({bannerEnabled: false});
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/components/custom_list/__snapshots__/index.test.js.snap b/app/components/custom_list/__snapshots__/index.test.js.snap
index f6651b0a6..dbdad1d3a 100644
--- a/app/components/custom_list/__snapshots__/index.test.js.snap
+++ b/app/components/custom_list/__snapshots__/index.test.js.snap
@@ -1,216 +1,38 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CustomList should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
- ],
- "style": Object {
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "dataSource": ListViewDataSource {
- "items": 2,
- },
- "enableEmptySections": true,
- "initialListSize": 0,
- "onEndReached": [Function],
- "onEndReachedThreshold": 0,
- "pageSize": 0,
- "renderFooter": [Function],
- "renderRow": [Function],
- "renderScrollComponent": [Function],
- "renderSectionHeader": [Function],
- "renderSeparator": [Function],
- "scrollRenderAheadDistance": 0,
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+,
- undefined,
- ],
- "style": Object {
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "dataSource": ListViewDataSource {
- "items": 2,
- },
- "enableEmptySections": true,
- "initialListSize": 0,
- "onEndReached": [Function],
- "onEndReachedThreshold": 0,
- "pageSize": 0,
- "renderFooter": [Function],
- "renderRow": [Function],
- "renderScrollComponent": [Function],
- "renderSectionHeader": [Function],
- "renderSeparator": [Function],
- "scrollRenderAheadDistance": 0,
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ "flex": 1,
+ }
+ }
+>
+
+
`;
exports[`CustomList should match snapshot, renderFooter 1`] = `null`;
diff --git a/app/components/custom_list/index.test.js b/app/components/custom_list/index.test.js
index 47323c349..a4d50fb44 100644
--- a/app/components/custom_list/index.test.js
+++ b/app/components/custom_list/index.test.js
@@ -35,7 +35,7 @@ describe('CustomList', () => {
const wrapper = shallow(
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
expect(wrapper.state('data')).toEqual({U: baseProps.data});
// on componentWillReceiveProps
diff --git a/app/components/custom_list/user_list_row/__snapshots__/user_list_test.test.js.snap b/app/components/custom_list/user_list_row/__snapshots__/user_list_test.test.js.snap
index 005d8bc80..c5095aacf 100644
--- a/app/components/custom_list/user_list_row/__snapshots__/user_list_test.test.js.snap
+++ b/app/components/custom_list/user_list_row/__snapshots__/user_list_test.test.js.snap
@@ -1,1306 +1,147 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`UserListRow should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
+
+
-
-
- user
-
-
-
-
- (@user)
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- (@user)
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
+ }
+ >
+ user
+
+
+
+
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
- (@user)
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "(@user)",
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": "(@user)",
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
- user
-
-
-
-
- (@user)
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- (@user)
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
- (@user)
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "(@user)",
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": "(@user)",
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction],
- },
- },
- "hydrateIn": undefined,
- },
-}
+ }
+ }
+ >
+ (@user)
+
+
+
+
`;
exports[`UserListRow should match snapshot for currentUser with (you) populated in list 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
+
+
-
-
- user
-
-
-
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
+ }
+ >
+ user
+
+
+
+
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
- user
-
-
-
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
- Array [
- Object {
- "defaultMessage": "(@{username} - you)",
- "id": "mobile.more_dms.you",
- },
- Object {
- "username": "user",
- },
- ],
- ],
- "results": Array [
- Object {
- "isThrow": false,
- "value": undefined,
- },
- ],
- },
- },
- },
- "hydrateIn": undefined,
- },
-}
+ }
+ }
+ />
+
+
+
`;
exports[`UserListRow should match snapshot for deactivated user 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
+
+
-
-
- user
-
-
-
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
+ }
+ >
+ user
+
+
+
+
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
- user
-
-
-
-
-
- ,
- ],
- "enabled": true,
- "id": "21345",
- "onPress": [Function],
- "selectable": undefined,
- "selected": undefined,
- "theme": Object {},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 32,
- "userId": "21345",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- user
-
- ,
-
-
- ,
- ],
- "style": Object {
- "flexDirection": "row",
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
- user
- ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "user",
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "user",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Object {
- "color": undefined,
- "fontSize": 15,
- "marginLeft": 5,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
- Array [
- Object {
- "defaultMessage": "{displayname} - Deactivated",
- "id": "more_direct_channels.directchannel.deactivated",
- },
- Object {
- "displayname": "(@user)",
- },
- ],
- ],
- "results": Array [
- Object {
- "isThrow": false,
- "value": undefined,
- },
- ],
- },
- },
- },
- "hydrateIn": undefined,
- },
-}
+ }
+ }
+ />
+
+
+
`;
diff --git a/app/components/custom_list/user_list_row/user_list_test.test.js b/app/components/custom_list/user_list_row/user_list_test.test.js
index a7e743d8a..5d37c8e0a 100644
--- a/app/components/custom_list/user_list_row/user_list_test.test.js
+++ b/app/components/custom_list/user_list_row/user_list_test.test.js
@@ -36,7 +36,7 @@ describe('UserListRow', () => {
,
{context: {intl: {formatMessage}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should match snapshot for deactivated user', () => {
@@ -55,7 +55,7 @@ describe('UserListRow', () => {
,
{context: {intl: {formatMessage}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should match snapshot for currentUser with (you) populated in list', () => {
@@ -68,6 +68,6 @@ describe('UserListRow', () => {
,
{context: {intl: {formatMessage}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/components/markdown/__snapshots__/hashtag.test.js.snap b/app/components/markdown/__snapshots__/hashtag.test.js.snap
index 6d2a4fd9a..ff9e728c3 100644
--- a/app/components/markdown/__snapshots__/hashtag.test.js.snap
+++ b/app/components/markdown/__snapshots__/hashtag.test.js.snap
@@ -1,76 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Hashtag should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "#test",
- "onPress": [Function],
- "style": Object {
- "color": "red",
- },
- },
- "ref": null,
- "rendered": "#test",
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+
+ #test
+
`;
diff --git a/app/components/markdown/hashtag.test.js b/app/components/markdown/hashtag.test.js
index 4d3128891..9caae2c39 100644
--- a/app/components/markdown/hashtag.test.js
+++ b/app/components/markdown/hashtag.test.js
@@ -18,7 +18,7 @@ describe('Hashtag', () => {
test('should match snapshot', () => {
const wrapper = shallow();
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should open hashtag search on click', () => {
diff --git a/app/components/post_list/date_header/__snapshots__/date_header.test.js.snap b/app/components/post_list/date_header/__snapshots__/date_header.test.js.snap
index d2d553e65..5915caa45 100644
--- a/app/components/post_list/date_header/__snapshots__/date_header.test.js.snap
+++ b/app/components/post_list/date_header/__snapshots__/date_header.test.js.snap
@@ -1,669 +1,119 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DateHeader component should match snapshot with suffix 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
- ,
- ,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flexDirection": "row",
- "height": 28,
- "marginTop": 8,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
+ />
+
+
+
+ ,
- "style": Object {
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "day": "2-digit",
- "month": "short",
- "style": Object {
- "color": "#aaa",
- "fontSize": 14,
- "fontWeight": "600",
- },
- "value": 1970-01-18T17:19:12.392Z,
- "weekday": "short",
- "year": "numeric",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
- ,
- ,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flexDirection": "row",
- "height": 28,
- "marginTop": 8,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "style": Object {
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "day": "2-digit",
- "month": "short",
- "style": Object {
- "color": "#aaa",
- "fontSize": 14,
- "fontWeight": "600",
- },
- "value": 1970-01-18T17:19:12.392Z,
- "weekday": "short",
- "year": "numeric",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction],
- },
- },
- "hydrateIn": undefined,
- },
-}
+ "backgroundColor": "#aaa",
+ "flex": 1,
+ "height": 1,
+ "opacity": 0.2,
+ }
+ }
+ />
+
`;
exports[`DateHeader component should match snapshot without suffix 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
- ,
- ,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flexDirection": "row",
- "height": 28,
- "marginTop": 8,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
+ />
+
+
+
+ ,
- "style": Object {
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "day": "2-digit",
- "month": "short",
- "style": Object {
- "color": "#aaa",
- "fontSize": 14,
- "fontWeight": "600",
- },
- "value": 1970-01-18T17:19:12.392Z,
- "weekday": "short",
- "year": "numeric",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
- ,
- ,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flexDirection": "row",
- "height": 28,
- "marginTop": 8,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "style": Object {
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "day": "2-digit",
- "month": "short",
- "style": Object {
- "color": "#aaa",
- "fontSize": 14,
- "fontWeight": "600",
- },
- "value": 1970-01-18T17:19:12.392Z,
- "weekday": "short",
- "year": "numeric",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- "height": 1,
- "opacity": 0.2,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction],
- },
- },
- "hydrateIn": undefined,
- },
-}
+ "backgroundColor": "#aaa",
+ "flex": 1,
+ "height": 1,
+ "opacity": 0.2,
+ }
+ }
+ />
+
`;
diff --git a/app/components/post_list/date_header/date_header.test.js b/app/components/post_list/date_header/date_header.test.js
index 651c46dfd..cf493d1bc 100644
--- a/app/components/post_list/date_header/date_header.test.js
+++ b/app/components/post_list/date_header/date_header.test.js
@@ -25,7 +25,7 @@ describe('DateHeader', () => {
{context: {intl: {formatMessage: jest.fn()}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
it('with suffix', () => {
@@ -39,7 +39,7 @@ describe('DateHeader', () => {
{context: {intl: {formatMessage: jest.fn()}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
});
diff --git a/app/components/show_more_button/__snapshots__/show_more_button.test.js.snap b/app/components/show_more_button/__snapshots__/show_more_button.test.js.snap
index ddf36d904..233a6c5f0 100644
--- a/app/components/show_more_button/__snapshots__/show_more_button.test.js.snap
+++ b/app/components/show_more_button/__snapshots__/show_more_button.test.js.snap
@@ -35,879 +35,125 @@ exports[`ShowMoreButton should match, button snapshot 2`] = `
`;
exports[`ShowMoreButton should match, full snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
- +
-
-
-
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
+ locations={
+ Array [
+ 0,
+ 0.7,
+ 1,
+ ]
+ }
+ start={
Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "colors": Array [
- "rgba(47,62,78,0)",
- "rgba(47,62,78,0.75)",
- "#2f3e4e",
- ],
- "end": Object {
- "x": 0.5,
- "y": 1,
- },
- "locations": Array [
- 0,
- 0.7,
- 1,
- ],
- "start": Object {
- "x": 0.5,
- "y": 0,
- },
- "style": Object {
- "flex": 1,
- "height": 50,
- "position": "absolute",
- "top": -50,
- "width": "100%",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
+ "x": 0.5,
+ "y": 0,
+ }
+ }
+ style={
Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
- +
-
-
-
- ,
- ,
- ],
- "style": Object {
+ "flex": 1,
+ "height": 50,
+ "position": "absolute",
+ "top": -50,
+ "width": "100%",
+ }
+ }
+ />
+
+
+
+
-
- +
-
-
- ,
- "onPress": [MockFunction],
- "style": Object {
- "backgroundColor": "#2f3e4e",
- "borderColor": "rgba(221,221,221,0.2)",
- "borderRadius": 4,
- "borderWidth": 1,
- "height": 37,
- "paddingHorizontal": 10,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
- +
- ,
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "+",
- "style": Object {
- "color": undefined,
- "fontSize": 16,
- "fontWeight": "600",
- "marginRight": 8,
- },
- },
- "ref": null,
- "rendered": "+",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Show More",
- "id": "post_info.message.show_more",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- "fontWeight": "600",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "rgba(221,221,221,0.2)",
- "flex": 1,
- "height": 1,
- "marginLeft": 10,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
+
+ +
+
+ ,
-
-
-
-
-
- +
-
-
-
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
+ }
+ />
+
+
+ ,
-
-
-
- +
-
-
-
- ,
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- "justifyContent": "center",
- "marginBottom": 10,
- "position": "relative",
- "top": 10,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "rgba(221,221,221,0.2)",
- "flex": 1,
- "height": 1,
- "marginRight": 10,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children":
-
- +
-
-
- ,
- "onPress": [MockFunction],
- "style": Object {
- "backgroundColor": "#2f3e4e",
- "borderColor": "rgba(221,221,221,0.2)",
- "borderRadius": 4,
- "borderWidth": 1,
- "height": 37,
- "paddingHorizontal": 10,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
- +
- ,
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "+",
- "style": Object {
- "color": undefined,
- "fontSize": 16,
- "fontWeight": "600",
- "marginRight": 8,
- },
- },
- "ref": null,
- "rendered": "+",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Show More",
- "id": "post_info.message.show_more",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- "fontWeight": "600",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": "rgba(221,221,221,0.2)",
- "flex": 1,
- "height": 1,
- "marginLeft": 10,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ "backgroundColor": "rgba(221,221,221,0.2)",
+ "flex": 1,
+ "height": 1,
+ "marginLeft": 10,
+ }
+ }
+ />
+
+
`;
diff --git a/app/components/show_more_button/show_more_button.test.js b/app/components/show_more_button/show_more_button.test.js
index 6417c58d0..31976383f 100644
--- a/app/components/show_more_button/show_more_button.test.js
+++ b/app/components/show_more_button/show_more_button.test.js
@@ -25,7 +25,7 @@ describe('ShowMoreButton', () => {
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should match, button snapshot', () => {
diff --git a/app/components/sidebars/main/channels_list/channel_item/__snapshots__/channel_item.test.js.snap b/app/components/sidebars/main/channels_list/channel_item/__snapshots__/channel_item.test.js.snap
index 1865b1137..3e7845a3a 100644
--- a/app/components/sidebars/main/channels_list/channel_item/__snapshots__/channel_item.test.js.snap
+++ b/app/components/sidebars/main/channels_list/channel_item/__snapshots__/channel_item.test.js.snap
@@ -1,818 +1,82 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ChannelItem should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
-
-
- ,
- },
- "ref": [Function],
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.85,
- "children":
-
-
-
-
- ,
- "delayPressOut": 100,
- "onLongPress": [Function],
- "onPress": [Function],
- "underlayColor": "rgba(170,170,170,0.5)",
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- undefined,
-
-
-
- ,
- ],
- "style": Array [
+ >
+ ,
- ,
- undefined,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- "paddingLeft": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "channelId": "channel_id",
- "isActive": false,
- "isArchived": false,
- "isInfo": false,
- "isUnread": true,
- "membersCount": 1,
- "size": 16,
- "status": "online",
- "teammateDeletedAt": 0,
- "theme": Object {
- "sidebarText": "#aaa",
- "sidebarTextActiveBorder": "#aaa",
- "sidebarTextActiveColor": "#aaa",
- "sidebarTextHoverBg": "#aaa",
- },
- "type": "O",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Array [
- Object {
- "color": "rgba(170,170,170,0.4)",
- "flex": 1,
- "fontSize": 14,
- "fontWeight": "600",
- "height": "100%",
- "lineHeight": 44,
- "paddingRight": 40,
- "textAlignVertical": "center",
- },
- Object {
- "color": undefined,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
-
-
- ,
- },
- "ref": [Function],
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.85,
- "children":
-
-
-
-
- ,
- "delayPressOut": 100,
- "onLongPress": [Function],
- "onPress": [Function],
- "underlayColor": "rgba(170,170,170,0.5)",
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- undefined,
-
-
-
- ,
- ],
- "style": Array [
- Object {
- "flex": 1,
- "flexDirection": "row",
- "height": 44,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
- undefined,
+ ]
+ }
+ >
+ ,
- ,
- undefined,
- ],
- "style": Array [
- Object {
- "alignItems": "center",
- "flex": 1,
- "flexDirection": "row",
- "paddingLeft": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "channelId": "channel_id",
- "isActive": false,
- "isArchived": false,
- "isInfo": false,
- "isUnread": true,
- "membersCount": 1,
- "size": 16,
- "status": "online",
- "teammateDeletedAt": 0,
- "theme": Object {
- "sidebarText": "#aaa",
- "sidebarTextActiveBorder": "#aaa",
- "sidebarTextActiveColor": "#aaa",
- "sidebarTextHoverBg": "#aaa",
- },
- "type": "O",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": undefined,
- "ellipsizeMode": "tail",
- "numberOfLines": 1,
- "style": Array [
- Object {
- "color": "rgba(170,170,170,0.4)",
- "flex": 1,
- "fontSize": 14,
- "fontWeight": "600",
- "height": "100%",
- "lineHeight": 44,
- "paddingRight": 40,
- "textAlignVertical": "center",
- },
- Object {
- "color": undefined,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
+ "sidebarText": "#aaa",
+ "sidebarTextActiveBorder": "#aaa",
+ "sidebarTextActiveColor": "#aaa",
+ "sidebarTextHoverBg": "#aaa",
+ }
+ }
+ type="O"
+ />
+
+
+
+
+
`;
diff --git a/app/components/sidebars/main/channels_list/channel_item/channel_item.test.js b/app/components/sidebars/main/channels_list/channel_item/channel_item.test.js
index b14f68398..d348001b4 100644
--- a/app/components/sidebars/main/channels_list/channel_item/channel_item.test.js
+++ b/app/components/sidebars/main/channels_list/channel_item/channel_item.test.js
@@ -41,6 +41,6 @@ describe('ChannelItem', () => {
{context: {intl: {formatMessage: jest.fn()}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/screens/error_teams_list/__snapshots__/error_teams_list.test.js.snap b/app/screens/error_teams_list/__snapshots__/error_teams_list.test.js.snap
index 08ce8c76b..41f9bd477 100644
--- a/app/screens/error_teams_list/__snapshots__/error_teams_list.test.js.snap
+++ b/app/screens/error_teams_list/__snapshots__/error_teams_list.test.js.snap
@@ -1,178 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ErrorTeamsList should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- ,
- ],
- "style": Object {
- "backgroundColor": undefined,
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "errorDescription": Object {
- "defaultMessage": "Make sure you have an active connection and try again.",
- "id": "mobile.failed_network_action.shortDescription",
- },
- "errorTitle": Object {
- "defaultMessage": "Team Not Found",
- "id": "error.team_not_found.title",
- },
- "onRetry": [Function],
- "theme": Object {},
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+,
- ,
- ],
- "style": Object {
- "backgroundColor": undefined,
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "errorDescription": Object {
- "defaultMessage": "Make sure you have an active connection and try again.",
- "id": "mobile.failed_network_action.shortDescription",
- },
- "errorTitle": Object {
- "defaultMessage": "Team Not Found",
- "id": "error.team_not_found.title",
- },
- "onRetry": [Function],
- "theme": Object {},
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ "backgroundColor": undefined,
+ "flex": 1,
+ }
+ }
+>
+
+
+
`;
diff --git a/app/screens/error_teams_list/error_teams_list.test.js b/app/screens/error_teams_list/error_teams_list.test.js
index 11a2bfc49..532c69fef 100644
--- a/app/screens/error_teams_list/error_teams_list.test.js
+++ b/app/screens/error_teams_list/error_teams_list.test.js
@@ -35,7 +35,7 @@ describe('ErrorTeamsList', () => {
const wrapper = shallow(
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should call for userInfo on retry', async () => {
diff --git a/app/screens/forgot_password/__snapshots__/forgot_password.test.js.snap b/app/screens/forgot_password/__snapshots__/forgot_password.test.js.snap
index 07a728ebb..c8fbfab75 100644
--- a/app/screens/forgot_password/__snapshots__/forgot_password.test.js.snap
+++ b/app/screens/forgot_password/__snapshots__/forgot_password.test.js.snap
@@ -1,3101 +1,303 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ForgotPassword match snapshot after success of sendPasswordResetEmail 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
-
- test@test.com
-
-
-
-
- ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
- test@test.com
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
- test@test.com
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
- test@test.com
- ,
- ,
- ],
- "style": Object {
- "backgroundColor": "#dff0d8",
- "borderColor": "#d6e9c6",
- "marginTop": 15,
- "padding": 10,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "If the account exists, a password reset email will be sent to:",
- "id": "password_send.link",
- "style": Object {
- "color": "#3c763d",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "test@test.com",
- "style": Array [
- Object {
- "color": "#3c763d",
- },
- Object {
- "fontWeight": "bold",
- },
- ],
- },
- "ref": null,
- "rendered": "test@test.com",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Please check your inbox.",
- "id": "password_send.checkInbox",
- "style": Array [
- Object {
- "color": "#3c763d",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+,
-
-
-
-
-
-
- test@test.com
-
-
-
-
- ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
+ "backgroundColor": "#FFFFFF",
+ "flex": 1,
+ }
+ }
+>
+
+
+
-
-
-
-
- test@test.com
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
- test@test.com
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
- test@test.com
- ,
- ,
- ],
- "style": Object {
- "backgroundColor": "#dff0d8",
- "borderColor": "#d6e9c6",
- "marginTop": 15,
- "padding": 10,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "If the account exists, a password reset email will be sent to:",
- "id": "password_send.link",
- "style": Object {
- "color": "#3c763d",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "test@test.com",
- "style": Array [
- Object {
- "color": "#3c763d",
- },
- Object {
- "fontWeight": "bold",
- },
- ],
- },
- "ref": null,
- "rendered": "test@test.com",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Please check your inbox.",
- "id": "password_send.checkInbox",
- "style": Array [
- Object {
- "color": "#3c763d",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
+ "alignItems": "center",
+ "flexDirection": "column",
+ "justifyContent": "center",
+ "paddingHorizontal": 15,
+ "paddingVertical": 50,
+ }
+ }
+ >
+
+
+
+
+ test@test.com
+
+
+
+
+
+
`;
exports[`ForgotPassword should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
-
-
-
-
- ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- ,
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "To reset your password, enter the email address you used to sign up",
- "id": "password_send.description",
- "style": Array [
- Object {
- "color": "#777",
- "fontSize": 16,
- "fontWeight": "300",
- "lineHeight": 22,
- "marginBottom": 15,
- "textAlign": "center",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": true,
- "autoCapitalize": "none",
- "autoCorrect": false,
- "blurOnSubmit": false,
- "disableFullscreenUI": true,
- "keyboardType": "email-address",
- "onChangeText": [Function],
- "placeholder": undefined,
- "style": Object {
- "alignSelf": "stretch",
- "borderColor": "gainsboro",
- "borderRadius": 3,
- "borderWidth": 1,
- "fontSize": 16,
- "height": 45,
- "marginBottom": 5,
- "marginTop": 5,
- "paddingLeft": 10,
- },
- "underlineColorAndroid": "transparent",
- },
- "ref": [Function],
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "containerStyle": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "borderColor": "#2389D7",
- "borderRadius": 3,
- "borderWidth": 1,
- "marginTop": 10,
- "padding": 15,
- },
- "disabled": true,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Reset my password",
- "id": "password_send.reset",
- "style": Array [
- Object {
- "color": "#2389D7",
- "fontSize": 17,
- "textAlign": "center",
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+,
-
-
-
-
-
-
-
-
-
- ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
+ "backgroundColor": "#FFFFFF",
+ "flex": 1,
+ }
+ }
+>
+
+
+
-
-
-
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- ,
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "To reset your password, enter the email address you used to sign up",
- "id": "password_send.description",
- "style": Array [
- Object {
- "color": "#777",
- "fontSize": 16,
- "fontWeight": "300",
- "lineHeight": 22,
- "marginBottom": 15,
- "textAlign": "center",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": true,
- "autoCapitalize": "none",
- "autoCorrect": false,
- "blurOnSubmit": false,
- "disableFullscreenUI": true,
- "keyboardType": "email-address",
- "onChangeText": [Function],
- "placeholder": undefined,
- "style": Object {
- "alignSelf": "stretch",
- "borderColor": "gainsboro",
- "borderRadius": 3,
- "borderWidth": 1,
- "fontSize": 16,
- "height": 45,
- "marginBottom": 5,
- "marginTop": 5,
- "paddingLeft": 10,
- },
- "underlineColorAndroid": "transparent",
- },
- "ref": [Function],
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "containerStyle": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "borderColor": "#2389D7",
- "borderRadius": 3,
- "borderWidth": 1,
- "marginTop": 10,
- "padding": 15,
- },
- "disabled": true,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Reset my password",
- "id": "password_send.reset",
- "style": Array [
- Object {
- "color": "#2389D7",
- "fontSize": 17,
- "textAlign": "center",
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
+ "alignItems": "center",
+ "flexDirection": "column",
+ "justifyContent": "center",
+ "paddingHorizontal": 15,
+ "paddingVertical": 50,
+ }
+ }
+ >
+
+
+
+
+
+
+
+
+
`;
exports[`ForgotPassword snapshot for error on failure of email regex 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
+
+
+
+
+
+
+
+ ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
-
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
-
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- ,
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "To reset your password, enter the email address you used to sign up",
- "id": "password_send.description",
- "style": Array [
- Object {
- "color": "#777",
- "fontSize": 16,
- "fontWeight": "300",
- "lineHeight": 22,
- "marginBottom": 15,
- "textAlign": "center",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": true,
- "autoCapitalize": "none",
- "autoCorrect": false,
- "blurOnSubmit": false,
- "disableFullscreenUI": true,
- "keyboardType": "email-address",
- "onChangeText": [Function],
- "placeholder": undefined,
- "style": Object {
- "alignSelf": "stretch",
- "borderColor": "gainsboro",
- "borderRadius": 3,
- "borderWidth": 1,
- "fontSize": 16,
- "height": 45,
- "marginBottom": 5,
- "marginTop": 5,
- "paddingLeft": 10,
- },
- "underlineColorAndroid": "transparent",
- },
- "ref": [Function],
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "containerStyle": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "borderColor": "#2389D7",
- "borderRadius": 3,
- "borderWidth": 1,
- "marginTop": 10,
- "padding": 15,
- },
- "disabled": false,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Reset my password",
- "id": "password_send.reset",
- "style": Array [
- Object {
- "color": "#2389D7",
- "fontSize": 17,
- "textAlign": "center",
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
-
-
-
-
-
-
- ,
- ],
- "style": Object {
- "backgroundColor": "#FFFFFF",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
-
-
-
-
-
-
-
- ,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- undefined,
-
-
-
-
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "column",
- "justifyContent": "center",
- "paddingHorizontal": 15,
- "paddingVertical": 50,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "source": Object {
- "testUri": "../../../dist/assets/images/logo.png",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- undefined,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- ,
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "To reset your password, enter the email address you used to sign up",
- "id": "password_send.description",
- "style": Array [
- Object {
- "color": "#777",
- "fontSize": 16,
- "fontWeight": "300",
- "lineHeight": 22,
- "marginBottom": 15,
- "textAlign": "center",
- },
- Object {
- "paddingTop": 15,
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": true,
- "autoCapitalize": "none",
- "autoCorrect": false,
- "blurOnSubmit": false,
- "disableFullscreenUI": true,
- "keyboardType": "email-address",
- "onChangeText": [Function],
- "placeholder": undefined,
- "style": Object {
- "alignSelf": "stretch",
- "borderColor": "gainsboro",
- "borderRadius": 3,
- "borderWidth": 1,
- "fontSize": 16,
- "height": 45,
- "marginBottom": 5,
- "marginTop": 5,
- "paddingLeft": 10,
- },
- "underlineColorAndroid": "transparent",
- },
- "ref": [Function],
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "containerStyle": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "borderColor": "#2389D7",
- "borderRadius": 3,
- "borderWidth": 1,
- "marginTop": 10,
- "padding": 15,
- },
- "disabled": false,
- "onPress": [Function],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Reset my password",
- "id": "password_send.reset",
- "style": Array [
- Object {
- "color": "#2389D7",
- "fontSize": 17,
- "textAlign": "center",
- },
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
- Array [
- Object {
- "defaultMessage": "Email",
- "id": "login.email",
- },
- ],
- Array [
- Object {
- "defaultMessage": "Email",
- "id": "login.email",
- },
- ],
- Array [
- Object {
- "defaultMessage": "Please enter a valid email address.",
- "id": "password_send.error",
- },
- ],
- Array [
- Object {
- "defaultMessage": "Email",
- "id": "login.email",
- },
- ],
- ],
- "results": Array [
- Object {
- "isThrow": false,
- "value": undefined,
- },
- Object {
- "isThrow": false,
- "value": undefined,
- },
- Object {
- "isThrow": false,
- "value": undefined,
- },
- Object {
- "isThrow": false,
- "value": undefined,
- },
- ],
- },
- },
- },
- "hydrateIn": undefined,
- },
-}
+ />
+
+
+
+
+
`;
diff --git a/app/screens/forgot_password/forgot_password.test.js b/app/screens/forgot_password/forgot_password.test.js
index 65b9316e5..5912d4114 100644
--- a/app/screens/forgot_password/forgot_password.test.js
+++ b/app/screens/forgot_password/forgot_password.test.js
@@ -25,7 +25,7 @@ describe('ForgotPassword', () => {
{context: {intl: {formatMessage}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('snapshot for error on failure of email regex', () => {
@@ -37,7 +37,7 @@ describe('ForgotPassword', () => {
wrapper.setState({email: 'bar'});
wrapper.instance().submitResetPassword();
wrapper.update();
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('Should call sendPasswordResetEmail', () => {
@@ -71,6 +71,6 @@ describe('ForgotPassword', () => {
wrapper.setState({email: 'test@test.com'});
wrapper.instance().submitResetPassword();
await sendPasswordResetEmail();
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/screens/more_channels/__snapshots__/more_channels.test.js.snap b/app/screens/more_channels/__snapshots__/more_channels.test.js.snap
index e97ea66fa..db4514bbd 100644
--- a/app/screens/more_channels/__snapshots__/more_channels.test.js.snap
+++ b/app/screens/more_channels/__snapshots__/more_channels.test.js.snap
@@ -1,690 +1,79 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`MoreChannels should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "function",
- "props": Object {
- "children": Array [
-
-
- ,
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
+ >
+ ,
- "style": Object {
- "marginVertical": 5,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "autoCapitalize": "none",
- "backgroundColor": "transparent",
- "blurOnSubmit": true,
- "cancelTitle": undefined,
- "inputHeight": 33,
- "inputStyle": Object {
- "backgroundColor": "rgba(170,170,170,0.2)",
- "color": "#aaa",
- "fontSize": 15,
- },
- "onBlur": [Function],
- "onCancelButtonPress": [Function],
- "onChangeText": [Function],
- "onFocus": [Function],
- "onSearchButtonPress": [Function],
- "onSelectionChange": [Function],
- "placeholder": undefined,
- "placeholderTextColor": "rgba(170,170,170,0.5)",
- "tintColorDelete": "rgba(170,170,170,0.5)",
- "tintColorSearch": "rgba(170,170,170,0.5)",
- "titleCancelColor": "#aaa",
- "value": "",
- },
- "ref": "search_bar",
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
+ "backgroundColor": "rgba(170,170,170,0.2)",
+ "color": "#aaa",
+ "fontSize": 15,
+ }
+ }
+ onBlur={[Function]}
+ onCancelButtonPress={[Function]}
+ onChangeText={[Function]}
+ onFocus={[Function]}
+ onSearchButtonPress={[Function]}
+ onSelectionChange={[Function]}
+ placeholderTextColor="rgba(170,170,170,0.5)"
+ tintColorDelete="rgba(170,170,170,0.5)"
+ tintColorSearch="rgba(170,170,170,0.5)"
+ titleCancelColor="#aaa"
+ value=""
+ />
+
+ ,
-
-
-
-
-
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
+ ]
+ }
+ listInitialSize={10}
+ listPageSize={10}
+ listScrollRenderAheadDistance={50}
+ loading={false}
+ loadingText={
Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
+ "defaultMessage": "Loading Channels...",
+ "id": "mobile.loading_channels",
+ }
+ }
+ onListEndReached={[Function]}
+ onListEndReachedThreshold={50}
+ onRowPress={[Function]}
+ renderRow={[Function]}
+ searching={false}
+ selectable={false}
+ showNoResults={false}
+ showSections={false}
+ theme={
Object {
- "instance": null,
- "key": undefined,
- "nodeType": "function",
- "props": Object {
- "children": Array [
-
-
- ,
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "style": Object {
- "marginVertical": 5,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "autoCapitalize": "none",
- "backgroundColor": "transparent",
- "blurOnSubmit": true,
- "cancelTitle": undefined,
- "inputHeight": 33,
- "inputStyle": Object {
- "backgroundColor": "rgba(170,170,170,0.2)",
- "color": "#aaa",
- "fontSize": 15,
- },
- "onBlur": [Function],
- "onCancelButtonPress": [Function],
- "onChangeText": [Function],
- "onFocus": [Function],
- "onSearchButtonPress": [Function],
- "onSelectionChange": [Function],
- "placeholder": undefined,
- "placeholderTextColor": "rgba(170,170,170,0.5)",
- "tintColorDelete": "rgba(170,170,170,0.5)",
- "tintColorSearch": "rgba(170,170,170,0.5)",
- "titleCancelColor": "#aaa",
- "value": "",
- },
- "ref": "search_bar",
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "createSections": [Function],
- "data": Array [
- Object {
- "display_name": "display_name",
- "id": "id",
- "name": "name",
- },
- ],
- "listInitialSize": 10,
- "listPageSize": 10,
- "listScrollRenderAheadDistance": 50,
- "loading": false,
- "loadingText": Object {
- "defaultMessage": "Loading Channels...",
- "id": "mobile.loading_channels",
- },
- "onListEndReached": [Function],
- "onListEndReachedThreshold": 50,
- "onRowPress": [Function],
- "renderRow": [Function],
- "searching": false,
- "selectable": false,
- "showNoResults": false,
- "showSections": false,
- "theme": Object {
- "centerChannelBg": "#aaa",
- "centerChannelColor": "#aaa",
- "sidebarHeaderBg": "#aaa",
- "sidebarHeaderTextColor": "#aaa",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": Symbol(react.fragment),
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction] {
- "calls": Array [
- Array [
- Object {
- "defaultMessage": "Create",
- "id": "mobile.create_channel",
- },
- ],
- Array [
- Object {
- "defaultMessage": "Search",
- "id": "search_bar.search",
- },
- ],
- Array [
- Object {
- "defaultMessage": "Cancel",
- "id": "mobile.post.cancel",
- },
- ],
- ],
- "results": Array [
- Object {
- "isThrow": false,
- "value": undefined,
- },
- Object {
- "isThrow": false,
- "value": undefined,
- },
- Object {
- "isThrow": false,
- "value": undefined,
- },
- ],
- },
- },
- },
- "hydrateIn": undefined,
- },
-}
+ "centerChannelBg": "#aaa",
+ "centerChannelColor": "#aaa",
+ "sidebarHeaderBg": "#aaa",
+ "sidebarHeaderTextColor": "#aaa",
+ }
+ }
+ />
+
+
`;
diff --git a/app/screens/more_channels/more_channels.test.js b/app/screens/more_channels/more_channels.test.js
index 35a2af6b9..7e89ef4de 100644
--- a/app/screens/more_channels/more_channels.test.js
+++ b/app/screens/more_channels/more_channels.test.js
@@ -48,7 +48,7 @@ describe('MoreChannels', () => {
{context: {intl: {formatMessage: jest.fn()}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should call props.navigator.dismissModal on close', () => {
diff --git a/app/screens/options_modal/__snapshots__/option_modal_list.test.js.snap b/app/screens/options_modal/__snapshots__/option_modal_list.test.js.snap
index b5f216b60..0eab84025 100644
--- a/app/screens/options_modal/__snapshots__/option_modal_list.test.js.snap
+++ b/app/screens/options_modal/__snapshots__/option_modal_list.test.js.snap
@@ -1,2779 +1,327 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`OptionModalList should match snapshot for Android 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "justifyContent": "center",
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
-
-
-
- ,
-
-
-
-
-
- ,
-
-
- ,
- ],
- "style": Object {
- "alignSelf": "stretch",
- "backgroundColor": "white",
- "borderRadius": 2,
- "marginHorizontal": 30,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": "0",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
},
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Take Photo or Video",
- "id": "mobile.file_upload.camera",
- "style": Array [
- Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "camera",
- "size": 18,
- "style": Object {
- "color": "#7f8180",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "1",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Photo Library",
- "id": "mobile.file_upload.library",
- "style": Array [
- Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "photo",
- "size": 18,
- "style": Object {
- "color": "#7f8180",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "2",
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": ,
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Cancel",
- "id": "channel_modal.cancel",
- "style": Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "justifyContent": "center",
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
-
-
-
- ,
-
-
-
-
-
- ,
-
-
- ,
- ],
- "style": Object {
+ />
+
+
+
+
+
+
+
+
+
+
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Take Photo or Video",
- "id": "mobile.file_upload.camera",
- "style": Array [
- Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "camera",
- "size": 18,
- "style": Object {
- "color": "#7f8180",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "1",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Photo Library",
- "id": "mobile.file_upload.library",
- "style": Array [
- Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- undefined,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "photo",
- "size": 18,
- "style": Object {
- "color": "#7f8180",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "2",
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": ,
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Cancel",
- "id": "channel_modal.cancel",
- "style": Object {
- "color": "#000",
- "flex": 1,
- "fontSize": 16,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ "color": "#000",
+ "flex": 1,
+ "fontSize": 16,
+ }
+ }
+ />
+
+
+
`;
exports[`OptionModalList should match snapshot for iOS 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
-
- test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
-
-
-
-
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flex": 1,
- "justifyContent": "flex-end",
- },
- },
- "ref": null,
- "rendered": Array [
+ }
+>
+
-
- test
-
- ,
-
-
-
-
-
- ,
-
-
-
-
-
- ,
- ],
- "style": Object {
+ "alignSelf": "stretch",
+ "backgroundColor": "white",
+ "borderRadius": 12,
+ "marginBottom": 20,
+ "marginHorizontal": 20,
+ }
+ }
+ >
+
- test
- ,
- "style": Array [
- Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- ],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "test",
- "style": Object {
- "color": "#7f8180",
- "flex": 1,
- "textAlign": "center",
- },
- },
- "ref": null,
- "rendered": "test",
- "type": [Function],
- },
- "type": [Function],
+ "flexDirection": "row",
+ "justifyContent": "space-between",
+ "padding": 15,
},
Object {
- "instance": null,
- "key": "0",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Take Photo or Video",
- "id": "mobile.file_upload.camera",
- "style": Array [
- Object {
- "color": "#4E8ACC",
- "flex": 1,
- "fontSize": 20,
- },
- undefined,
- false,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "camera",
- "size": 18,
- "style": Object {
- "color": "#4E8ACC",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
+ "borderBottomColor": "rgba(0, 0, 0, 0.1)",
+ "borderBottomWidth": 1,
},
+ ]
+ }
+ >
+
-
-
- ,
- "style": false,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Photo Library",
- "id": "mobile.file_upload.library",
- "style": Array [
- Object {
- "color": "#4E8ACC",
- "flex": 1,
- "fontSize": 20,
- },
- undefined,
- false,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "photo",
- "size": 18,
- "style": Object {
- "color": "#4E8ACC",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
+ test
+
+
+
+
+
-
- ,
- "style": Object {
- "alignSelf": "stretch",
- "backgroundColor": "white",
- "borderRadius": 12,
- "marginBottom": 20,
- "marginHorizontal": 20,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": ,
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Cancel",
- "id": "channel_modal.cancel",
- "style": Object {
- "color": "#CC3239",
+ "color": "#4E8ACC",
"flex": 1,
"fontSize": 20,
- "textAlign": "center",
},
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
+
-
-
- test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
-
+
+
+
+
+
+
-
-
-
- ,
- ],
- "style": Object {
+ }
+ />
+
+
+
+
+
-
- test
-
- ,
-
-
-
-
-
- ,
-
-
-
-
-
- ,
- ],
- "style": Object {
- "alignSelf": "stretch",
- "backgroundColor": "white",
- "borderRadius": 12,
- "marginBottom": 20,
- "marginHorizontal": 20,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": "2",
- "nodeType": "class",
- "props": Object {
- "children":
- test
- ,
- "style": Array [
- Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- ],
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "test",
- "style": Object {
- "color": "#7f8180",
- "flex": 1,
- "textAlign": "center",
- },
- },
- "ref": null,
- "rendered": "test",
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "0",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": Object {
- "borderBottomColor": "rgba(0, 0, 0, 0.1)",
- "borderBottomWidth": 1,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Take Photo or Video",
- "id": "mobile.file_upload.camera",
- "style": Array [
- Object {
- "color": "#4E8ACC",
- "flex": 1,
- "fontSize": 20,
- },
- undefined,
- false,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "camera",
- "size": 18,
- "style": Object {
- "color": "#4E8ACC",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": "1",
- "nodeType": "class",
- "props": Object {
- "children":
-
-
- ,
- "style": false,
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": Array [
- ,
- ,
- ],
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Photo Library",
- "id": "mobile.file_upload.library",
- "style": Array [
- Object {
- "color": "#4E8ACC",
- "flex": 1,
- "fontSize": 20,
- },
- undefined,
- false,
- ],
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "allowFontScaling": false,
- "name": "photo",
- "size": 18,
- "style": Object {
- "color": "#4E8ACC",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children":
-
- ,
- "style": Object {
- "alignSelf": "stretch",
- "backgroundColor": "white",
- "borderRadius": 12,
- "marginBottom": 20,
- "marginHorizontal": 20,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "activeOpacity": 0.2,
- "children": ,
- "onPress": [Function],
- "style": Object {
- "alignItems": "center",
- "alignSelf": "stretch",
- "flexDirection": "row",
- "justifyContent": "space-between",
- "padding": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Cancel",
- "id": "channel_modal.cancel",
- "style": Object {
- "color": "#CC3239",
- "flex": 1,
- "fontSize": 20,
- "textAlign": "center",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ "alignSelf": "stretch",
+ "flexDirection": "row",
+ "justifyContent": "space-between",
+ "padding": 15,
+ }
+ }
+ >
+
+
+
+
`;
diff --git a/app/screens/options_modal/option_modal_list.test.js b/app/screens/options_modal/option_modal_list.test.js
index fb0864571..703558226 100644
--- a/app/screens/options_modal/option_modal_list.test.js
+++ b/app/screens/options_modal/option_modal_list.test.js
@@ -31,13 +31,13 @@ describe('OptionModalList', () => {
const wrapper = shallow(
,
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should match snapshot for Android', async () => {
const wrapper = shallow(
,
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/screens/select_team/__snapshots__/select_team.test.js.snap b/app/screens/select_team/__snapshots__/select_team.test.js.snap
index 5539f8043..17b97c914 100644
--- a/app/screens/select_team/__snapshots__/select_team.test.js.snap
+++ b/app/screens/select_team/__snapshots__/select_team.test.js.snap
@@ -1,153 +1,74 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`SelectTeam should match snapshot for fail of teams 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__): ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "errorDescription": Object {
- "defaultMessage": "Make sure you have an active connection and try again.",
- "id": "mobile.failed_network_action.shortDescription",
- },
- "errorTitle": Object {
- "defaultMessage": "Team Not Found",
- "id": "error.team_not_found.title",
- },
- "onRetry": [Function],
- "theme": Object {},
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
+
`;
exports[`SelectTeam should match snapshot for teams 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+
+
+
+
+
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
- ,
- ,
- ],
- "style": Object {
- "backgroundColor": undefined,
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- ,
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "row",
- "marginHorizontal": 16,
- "marginTop": 20,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "style": Object {
- "marginRight": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Open teams you can join",
- "id": "mobile.select_team.join_open",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": undefined,
- "height": 1,
- "width": "100%",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "data": Array [
- Object {
- "id": "kemjcpu9bi877yegqjs18ndp4r",
- "invite_id": "ojsnudhqzbfzpk6e4n6ip1hwae",
- "name": "test",
- },
- ],
- "disableVirtualization": false,
- "horizontal": false,
- "initialNumToRender": 10,
- "keyExtractor": [Function],
- "maxToRenderPerBatch": 10,
- "numColumns": 1,
- "onEndReachedThreshold": 2,
- "renderItem": [Function],
- "scrollEventThrottle": 50,
- "updateCellsBatchingPeriod": 50,
- "viewabilityConfig": Object {
- "viewAreaCoveragePercentThreshold": 3,
- "waitForInteraction": false,
- },
- "windowSize": 21,
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
-
- ,
- ,
- ],
- "style": Object {
- "backgroundColor": undefined,
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
- ,
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "flexDirection": "row",
- "marginHorizontal": 16,
- "marginTop": 20,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": ,
- "style": Object {
- "marginRight": 15,
- },
- },
- "ref": null,
- "rendered": Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "defaultMessage": "Open teams you can join",
- "id": "mobile.select_team.join_open",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "style": Object {
- "backgroundColor": undefined,
- "height": 1,
- "width": "100%",
- },
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "data": Array [
- Object {
- "id": "kemjcpu9bi877yegqjs18ndp4r",
- "invite_id": "ojsnudhqzbfzpk6e4n6ip1hwae",
- "name": "test",
- },
- ],
- "disableVirtualization": false,
- "horizontal": false,
- "initialNumToRender": 10,
- "keyExtractor": [Function],
- "maxToRenderPerBatch": 10,
- "numColumns": 1,
- "onEndReachedThreshold": 2,
- "renderItem": [Function],
- "scrollEventThrottle": 50,
- "updateCellsBatchingPeriod": 50,
- "viewabilityConfig": Object {
- "viewAreaCoveragePercentThreshold": 3,
- "waitForInteraction": false,
- },
- "windowSize": 21,
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "hydrateIn": undefined,
- },
-}
+ windowSize={21}
+ />
+
`;
diff --git a/app/screens/select_team/select_team.test.js b/app/screens/select_team/select_team.test.js
index ad2f03028..5dad41a77 100644
--- a/app/screens/select_team/select_team.test.js
+++ b/app/screens/select_team/select_team.test.js
@@ -54,7 +54,7 @@ describe('SelectTeam', () => {
await getTeams();
expect(wrapper.state('loading')).toEqual(false);
wrapper.update();
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
test('should match snapshot for teams', async () => {
@@ -75,6 +75,6 @@ describe('SelectTeam', () => {
);
await getTeams();
wrapper.update();
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});
diff --git a/app/screens/user_profile/__snapshots__/user_profile.test.js.snap b/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
index 682757735..be187f9c4 100644
--- a/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
+++ b/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
@@ -1,923 +1,101 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`user_profile should match snapshot 1`] = `
-ShallowWrapper {
- Symbol(enzyme.__root__): [Circular],
- Symbol(enzyme.__unrendered__):
+
+
+
+
+
+ @undefined
+
+
+ ,
- Symbol(enzyme.__renderer__): Object {
- "batchedUpdates": [Function],
- "getNode": [Function],
- "render": [Function],
- "simulateError": [Function],
- "simulateEvent": [Function],
- "unmount": [Function],
- },
- Symbol(enzyme.__node__): Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
+
+
-
+
-
-
- @undefined
-
-
-
-
-
- NICKNAME
-
-
- nick
-
-
-
-
- ,
- ],
- "style": Object {
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {},
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
-
-
- @undefined
-
- ,
-
-
-
- NICKNAME
-
-
- nick
-
-
- ,
- ,
- null,
- ],
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- null,
-
- @undefined
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "justifyContent": "center",
- "padding": 25,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 150,
- "statusBorderWidth": 6,
- "statusSize": 40,
- "userId": "4hzdnk6mg7gepe7yze6m3domnc",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- null,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "@undefined",
- "style": Object {
- "color": "#aaa",
- "fontSize": 15,
- "marginTop": 15,
- },
- },
- "ref": null,
- "rendered": "@undefined",
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- false,
- null,
- false,
-
-
- NICKNAME
-
-
- nick
-
- ,
- null,
- ],
- "style": Object {
- "marginBottom": 25,
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- false,
- null,
- false,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
- NICKNAME
- ,
-
- nick
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "NICKNAME",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- "fontWeight": "600",
- "marginBottom": 10,
- "marginTop": 25,
- },
- },
- "ref": null,
- "rendered": "NICKNAME",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "nick",
- "style": Object {
- "color": "#aaa",
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "nick",
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- null,
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "function",
- "props": Object {
- "action": [Function],
- "defaultMessage": "Send Message",
- "icon": "paper-plane-o",
- "iconColor": "rgba(0, 0, 0, 0.7)",
- "iconSize": 15,
- "iconType": "fontawesome",
- "textColor": "#000",
- "textId": "mobile.routes.user_profile.send_message",
- "theme": Object {
- "centerChannelBg": "#aaa",
- "centerChannelColor": "#aaa",
- "color": "#aaa",
- },
- "togglable": false,
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- null,
- ],
- "type": [MockFunction],
- },
- ],
- "type": [Function],
- },
- Symbol(enzyme.__nodes__): Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
-
-
-
-
- @undefined
-
-
-
-
-
- NICKNAME
-
-
- nick
-
-
-
-
- ,
- ],
- "style": Object {
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
+ }
+ >
+ nick
+
+
+
+
-
-
- @undefined
-
- ,
-
-
-
- NICKNAME
-
-
- nick
-
-
- ,
- ,
- null,
- ],
- "style": Object {
- "backgroundColor": "#aaa",
- "flex": 1,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- ,
- null,
-
- @undefined
- ,
- ],
- "style": Object {
- "alignItems": "center",
- "justifyContent": "center",
- "padding": 25,
- },
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "size": 150,
- "statusBorderWidth": 6,
- "statusSize": 40,
- "userId": "4hzdnk6mg7gepe7yze6m3domnc",
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- null,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "@undefined",
- "style": Object {
- "color": "#aaa",
- "fontSize": 15,
- "marginTop": 15,
- },
- },
- "ref": null,
- "rendered": "@undefined",
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
- false,
- null,
- false,
-
-
- NICKNAME
-
-
- nick
-
- ,
- null,
- ],
- "style": Object {
- "marginBottom": 25,
- "marginHorizontal": 15,
- },
- },
- "ref": null,
- "rendered": Array [
- false,
- null,
- false,
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": Array [
-
- NICKNAME
- ,
-
- nick
- ,
- ],
- },
- "ref": null,
- "rendered": Array [
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "NICKNAME",
- "style": Object {
- "color": undefined,
- "fontSize": 13,
- "fontWeight": "600",
- "marginBottom": 10,
- "marginTop": 25,
- },
- },
- "ref": null,
- "rendered": "NICKNAME",
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "class",
- "props": Object {
- "children": "nick",
- "style": Object {
- "color": "#aaa",
- "fontSize": 15,
- },
- },
- "ref": null,
- "rendered": "nick",
- "type": [Function],
- },
- ],
- "type": [Function],
- },
- null,
- ],
- "type": [Function],
- },
- Object {
- "instance": null,
- "key": undefined,
- "nodeType": "function",
- "props": Object {
- "action": [Function],
- "defaultMessage": "Send Message",
- "icon": "paper-plane-o",
- "iconColor": "rgba(0, 0, 0, 0.7)",
- "iconSize": 15,
- "iconType": "fontawesome",
- "textColor": "#000",
- "textId": "mobile.routes.user_profile.send_message",
- "theme": Object {
- "centerChannelBg": "#aaa",
- "centerChannelColor": "#aaa",
- "color": "#aaa",
- },
- "togglable": false,
- },
- "ref": null,
- "rendered": null,
- "type": [Function],
- },
- null,
- ],
- "type": [MockFunction],
- },
- ],
- "type": [Function],
- },
- ],
- Symbol(enzyme.__options__): Object {
- "adapter": ReactSixteenAdapter {
- "options": Object {
- "enableComponentDidUpdateOnSetState": true,
- "lifecycles": Object {
- "componentDidUpdate": Object {
- "onSetState": true,
- },
- "getDerivedStateFromProps": true,
- "getSnapshotBeforeUpdate": true,
- "setState": Object {
- "skipsComponentDidUpdateOnNullish": true,
- },
- },
- },
- },
- "attachTo": undefined,
- "context": Object {
- "intl": Object {
- "formatMessage": [MockFunction],
- },
- },
- "hydrateIn": undefined,
- },
-}
+ "centerChannelBg": "#aaa",
+ "centerChannelColor": "#aaa",
+ "color": "#aaa",
+ }
+ }
+ togglable={false}
+ />
+
+
`;
diff --git a/app/screens/user_profile/user_profile.test.js b/app/screens/user_profile/user_profile.test.js
index 14fe37d82..b5f7867d8 100644
--- a/app/screens/user_profile/user_profile.test.js
+++ b/app/screens/user_profile/user_profile.test.js
@@ -50,6 +50,6 @@ describe('user_profile', () => {
,
{context: {intl: {formatMessage: jest.fn()}}},
);
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.getElement()).toMatchSnapshot();
});
});