From 8e750e18d7a6781cb91b9bc2a113cf03015c78d3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Apr 2019 11:46:04 +0200 Subject: [PATCH] add class for message case for e2e tests --- src/components/views/rooms/RoomPreviewBar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 8fff835534..edcd9805c7 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -227,7 +227,8 @@ module.exports = React.createClass({ let secondaryActionHandler; let secondaryActionLabel; - switch (this._getMessageCase()) { + const messageCase = this._getMessageCase(); + switch (messageCase) { case MessageCase.Joining: { title = _t("Joining room …"); showSpinner = true; @@ -418,7 +419,7 @@ module.exports = React.createClass({ ); } - const classes = classNames("mx_RoomPreviewBar", "dark-panel", { + const classes = classNames("mx_RoomPreviewBar", "dark-panel", `mx_RoomPreviewBar_${messageCase}`, { "mx_RoomPreviewBar_panel": this.props.canPreview, "mx_RoomPreviewBar_dialog": !this.props.canPreview, "mx_RoomPreviewBar_dark": darkStyle,