test(chat): Emoji autoreplace

Closes: #7019
This commit is contained in:
Boris Melnik 2022-08-19 14:54:20 +03:00
parent 02b9ceff78
commit 2ef6e04b0a
2 changed files with 10 additions and 1 deletions

View File

@ -60,6 +60,10 @@ def step(context):
@Then("the user selects emoji in the suggestion list")
def step(contenxt):
_statusChat.select_the_emoji_in_suggestion_list()
@Then("the user is able to send chat message \"|any|\"")
def step(context, message):
_statusChat.send_message(message)
@Then("the user is able to send a random chat message")
def step(context):
@ -135,7 +139,7 @@ def step(context, emoji_short_name, message):
@Then("the emoji |any| is displayed in the last message")
def step(context, emoji):
_statusChat.verify_last_message_sent(emoji)
_statusChat.verify_last_message_sent(emoji)
@Then("the message |any| is displayed in the last message")
def step(context, message):

View File

@ -132,3 +132,8 @@ Feature: Status Desktop Chat
| second-chat |
| third-chat |
| first-chat |
Scenario: User can type message with emoji autoreplace
When user joins chat room automation-test
Then the user is able to send chat message "Hello :)"
Then the message Hello 🙂 is displayed in the last message