Followup e2e fix after PN remove
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
e80b08c42e
commit
c7cc80bc60
|
@ -72,7 +72,6 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||||
sign_in.next_button.click()
|
sign_in.next_button.click()
|
||||||
sign_in.confirm_your_password_input.set_value(common_password)
|
sign_in.confirm_your_password_input.set_value(common_password)
|
||||||
sign_in.next_button.click()
|
sign_in.next_button.click()
|
||||||
sign_in.maybe_later_button.click()
|
|
||||||
home_view = sign_in.get_home_view()
|
home_view = sign_in.get_home_view()
|
||||||
text = 'There are no recent chats here yet. \nUse the (+) button to discover people \nto chat with'
|
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():
|
if not home_view.element_by_text(text).is_element_displayed():
|
||||||
|
|
|
@ -61,7 +61,6 @@ class TestSignIn(SingleDeviceTestCase):
|
||||||
self.driver.close_app()
|
self.driver.close_app()
|
||||||
sign_in.toggle_airplane_mode()
|
sign_in.toggle_airplane_mode()
|
||||||
self.driver.launch_app()
|
self.driver.launch_app()
|
||||||
sign_in.accept_agreements()
|
|
||||||
home = sign_in.sign_in()
|
home = sign_in.sign_in()
|
||||||
home.home_button.wait_for_visibility_of_element()
|
home.home_button.wait_for_visibility_of_element()
|
||||||
connection_text = sign_in.connection_status.text
|
connection_text = sign_in.connection_status.text
|
||||||
|
|
|
@ -61,7 +61,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
|
|
||||||
home_1.connection_status.wait_for_invisibility_of_element(30)
|
home_1.connection_status.wait_for_invisibility_of_element(30)
|
||||||
chat_element = home_1.get_chat_with_user(username_2)
|
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.click()
|
||||||
chat_1.chat_element_by_text(message_1).wait_for_visibility_of_element(2)
|
chat_1.chat_element_by_text(message_1).wait_for_visibility_of_element(2)
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,7 @@ class AirplaneModeButton(BaseButton):
|
||||||
action = TouchAction(self.driver)
|
action = TouchAction(self.driver)
|
||||||
action.press(None, 50, 0).move_to(None, 50, 300).perform()
|
action.press(None, 50, 0).move_to(None, 50, 300).perform()
|
||||||
super(AirplaneModeButton, self).click()
|
super(AirplaneModeButton, self).click()
|
||||||
action.tap(None, 50, 600).perform()
|
action.press(None, 50, 600).move_to(None, 50, 0).perform()
|
||||||
|
|
||||||
|
|
||||||
class BaseView(object):
|
class BaseView(object):
|
||||||
|
|
|
@ -188,6 +188,7 @@ class SignInView(BaseView):
|
||||||
self.next_button.click()
|
self.next_button.click()
|
||||||
self.confirm_your_password_input.set_value(password)
|
self.confirm_your_password_input.set_value(password)
|
||||||
self.next_button.click()
|
self.next_button.click()
|
||||||
|
self.profile_button.wait_for_visibility_of_element(30)
|
||||||
return self.get_home_view()
|
return self.get_home_view()
|
||||||
|
|
||||||
def recover_access(self, passphrase: str, password: str = common_password):
|
def recover_access(self, passphrase: str, password: str = common_password):
|
||||||
|
@ -211,7 +212,8 @@ class SignInView(BaseView):
|
||||||
def sign_in(self, password=common_password):
|
def sign_in(self, password=common_password):
|
||||||
self.accept_agreements()
|
self.accept_agreements()
|
||||||
self.password_input.set_value(password)
|
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):
|
def get_account_by_position(self, position: int):
|
||||||
if self.ok_button.is_element_displayed():
|
if self.ok_button.is_element_displayed():
|
||||||
|
|
Loading…
Reference in New Issue