Skip to content

Commit

Permalink
[FIX] e2e tests (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Mar 6, 2020
1 parent b936021 commit a1f842b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/containers/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Markdown extends PureComponent {
navToRoomInfo: PropTypes.func,
preview: PropTypes.bool,
theme: PropTypes.string,
testID: PropTypes.string,
style: PropTypes.array
};

Expand Down Expand Up @@ -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) {
Expand All @@ -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>
);
Expand Down
1 change: 1 addition & 0 deletions app/views/RoomView/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }`}
/>
);
});
Expand Down

0 comments on commit a1f842b

Please sign in to comment.