Revive search chat test
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
ee5d53eba9
commit
a482369538
|
@ -203,26 +203,21 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
contacts_view.deny_button.wait_for_visibility_of_element(2)
|
contacts_view.deny_button.wait_for_visibility_of_element(2)
|
||||||
|
|
||||||
@marks.testrail_id(5757)
|
@marks.testrail_id(5757)
|
||||||
@marks.critical
|
@marks.medium
|
||||||
@marks.skip
|
|
||||||
# TODO: skipped due to issue in e2e build (emulators) only
|
|
||||||
# if start typing in search field - empty chat view is shown
|
|
||||||
def test_search_chat_on_home(self):
|
def test_search_chat_on_home(self):
|
||||||
sign_in = SignInView(self.driver)
|
sign_in = SignInView(self.driver)
|
||||||
home = sign_in.create_user()
|
home = sign_in.create_user()
|
||||||
search_list = list()
|
search_list = list()
|
||||||
|
|
||||||
chat_name = home.get_random_chat_name()
|
chat_name = home.get_random_chat_name()
|
||||||
search_list.append(chat_name)
|
search_list.append(chat_name)
|
||||||
public_chat = home.join_public_chat(chat_name)
|
public_chat = home.join_public_chat(chat_name)
|
||||||
public_chat.get_back_to_home_view()
|
public_chat.get_back_to_home_view()
|
||||||
|
|
||||||
chat = home.add_contact(basic_user['public_key'])
|
chat = home.add_contact(basic_user['public_key'])
|
||||||
search_list.append(basic_user['username'])
|
search_list.append(basic_user['username'])
|
||||||
chat.get_back_to_home_view()
|
chat.get_back_to_home_view()
|
||||||
|
|
||||||
home.swipe_down()
|
home.swipe_down()
|
||||||
for keyword in search_list:
|
for keyword in search_list:
|
||||||
|
home.search_chat_input.click()
|
||||||
home.search_chat_input.send_keys(keyword)
|
home.search_chat_input.send_keys(keyword)
|
||||||
search_results = home.chat_name_text.find_elements()
|
search_results = home.chat_name_text.find_elements()
|
||||||
if not search_results:
|
if not search_results:
|
||||||
|
@ -231,7 +226,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
if keyword not in element.text:
|
if keyword not in element.text:
|
||||||
self.errors.append("'%s' is shown on the home screen after searching by '%s' keyword" %
|
self.errors.append("'%s' is shown on the home screen after searching by '%s' keyword" %
|
||||||
(element.text, keyword))
|
(element.text, keyword))
|
||||||
home.search_chat_input.clear()
|
home.cancel_button.click()
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6221)
|
@marks.testrail_id(6221)
|
||||||
|
|
Loading…
Reference in New Issue