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:
femi 2022-06-08 00:44:48 +01:00 committed by Olufemi Ade-Olusile
parent 304fe07214
commit 937d9d7d09
4 changed files with 7 additions and 12 deletions

View File

@ -24,8 +24,6 @@ class StatusChatScreen:
def __init__(self):
verify_screen_is_loaded(ChatComponents.TYPE_A_MESSAGE_PLACE_HOLDER.value)
def sendMessage(self, message):
type(ChatComponents.MESSAGE_INPUT.value, message)
press_enter(ChatComponents.MESSAGE_INPUT.value)

View File

@ -72,5 +72,3 @@ class StatusWelcomeScreen:
def input_confirmation_password(self, password):
type(SignUpComponents.PASSWORD_CONFIRM_INPUT.value, password)
click_obj_by_name(SignUpComponents.CREATE_PASSWORD.value)

View File

@ -1,4 +1,3 @@
from screens.StatusMainScreen import StatusMainScreen
from screens.StatusChatScreen import StatusChatScreen
@ -15,4 +14,4 @@ def step(context, room):
def step(context):
table = context.table
for row in table[1:]:
_statusChat.sendMessage(row[0])
_statusChat.sendMessage(row[0])

View File

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
#******************************************************************************
# ******************************************************************************
# Status.im
#*****************************************************************************/
# *****************************************************************************/
# /**
# * \file steps.py
# *
@ -15,17 +15,17 @@
# *****************************************************************************
from common.Common import *
@Given("the application is restarted")
def step(context):
currentApplicationContext().detach()
startApplication("nim_status_client")
@When("user inputs the following |any| with ui-component |any|")
def step(context, text, obj):
input_text(text, obj)
@When("user clicks on the following ui-component |any|")
def step(context, obj):