feat(@DesktopApp): Basic Chat Scenario (Squish Test)
Ticket: https://github.com/status-im/status-desktop/issues/5718 Include Basic chat Scenario
This commit is contained in:
parent
304fe07214
commit
937d9d7d09
|
@ -24,8 +24,6 @@ class StatusChatScreen:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
verify_screen_is_loaded(ChatComponents.TYPE_A_MESSAGE_PLACE_HOLDER.value)
|
verify_screen_is_loaded(ChatComponents.TYPE_A_MESSAGE_PLACE_HOLDER.value)
|
||||||
|
|
||||||
|
|
||||||
def sendMessage(self, message):
|
def sendMessage(self, message):
|
||||||
type(ChatComponents.MESSAGE_INPUT.value, message)
|
type(ChatComponents.MESSAGE_INPUT.value, message)
|
||||||
press_enter(ChatComponents.MESSAGE_INPUT.value)
|
press_enter(ChatComponents.MESSAGE_INPUT.value)
|
||||||
|
|
||||||
|
|
|
@ -72,5 +72,3 @@ class StatusWelcomeScreen:
|
||||||
def input_confirmation_password(self, password):
|
def input_confirmation_password(self, password):
|
||||||
type(SignUpComponents.PASSWORD_CONFIRM_INPUT.value, password)
|
type(SignUpComponents.PASSWORD_CONFIRM_INPUT.value, password)
|
||||||
click_obj_by_name(SignUpComponents.CREATE_PASSWORD.value)
|
click_obj_by_name(SignUpComponents.CREATE_PASSWORD.value)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
from screens.StatusMainScreen import StatusMainScreen
|
from screens.StatusMainScreen import StatusMainScreen
|
||||||
from screens.StatusChatScreen import StatusChatScreen
|
from screens.StatusChatScreen import StatusChatScreen
|
||||||
|
|
||||||
|
@ -15,4 +14,4 @@ def step(context, room):
|
||||||
def step(context):
|
def step(context):
|
||||||
table = context.table
|
table = context.table
|
||||||
for row in table[1:]:
|
for row in table[1:]:
|
||||||
_statusChat.sendMessage(row[0])
|
_statusChat.sendMessage(row[0])
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
#******************************************************************************
|
# ******************************************************************************
|
||||||
# Status.im
|
# Status.im
|
||||||
#*****************************************************************************/
|
# *****************************************************************************/
|
||||||
# /**
|
# /**
|
||||||
# * \file steps.py
|
# * \file steps.py
|
||||||
# *
|
# *
|
||||||
|
@ -15,17 +15,17 @@
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
from common.Common import *
|
from common.Common import *
|
||||||
|
|
||||||
|
|
||||||
@Given("the application is restarted")
|
@Given("the application is restarted")
|
||||||
def step(context):
|
def step(context):
|
||||||
currentApplicationContext().detach()
|
currentApplicationContext().detach()
|
||||||
startApplication("nim_status_client")
|
startApplication("nim_status_client")
|
||||||
|
|
||||||
|
|
||||||
@When("user inputs the following |any| with ui-component |any|")
|
@When("user inputs the following |any| with ui-component |any|")
|
||||||
def step(context, text, obj):
|
def step(context, text, obj):
|
||||||
input_text(text, obj)
|
input_text(text, obj)
|
||||||
|
|
||||||
|
|
||||||
@When("user clicks on the following ui-component |any|")
|
@When("user clicks on the following ui-component |any|")
|
||||||
def step(context, obj):
|
def step(context, obj):
|
||||||
|
|
Loading…
Reference in New Issue