2022-06-08 00:17:02 +00:00
|
|
|
|
2022-06-07 15:19:52 +00:00
|
|
|
from screens.StatusMainScreen import StatusMainScreen
|
2022-06-07 23:37:11 +00:00
|
|
|
from screens.StatusChatScreen import StatusChatScreen
|
2022-06-07 15:19:52 +00:00
|
|
|
|
|
|
|
_statusMain = StatusMainScreen()
|
2022-06-07 23:37:11 +00:00
|
|
|
_statusChat = StatusChatScreen()
|
2022-06-07 15:19:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
@When("user joins chat room |any|")
|
|
|
|
def step(context, room):
|
|
|
|
_statusMain.joinChatRoom(room)
|
|
|
|
|
|
|
|
|
2022-06-07 23:37:11 +00:00
|
|
|
@Then("user is able to send chat message")
|
|
|
|
def step(context):
|
|
|
|
table = context.table
|
|
|
|
for row in table[1:]:
|
2022-06-07 23:44:48 +00:00
|
|
|
_statusChat.sendMessage(row[0])
|