Update e2e to check ther is no blocked user in mentions

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2021-05-28 18:59:18 +03:00
parent 1bdbf3e403
commit 4cd6ada534
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 13 additions and 2 deletions

View File

@ -1068,6 +1068,17 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
chat_1.search_user_in_mention_suggestion_list(sender['username']).is_element_displayed()):
self.errors.append('ENS-owner user is not available in mention suggestion list of Group chat')
device_1.just_fyi('Check there is no blocked user in mentions Group/Public chat ')
home_1.home_button.click()
public_1 = home_1.join_public_chat(chat_name)
public_1.chat_element_by_text(message).member_photo.click()
public_1.block_contact()
public_1.chat_message_input.send_keys('@')
if (chat_1.search_user_in_mention_suggestion_list(ens_nickname_value).is_element_displayed() or
chat_1.search_user_in_mention_suggestion_list(sender['username']).is_element_displayed()):
self.errors.append('Blcoked user is available in mention suggestion list')
self.errors.verify_no_errors()
@marks.testrail_id(695771)

View File

@ -53,7 +53,7 @@ class TestBrowsing(SingleDeviceTestCase):
def test_open_blocked_secure_not_secure_inlalid_offline_urls(self):
home = SignInView(self.driver).create_user()
dapp = home.dapp_tab_button.click()
for url in ('metamask.site', 'https://www.cryptokitties.domainname'):
for url in ('metamask.site', 'cryptokitties.domainname'):
dapp.just_fyi('Checking blocked website %s' % url)
dapp_detail = dapp.open_url(url)
dapp_detail.element_by_translation_id('browsing-site-blocked-title')
@ -61,7 +61,7 @@ class TestBrowsing(SingleDeviceTestCase):
self.errors.append("Refresh button is present in blocked site")
dapp_detail.go_back_button.click()
dapp_detail.open_tabs_button.click()
dapp.element_by_text("Browser").click()
dapp.element_by_text_part(url[:8]).click()
dapp_detail.continue_anyway_button.click()
if dapp_detail.element_by_text('This site is blocked').is_element_displayed():
self.errors.append("Failed to open Dapp after 'Continue anyway' tapped for %s" % url)