2022-08-15 21:01:12 +00:00
|
|
|
#******************************************************************************
|
|
|
|
# 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
|
|
|
|
|
2022-10-25 12:44:28 +00:00
|
|
|
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
|
2022-10-19 10:39:48 +00:00
|
|
|
And the user joins chat room "search-automation-test-1"
|
2022-10-25 12:44:28 +00:00
|
|
|
And the user sends a random chat message
|
2022-08-15 21:01:12 +00:00
|
|
|
# Go back to the portal so that we see if the search really redirects
|
2022-10-25 12:44:28 +00:00
|
|
|
And the user opens the community portal section
|
2022-08-15 21:01:12 +00:00
|
|
|
And the user opens the search menu
|
2022-10-25 12:44:28 +00:00
|
|
|
|
|
|
|
When the user searches the random message
|
2022-08-15 21:01:12 +00:00
|
|
|
Then the search menu shows 1 results
|
2022-10-25 12:44:28 +00:00
|
|
|
|
2022-08-15 21:01:12 +00:00
|
|
|
When the user clicks on the search result for the random message
|
2022-10-19 10:39:48 +00:00
|
|
|
Then the chat title is "search-automation-test-1"
|