parent
eef6815616
commit
e366587e8f
|
@ -60,15 +60,17 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||||
for text in texts:
|
for text in texts:
|
||||||
if not home_view.element_by_text(text).is_element_displayed():
|
if not home_view.element_by_text(text).is_element_displayed():
|
||||||
self.errors.append("'%s' text is not shown" % text)
|
self.errors.append("'%s' text is not shown" % text)
|
||||||
sign_in.element_by_text("#status").click()
|
for chat in ('#status', '#crypto'):
|
||||||
sign_in.back_button.click()
|
sign_in.element_by_text(chat).click()
|
||||||
|
sign_in.back_button.click()
|
||||||
profile_view = home_view.profile_button.click()
|
profile_view = home_view.profile_button.click()
|
||||||
shown_username = profile_view.default_username_text.text
|
shown_username = profile_view.default_username_text.text
|
||||||
if shown_username != username:
|
if shown_username != username:
|
||||||
self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username))
|
self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username))
|
||||||
profile_view.home_button.click()
|
profile_view.home_button.click()
|
||||||
home_view.cross_icon_iside_welcome_screen_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():
|
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])
|
self.errors.append("'%s' text is shown, but welcome view was closed" % texts[0])
|
||||||
home_view.relogin()
|
home_view.relogin()
|
||||||
|
|
|
@ -30,7 +30,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
|
|
||||||
home_1.plus_button.click_until_presence_of_element(home_1.join_public_chat_button)
|
home_1.plus_button.click_until_presence_of_element(home_1.join_public_chat_button)
|
||||||
home_1.join_public_chat_button.click()
|
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:
|
for chat in preselected_chats:
|
||||||
if not home_1.element_by_text(chat).is_element_displayed():
|
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)
|
self.errors.append("'%s' text is not in the list of preselected chats" % chat)
|
||||||
|
|
Loading…
Reference in New Issue