e2e: false failures fixes
This commit is contained in:
parent
21c2a525cf
commit
60911a1dd1
|
@ -169,7 +169,6 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
|
||||||
def _device_2_sign_in():
|
def _device_2_sign_in():
|
||||||
self.home_2.just_fyi("Device 2 sign in, user name is " + self.username_2)
|
self.home_2.just_fyi("Device 2 sign in, user name is " + self.username_2)
|
||||||
self.home_2.reopen_app(sign_in=False)
|
self.home_2.reopen_app(sign_in=False)
|
||||||
self.device_2.show_profiles_button.wait_and_click()
|
|
||||||
self.device_2.sign_in(user_name=self.username_2)
|
self.device_2.sign_in(user_name=self.username_2)
|
||||||
|
|
||||||
self.loop.run_until_complete(run_in_parallel(((_device_1_creates_user, {}),
|
self.loop.run_until_complete(run_in_parallel(((_device_1_creates_user, {}),
|
||||||
|
|
|
@ -225,7 +225,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
|
|
||||||
self.home.just_fyi("Check that can remove user from logged out state")
|
self.home.just_fyi("Check that can remove user from logged out state")
|
||||||
self.home.reopen_app(sign_in=False)
|
self.home.reopen_app(sign_in=False)
|
||||||
user_card = self.sign_in.get_user_profile_by_name(username=self.username)
|
user_card = self.sign_in.get_user_profile_by_name(username=recover_user_name)
|
||||||
user_card.open_user_options()
|
user_card.open_user_options()
|
||||||
self.sign_in.remove_profile_button.click()
|
self.sign_in.remove_profile_button.click()
|
||||||
if not self.sign_in.element_by_translation_id("remove-profile-confirm-message").is_element_displayed(30):
|
if not self.sign_in.element_by_translation_id("remove-profile-confirm-message").is_element_displayed(30):
|
||||||
|
@ -234,7 +234,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
|
|
||||||
self.home.just_fyi("Check that removed user is not shown in the list anymore")
|
self.home.just_fyi("Check that removed user is not shown in the list anymore")
|
||||||
self.home.reopen_app(sign_in=False)
|
self.home.reopen_app(sign_in=False)
|
||||||
if self.sign_in.element_by_text(self.username).is_element_displayed():
|
if self.sign_in.element_by_text(recover_user_name).is_element_displayed():
|
||||||
self.errors.append("Removed user is re-appeared after relogin!")
|
self.errors.append("Removed user is re-appeared after relogin!")
|
||||||
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
@ -243,6 +243,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
def test_community_discovery(self):
|
def test_community_discovery(self):
|
||||||
try:
|
try:
|
||||||
# workaround for case if a user is logged out in the previous test
|
# workaround for case if a user is logged out in the previous test
|
||||||
|
self.sign_in.explore_new_status_button.click_if_shown()
|
||||||
self.sign_in.sign_in(user_name=self.username)
|
self.sign_in.sign_in(user_name=self.username)
|
||||||
except NoSuchElementException:
|
except NoSuchElementException:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -164,6 +164,7 @@ class TestFallbackMultipleDevice(MultipleSharedDeviceTestCase):
|
||||||
self.sign_in_2.reopen_app(sign_in=False)
|
self.sign_in_2.reopen_app(sign_in=False)
|
||||||
|
|
||||||
self.sign_in_2.just_fyi("Device 2: try syncing profile")
|
self.sign_in_2.just_fyi("Device 2: try syncing profile")
|
||||||
|
self.sign_in_2.explore_new_status_button.click_if_shown()
|
||||||
self.sign_in_2.sync_profile(sync_code=self.sync_code, first_user=False)
|
self.sign_in_2.sync_profile(sync_code=self.sync_code, first_user=False)
|
||||||
self.sign_in_2.progress_screen_title.wait_for_element()
|
self.sign_in_2.progress_screen_title.wait_for_element()
|
||||||
assert self.sign_in_2.progress_screen_title.text == "Oops, something’s wrong"
|
assert self.sign_in_2.progress_screen_title.text == "Oops, something’s wrong"
|
||||||
|
|
|
@ -290,7 +290,6 @@ class SignInView(BaseView):
|
||||||
self.log_in_button.click()
|
self.log_in_button.click()
|
||||||
self.not_now_button.click()
|
self.not_now_button.click()
|
||||||
else:
|
else:
|
||||||
self.show_profiles_button.wait_and_click()
|
|
||||||
self.plus_profiles_button.click()
|
self.plus_profiles_button.click()
|
||||||
self.sync_or_recover_new_profile_button.click()
|
self.sync_or_recover_new_profile_button.click()
|
||||||
self.scan_sync_code_button.click()
|
self.scan_sync_code_button.click()
|
||||||
|
|
Loading…
Reference in New Issue