Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-07-10 16:39:26 +02:00 committed by andrey
parent eef6815616
commit e366587e8f
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 6 additions and 4 deletions

View File

@ -60,15 +60,17 @@ class TestCreateAccount(SingleDeviceTestCase):
for text in texts:
if not home_view.element_by_text(text).is_element_displayed():
self.errors.append("'%s' text is not shown" % text)
sign_in.element_by_text("#status").click()
sign_in.back_button.click()
for chat in ('#status', '#crypto'):
sign_in.element_by_text(chat).click()
sign_in.back_button.click()
profile_view = home_view.profile_button.click()
shown_username = profile_view.default_username_text.text
if shown_username != username:
self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username))
profile_view.home_button.click()
home_view.cross_icon_iside_welcome_screen_button.click()
home_view.delete_chat_long_press("#status")
for chat in ('#status', '#crypto'):
home_view.delete_chat_long_press(chat)
if home_view.element_by_text(texts[0]).is_element_displayed():
self.errors.append("'%s' text is shown, but welcome view was closed" % texts[0])
home_view.relogin()

View File

@ -30,7 +30,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
home_1.plus_button.click_until_presence_of_element(home_1.join_public_chat_button)
home_1.join_public_chat_button.click()
preselected_chats = ['#status', '#introductions', '#chitchat', '#crypto', '#tech', '#music', '#movies', '#support']
preselected_chats = ['#status', '#chitchat', '#defi', '#crypto', '#markets', '#dap-ps']
for chat in preselected_chats:
if not home_1.element_by_text(chat).is_element_displayed():
self.errors.append("'%s' text is not in the list of preselected chats" % chat)