Followup e2e fix after PN remove

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-10-30 20:21:21 +02:00
parent e80b08c42e
commit c7cc80bc60
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
5 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,6 @@ class TestCreateAccount(SingleDeviceTestCase):
sign_in.next_button.click()
sign_in.confirm_your_password_input.set_value(common_password)
sign_in.next_button.click()
sign_in.maybe_later_button.click()
home_view = sign_in.get_home_view()
text = 'There are no recent chats here yet. \nUse the (+) button to discover people \nto chat with'
if not home_view.element_by_text(text).is_element_displayed():

View File

@ -61,7 +61,6 @@ class TestSignIn(SingleDeviceTestCase):
self.driver.close_app()
sign_in.toggle_airplane_mode()
self.driver.launch_app()
sign_in.accept_agreements()
home = sign_in.sign_in()
home.home_button.wait_for_visibility_of_element()
connection_text = sign_in.connection_status.text

View File

@ -61,7 +61,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
home_1.connection_status.wait_for_invisibility_of_element(30)
chat_element = home_1.get_chat_with_user(username_2)
chat_element.wait_for_visibility_of_element(20)
chat_element.wait_for_visibility_of_element(30)
chat_1 = chat_element.click()
chat_1.chat_element_by_text(message_1).wait_for_visibility_of_element(2)

View File

@ -302,7 +302,7 @@ class AirplaneModeButton(BaseButton):
action = TouchAction(self.driver)
action.press(None, 50, 0).move_to(None, 50, 300).perform()
super(AirplaneModeButton, self).click()
action.tap(None, 50, 600).perform()
action.press(None, 50, 600).move_to(None, 50, 0).perform()
class BaseView(object):

View File

@ -188,6 +188,7 @@ class SignInView(BaseView):
self.next_button.click()
self.confirm_your_password_input.set_value(password)
self.next_button.click()
self.profile_button.wait_for_visibility_of_element(30)
return self.get_home_view()
def recover_access(self, passphrase: str, password: str = common_password):
@ -211,7 +212,8 @@ class SignInView(BaseView):
def sign_in(self, password=common_password):
self.accept_agreements()
self.password_input.set_value(password)
return self.sign_in_button.click()
self.confirm()
return self.get_home_view()
def get_account_by_position(self, position: int):
if self.ok_button.is_element_displayed():