status-desktop/test/ui-test/testSuites/suite_communities/tst_searchFlows/test.feature

67 lines
3.1 KiB
Gherkin

#******************************************************************************
# Status.im
#*****************************************************************************/
#/**
# * \file test.feature
# *
# * \test Status Desktop - Search flows
# * \date August 2022
# **
# *****************************************************************************/
Feature: Search feature (ctrl+F)
As a user, I want to search the different chats and messages of the app
Covers the search flows
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
** and user joins chat room "search-automation-test-1"
** and user joins chat room "search-automation-test-2"
** given the user opens the community portal section
** and the user lands on the community portal section
** and the user creates a community named "myCommunity", with description "My community description", intro "Community Intro" and outro "Commmunity outro"
** and the user lands on the community named "myCommunity"
** and the admin creates a community channel named "automation-community", with description "My description" with the method "bottom_menu"
** and the user lands on the channel named "automation-community"
Background:
# It starts opening the portal so that we see if the search really redirects
Given the user opens the community portal section
And the user lands on the community portal section
@mayfail
# myfail because of dekstop issue #7989. Once it is fixed, remove tag.
Scenario: The user can search for a community channel
Given the user opens the search menu
And the user searches for "automation"
When the user clicks on the search result for channel "automation-community"
Then the channel named "automation-community" is open
@mayfail
# myfail because of dekstop issue #7989. Once it is fixed, remove tag.
Scenario: The user can search for a public channel
Given the user opens the search menu
And the user searches for "automation"
When the user clicks on the search result for channel "search-automation-test-2"
Then the chat title is "search-automation-test-2"
@mayfail
# myfail because of desktop issue #7989. Once it is fixed, remove tag.
Scenario: The user can search for a message in a public channel
Given the user opens the chat section
And the user joins chat room "search-automation-test-1"
And the user sends a random chat message
# Go back to the portal so that we see if the search really redirects
And the user opens the community portal section
And the user opens the search menu
When the user searches the random message
Then the search menu shows 1 results
When the user clicks on the search result for the random message
Then the chat title is "search-automation-test-1"