Unverified Commit a1f842b0 authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] e2e tests (#1838)

parent b9360217
...@@ -80,6 +80,7 @@ class Markdown extends PureComponent { ...@@ -80,6 +80,7 @@ class Markdown extends PureComponent {
navToRoomInfo: PropTypes.func, navToRoomInfo: PropTypes.func,
preview: PropTypes.bool, preview: PropTypes.bool,
theme: PropTypes.string, theme: PropTypes.string,
testID: PropTypes.string,
style: PropTypes.array style: PropTypes.array
}; };
...@@ -357,7 +358,7 @@ class Markdown extends PureComponent { ...@@ -357,7 +358,7 @@ class Markdown extends PureComponent {
render() { render() {
const { const {
msg, numberOfLines, preview = false, theme, style = [] msg, numberOfLines, preview = false, theme, style = [], testID
} = this.props; } = this.props;
if (!msg) { if (!msg) {
...@@ -375,7 +376,7 @@ class Markdown extends PureComponent { ...@@ -375,7 +376,7 @@ class Markdown extends PureComponent {
m = shortnameToUnicode(m); m = shortnameToUnicode(m);
m = removeMarkdown(m); m = removeMarkdown(m);
return ( return (
<Text accessibilityLabel={m} style={[styles.text, { color: themes[theme].bodyText }, ...style]} numberOfLines={numberOfLines}> <Text accessibilityLabel={m} style={[styles.text, { color: themes[theme].bodyText }, ...style]} numberOfLines={numberOfLines} testID={testID}>
{m} {m}
</Text> </Text>
); );
......
...@@ -93,6 +93,7 @@ const HeaderTitle = React.memo(({ ...@@ -93,6 +93,7 @@ const HeaderTitle = React.memo(({
style={[styles.title, { fontSize: TITLE_SIZE * scale, color: themes[theme].headerTitleColor }]} style={[styles.title, { fontSize: TITLE_SIZE * scale, color: themes[theme].headerTitleColor }]}
numberOfLines={1} numberOfLines={1}
theme={theme} theme={theme}
testID={`room-view-title-${ title }`}
/> />
); );
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment