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 01:17:02 +01:00 committed by Olufemi Ade-Olusile
parent 9a7eae6ab0
commit 6d497582b1
5 changed files with 12 additions and 6 deletions

View File

@ -0,0 +1,9 @@
from drivers.SquishDriver import *
def press_enter(objName):
type(objName, "<Return>")
def press_backspace(objName):
type(objName, "<Backspace>")

View File

@ -103,7 +103,3 @@ def type(objName, text):
return True return True
except LookupError: except LookupError:
return False return False
def press_enter(objName):
type(objName, "<Return>")

View File

@ -12,6 +12,7 @@
from enum import Enum from enum import Enum
from drivers.SquishDriver import * from drivers.SquishDriver import *
from drivers.SquishDriverVerification import * from drivers.SquishDriverVerification import *
from drivers.SDKeyboardCommands import *
class ChatComponents(Enum): class ChatComponents(Enum):

View File

@ -1,3 +1,4 @@
from screens.StatusMainScreen import StatusMainScreen from screens.StatusMainScreen import StatusMainScreen
from screens.StatusChatScreen import StatusChatScreen from screens.StatusChatScreen import StatusChatScreen

View File

@ -2,7 +2,6 @@ from data.StatusAccount import StatusAccount
from processes.StatusLoginProcess import StatusLoginProcess from processes.StatusLoginProcess import StatusLoginProcess
@Given("A Status Desktop |any| and |any|") @Given("A Status Desktop |any| and |any|")
def step(context, account, password): def step(context, account, password):
@ -50,4 +49,4 @@ def step(context):
def get_process_result(context): def get_process_result(context):
loginProcess = context.userData['process'] loginProcess = context.userData['process']
result, description = loginProcess.get_process_result() result, description = loginProcess.get_process_result()
test.verify(result, description) test.verify(result, description)