e2e: skipping waku tests and fixes (#21471)

This commit is contained in:
Tetiana Churikova 2024-11-04 16:33:03 +01:00 committed by GitHub
parent 9f1eb60e21
commit f6dc9d1ad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 9 deletions

View File

@ -239,6 +239,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
@pytest.mark.xdist_group(name="new_four_2")
@marks.nightly
@marks.xfail(run=False, reason="Skipped due to waku issue on staging fleet")
class TestActivityMultipleDevicePR(MultipleSharedDeviceTestCase):
def prepare_devices(self):
@ -379,6 +380,7 @@ class TestActivityMultipleDevicePR(MultipleSharedDeviceTestCase):
@pytest.mark.xdist_group(name="new_six_2")
@marks.nightly
@marks.xfail(run=False, reason="Skipped due to waku issue on staging fleet")
class TestActivityMultipleDevicePRTwo(MultipleSharedDeviceTestCase):
def prepare_devices(self):

View File

@ -104,6 +104,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
self.errors.verify_no_errors()
@marks.testrail_id(702782)
# TODO: too complex, should be splitted
def test_1_1_chat_emoji_send_reply_and_open_link(self):
self.chat_1.navigate_back_to_chat_view()
self.chat_2.navigate_back_to_chat_view()
@ -146,7 +147,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
reply = 'reply to link'
url_message = 'Test with link: https://status.im/ here should be nothing unusual.'
self.chat_1.send_message(url_message)
self.chat_2.chat_element_by_text(url_message).wait_for_element(20)
self.chat_2.chat_element_by_text(url_message).wait_for_element(60)
# self.chat_2.chat_element_by_text(url_message).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8)
self.chat_2.quote_message(url_message)
self.chat_2.send_message(reply)

View File

@ -155,7 +155,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
@marks.testrail_id(703133)
@marks.smoke
def test_restore_multiaccount_with_waku_backup_remove_switch(self):
def test_restore_multiaccount_with_waku_backup_remove_profile_switch(self):
self.home.reopen_app(sign_in=False)
self.home.just_fyi("Restore user with predefined communities and contacts")
self.sign_in.recover_access(passphrase=waku_user.seed, second_user=True)
@ -237,6 +237,9 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
self.home.just_fyi("Check that removed user is not shown in the list anymore")
self.home.reopen_app(sign_in=False)
if self.sign_in.terms_and_privacy_checkbox.is_element_displayed(5):
self.sign_in.terms_and_privacy_checkbox.click()
self.sign_in.explore_new_status_button.click_until_presence_of_element(self.sign_in.show_profiles_button)
self.sign_in.show_profiles_button.wait_and_click()
if self.sign_in.element_by_text(self.username).is_element_displayed():
self.errors.append("Removed user is re-appeared after relogin!")
@ -271,7 +274,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
self.home.just_fyi("Check %s community tags in the Discover communities screen" % community_name)
card = self.home.get_discover_community_card_by_name(community_name=community_name)
try:
card.wait_for_visibility_of_element(30)
card.wait_for_visibility_of_element(90)
# if community_name == 'Status':
# card.swipe_to_web_element()
missing_tags = list()
@ -305,6 +308,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
@pytest.mark.xdist_group(name="new_three_2")
@marks.nightly
@marks.xfail(run=False, reason="Skipped due to waku issue on staging fleet")
class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
def prepare_devices(self):
@ -835,6 +839,7 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
@pytest.mark.xdist_group(name="new_five_2")
@marks.nightly
@marks.xfail(run=False, reason="Skipped due to waku issue on staging fleet")
class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase):
def prepare_devices(self):

View File

@ -75,6 +75,7 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
self.errors.verify_no_errors()
@marks.testrail_id(739307)
@marks.xfail(run=False, reason="Skipped due to waku issue on staging fleet")
def test_deep_links_communities(self):
closed_community_name, snt_community_name = "closed community", "SNT community"
self.home.navigate_back_to_home_view()

View File

@ -151,6 +151,7 @@ class SignInView(BaseView):
self.terms_and_privacy_checkbox = Button(
self.driver, xpath="//*[@content-desc='terms-privacy-checkbox-container']/*[@content-desc='checkbox-off']")
self.explore_new_status_button = Button(self.driver, accessibility_id="explore-new-status")
self.create_profile_button = Button(self.driver, accessibility_id='new-to-status-button')
self.not_now_button = Button(self.driver, xpath="//*[@text='Not now']")
self.sync_or_recover_profile_button = Button(self.driver, accessibility_id='already-use-status-button')
@ -269,17 +270,14 @@ class SignInView(BaseView):
# self.identifiers_button.wait_and_click(30)
if enable_notifications:
self.enable_notifications_button.wait_and_click()
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
for _ in range(3):
self.allow_button.click_if_shown(sec=10)
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
self.enable_notifications_button.click_if_shown()
if self.chats_tab.is_element_displayed():
break
else:
self.maybe_later_button.wait_and_click()
for _ in range(3):
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
self.maybe_later_button.click_if_shown()
if self.chats_tab.is_element_displayed():
break
@ -309,17 +307,14 @@ class SignInView(BaseView):
self.set_password(password)
if enable_notifications:
self.enable_notifications_button.wait_and_click()
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
for _ in range(3):
self.allow_button.click_if_shown(sec=10)
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
self.enable_notifications_button.click_if_shown()
if self.chats_tab.is_element_displayed():
break
else:
self.maybe_later_button.wait_and_click()
for _ in range(3):
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
self.maybe_later_button.click_if_shown()
if self.chats_tab.is_element_displayed():
break