From a1f842b009d5c09bfaae7bd6d1d442cb06ffb8e0 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 6 Mar 2020 15:13:33 -0300 Subject: [PATCH] [FIX] e2e tests (#1838) --- app/containers/markdown/index.js | 5 +++-- app/views/RoomView/Header/Header.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/containers/markdown/index.js b/app/containers/markdown/index.js index 42cb522a8..990b2fc66 100644 --- a/app/containers/markdown/index.js +++ b/app/containers/markdown/index.js @@ -80,6 +80,7 @@ class Markdown extends PureComponent { navToRoomInfo: PropTypes.func, preview: PropTypes.bool, theme: PropTypes.string, + testID: PropTypes.string, style: PropTypes.array }; @@ -357,7 +358,7 @@ class Markdown extends PureComponent { render() { const { - msg, numberOfLines, preview = false, theme, style = [] + msg, numberOfLines, preview = false, theme, style = [], testID } = this.props; if (!msg) { @@ -375,7 +376,7 @@ class Markdown extends PureComponent { m = shortnameToUnicode(m); m = removeMarkdown(m); return ( - + {m} ); diff --git a/app/views/RoomView/Header/Header.js b/app/views/RoomView/Header/Header.js index 3fb90f908..bc6818588 100644 --- a/app/views/RoomView/Header/Header.js +++ b/app/views/RoomView/Header/Header.js @@ -93,6 +93,7 @@ const HeaderTitle = React.memo(({ style={[styles.title, { fontSize: TITLE_SIZE * scale, color: themes[theme].headerTitleColor }]} numberOfLines={1} theme={theme} + testID={`room-view-title-${ title }`} /> ); });