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
9a7eae6ab0
commit
6d497582b1
|
@ -0,0 +1,9 @@
|
||||||
|
from drivers.SquishDriver import *
|
||||||
|
|
||||||
|
|
||||||
|
def press_enter(objName):
|
||||||
|
type(objName, "<Return>")
|
||||||
|
|
||||||
|
|
||||||
|
def press_backspace(objName):
|
||||||
|
type(objName, "<Backspace>")
|
|
@ -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>")
|
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
from screens.StatusMainScreen import StatusMainScreen
|
from screens.StatusMainScreen import StatusMainScreen
|
||||||
from screens.StatusChatScreen import StatusChatScreen
|
from screens.StatusChatScreen import StatusChatScreen
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue