mattermost-mobile/detox/e2e/support/ui/component/send_button.js
2022-02-02 16:04:24 -03:00

20 lines
640 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
class SendButton {
testID = {
sendButtonSuffix: 'post_draft.send_action.send.button',
sendButtonDisabledSuffix: 'post_draft.send_action.send.button.disabled',
};
getSendButton = (screenPrefix) => {
return element(by.id(`${screenPrefix}${this.testID.sendButtonSuffix}`));
};
getSendButtonDisabled = (screenPrefix) => {
return element(by.id(`${screenPrefix}${this.testID.sendButtonDisabledSuffix}`));
};
}
const sendButton = new SendButton();
export default sendButton;