diff --git a/test/ui-test/testSuites/global_shared/steps/steps.py b/test/ui-test/testSuites/global_shared/steps/steps.py index d42d241e82..9c0e6c85c9 100644 --- a/test/ui-test/testSuites/global_shared/steps/steps.py +++ b/test/ui-test/testSuites/global_shared/steps/steps.py @@ -88,9 +88,9 @@ def step(context, obj): ########################################################################### def the_user_restarts_the_app(context: any): - init_steps.waitFor(lambda: init_steps.currentApplicationContext().detach(), 500) + waitFor(lambda: currentApplicationContext().detach(), 500) time.sleep(5) - init_steps.startApplication(context.userData["aut_name"]) + startApplication(context.userData["aut_name"]) def the_user_joins_chat_room(room: str): init_steps.the_user_joins_chat_room(room) diff --git a/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/bdd_hooks.py b/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/bdd_hooks.py index 08a8154b24..c059e27142 100644 --- a/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/bdd_hooks.py +++ b/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/bdd_hooks.py @@ -23,4 +23,4 @@ def hook(context): @OnScenarioStart def hook(context): - init_steps.the_user_opens_the_chat_section() \ No newline at end of file + init_steps.the_user_opens_the_chat_section() diff --git a/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/test.feature b/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/test.feature index c4298ca33e..eff86619cc 100644 --- a/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/test.feature +++ b/test/ui-test/testSuites/suite_messaging/tst_chatsNavigation/test.feature @@ -1,11 +1,21 @@ Feature: Status Desktop Chat Navigation + As a user I want to join seethe application reflect correctly + when I navigate trough chats list. + + The feature start sequence is the following (setup on its own `bdd_hooks`): + ** given A first time user lands on the status desktop and generates new key + ** when user signs up with username "tester123" and password "TesTEr16843/!@00" + ** and the user lands on the signed in app + + [Cleanup] Also each scenario starts with: + ** when the user opens the chat section + Scenario: The user joins a room and marks it as read When the user joins chat room "test" And the user marks the channel "test" as read # TODO find a way to validate that it worked - @merge Scenario: The user sees chats sorted by most recent activity When the user joins chat room "first-chat" And the user joins chat room "second-chat"