From 937d9d7d0996f07d42bf8c9a94c850d567410c2e Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 8 Jun 2022 00:44:48 +0100 Subject: [PATCH] feat(@DesktopApp): Basic Chat Scenario (Squish Test) Ticket: https://github.com/status-im/status-desktop/issues/5718 Include Basic chat Scenario --- test/ui-test/src/screens/StatusChatScreen.py | 2 -- test/ui-test/src/screens/StatusWelcomeScreen.py | 2 -- .../suite_status/shared/steps/chatSteps.py | 3 +-- .../testSuites/suite_status/shared/steps/steps.py | 12 ++++++------ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/test/ui-test/src/screens/StatusChatScreen.py b/test/ui-test/src/screens/StatusChatScreen.py index c988794d2a..6830f88a9e 100644 --- a/test/ui-test/src/screens/StatusChatScreen.py +++ b/test/ui-test/src/screens/StatusChatScreen.py @@ -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) - diff --git a/test/ui-test/src/screens/StatusWelcomeScreen.py b/test/ui-test/src/screens/StatusWelcomeScreen.py index 5424d646f0..2a31841efc 100644 --- a/test/ui-test/src/screens/StatusWelcomeScreen.py +++ b/test/ui-test/src/screens/StatusWelcomeScreen.py @@ -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) - - diff --git a/test/ui-test/testSuites/suite_status/shared/steps/chatSteps.py b/test/ui-test/testSuites/suite_status/shared/steps/chatSteps.py index c05267cdab..159041716f 100644 --- a/test/ui-test/testSuites/suite_status/shared/steps/chatSteps.py +++ b/test/ui-test/testSuites/suite_status/shared/steps/chatSteps.py @@ -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]) \ No newline at end of file + _statusChat.sendMessage(row[0]) diff --git a/test/ui-test/testSuites/suite_status/shared/steps/steps.py b/test/ui-test/testSuites/suite_status/shared/steps/steps.py index 7872bf8cf4..fe35bfa830 100644 --- a/test/ui-test/testSuites/suite_status/shared/steps/steps.py +++ b/test/ui-test/testSuites/suite_status/shared/steps/steps.py @@ -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):