Updated tests 5441, 5453, created 6221

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
yevh-berdnyk 2019-08-13 01:23:18 +03:00 committed by Serhy
parent 9c0498bc68
commit 9a0bb7d137
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
3 changed files with 12 additions and 17 deletions

View File

@ -310,22 +310,6 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
if not base_web_view.policy_summary.is_element_displayed():
self.errors.append('{} Profile about view!'.format(no_link_open_error_msg))
base_web_view.click_system_back_button()
if about_view.privacy_policy_button.is_element_displayed():
base_web_view.click_system_back_button()
profile.logout()
if signin_view.ok_button.is_element_displayed():
signin_view.ok_button.click()
signin_view.back_button.click()
signin_view.generate_new_key_button.click()
if not signin_view.privacy_policy_link.is_element_displayed():
self.driver.fail('{} Sign in view!'.format(no_link_found_error_msg))
signin_view.privacy_policy_link.click()
if not base_web_view.policy_summary.is_element_displayed():
self.errors.append('{} Sign in view!'.format(no_link_open_error_msg))
self.verify_no_errors()
@marks.testrail_id(5738)

View File

@ -180,6 +180,17 @@ class TestChatManagement(SingleDeviceTestCase):
home.search_chat_input.clear()
self.verify_no_errors()
@marks.testrail_id(6221)
@marks.medium
def test_app_on_background_by_back_button(self):
sign_in = SignInView(self.driver)
home = sign_in.create_user()
home.click_system_back_button()
home.driver.press_keycode(187)
home.element_by_text('Status PR').click()
if not home.plus_button.is_element_displayed():
self.driver.fail('Chats view was not opened')
@marks.chat
class TestChatManagementMultipleDevice(MultipleDeviceTestCase):

View File

@ -33,7 +33,7 @@ class TestDeepLinks(SingleDeviceTestCase):
deep_link = 'https://get.status.im/user/%s' % basic_user['public_key']
sign_in_view.open_weblink_and_login(deep_link)
chat_view = sign_in_view.get_chat_view()
for text in basic_user['username'], 'Add to contacts', 'Send transaction':
for text in basic_user['username'], 'Add to contacts':
if not chat_view.element_by_text(text).scroll_to_element(10):
pytest.fail("User profile screen is not opened")