[FIX] e2e tests (#1838)

This commit is contained in:
Diego Mello 2020-03-06 15:13:33 -03:00 committed by GitHub
parent b9360217e6
commit a1f842b009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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 (
<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}
</Text>
);

View File

@ -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 }`}
/>
);
});