removed show_ens_in_chats toggle from e2e
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
5f28dc0a52
commit
8578c317d6
|
@ -571,7 +571,6 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
|
|
||||||
home_view.just_fyi('check view in chat settings ENS from other domain: %s after set new primary ENS' % ens_not_stateofus)
|
home_view.just_fyi('check view in chat settings ENS from other domain: %s after set new primary ENS' % ens_not_stateofus)
|
||||||
dapp_view.set_primary_ens_username(ens_user['ens_another_domain']).click()
|
dapp_view.set_primary_ens_username(ens_user['ens_another_domain']).click()
|
||||||
profile_view.show_ens_name_in_chats.click()
|
|
||||||
if profile_view.username_in_ens_chat_settings_text.text != '@' + ens_not_stateofus:
|
if profile_view.username_in_ens_chat_settings_text.text != '@' + ens_not_stateofus:
|
||||||
self.errors.append('ENS username %s is not shown in ENS username Chat Settings after enabling' % ens_not_stateofus)
|
self.errors.append('ENS username %s is not shown in ENS username Chat Settings after enabling' % ens_not_stateofus)
|
||||||
|
|
||||||
|
@ -895,8 +894,6 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
sign_in_1.driver.fail("No %s is shown" % expected_text)
|
sign_in_1.driver.fail("No %s is shown" % expected_text)
|
||||||
dapp_view_1.check_ens_name.click_until_presence_of_element(dapp_view_1.element_by_text('Ok, got it'))
|
dapp_view_1.check_ens_name.click_until_presence_of_element(dapp_view_1.element_by_text('Ok, got it'))
|
||||||
dapp_view_1.element_by_text('Ok, got it').click()
|
dapp_view_1.element_by_text('Ok, got it').click()
|
||||||
if profile_1.username_in_ens_chat_settings_text.text != user_1['username']:
|
|
||||||
self.errors.append('Default username is not shown in ENS usernames')
|
|
||||||
|
|
||||||
home_1.just_fyi('check ENS name wallet address and public key')
|
home_1.just_fyi('check ENS name wallet address and public key')
|
||||||
profile_1.element_by_text(user_1['ens']).click()
|
profile_1.element_by_text(user_1['ens']).click()
|
||||||
|
@ -906,21 +903,13 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
dapp_view_1.get_back_to_home_view()
|
dapp_view_1.get_back_to_home_view()
|
||||||
profile_1.home_button.click()
|
profile_1.home_button.click()
|
||||||
|
|
||||||
home_2.just_fyi('joining same public chat, checking default username on message')
|
home_2.just_fyi('joining same public chat, set ENS name and check it in chat from device2')
|
||||||
chat_name = home_1.get_public_chat_name()
|
chat_name = home_1.get_public_chat_name()
|
||||||
chat_2 = home_2.join_public_chat(chat_name)
|
chat_2 = home_2.join_public_chat(chat_name)
|
||||||
chat_1 = home_1.join_public_chat(chat_name)
|
chat_1 = home_1.join_public_chat(chat_name)
|
||||||
message_text_1 = 'test message 1'
|
|
||||||
chat_1.send_message(message_text_1)
|
|
||||||
if chat_2.chat_element_by_text(message_text_1).username.text != user_1['username']:
|
|
||||||
self.errors.append('Default username is not shown in public chat')
|
|
||||||
chat_2.send_message('message from device 2')
|
|
||||||
|
|
||||||
home_1.just_fyi('set ENS name for public chat and check it from device2')
|
|
||||||
chat_1.get_back_to_home_view()
|
chat_1.get_back_to_home_view()
|
||||||
home_1.profile_button.click()
|
home_1.profile_button.click()
|
||||||
profile_1.element_by_text('Your ENS name').click()
|
profile_1.element_by_text('Your ENS name').click()
|
||||||
profile_1.show_ens_name_in_chats.click()
|
|
||||||
if profile_1.username_in_ens_chat_settings_text.text != '@' + user_1['ens']:
|
if profile_1.username_in_ens_chat_settings_text.text != '@' + user_1['ens']:
|
||||||
self.errors.append('ENS username is not shown in ENS usernames Chat Settings after enabling')
|
self.errors.append('ENS username is not shown in ENS usernames Chat Settings after enabling')
|
||||||
profile_1.back_button.click()
|
profile_1.back_button.click()
|
||||||
|
|
|
@ -521,13 +521,6 @@ class PrivacyAndSecurityButton(BaseButton):
|
||||||
super(PrivacyAndSecurityButton, self).__init__(driver)
|
super(PrivacyAndSecurityButton, self).__init__(driver)
|
||||||
self.locator = self.Locator.accessibility_id('privacy-and-security-settings-button')
|
self.locator = self.Locator.accessibility_id('privacy-and-security-settings-button')
|
||||||
|
|
||||||
|
|
||||||
class ShowENSNameInChatsToggle(BaseButton):
|
|
||||||
def __init__(self, driver):
|
|
||||||
super(ShowENSNameInChatsToggle, self).__init__(driver)
|
|
||||||
self.locator = self.Locator.xpath_selector(
|
|
||||||
"//*[@text='Show my ENS username in chats']/following-sibling::*[1][name()='android.widget.Switch'] ")
|
|
||||||
|
|
||||||
class UseMobileDataToggle(BaseButton):
|
class UseMobileDataToggle(BaseButton):
|
||||||
def __init__(self, driver):
|
def __init__(self, driver):
|
||||||
super(UseMobileDataToggle, self).__init__(driver)
|
super(UseMobileDataToggle, self).__init__(driver)
|
||||||
|
@ -632,7 +625,6 @@ class ProfileView(BaseView):
|
||||||
self.sync_all_button = SyncAllButton(self.driver)
|
self.sync_all_button = SyncAllButton(self.driver)
|
||||||
|
|
||||||
# ENS
|
# ENS
|
||||||
self.show_ens_name_in_chats = ShowENSNameInChatsToggle(self.driver)
|
|
||||||
self.username_in_ens_chat_settings_text = ENSUsernameInChatSettings(self.driver)
|
self.username_in_ens_chat_settings_text = ENSUsernameInChatSettings(self.driver)
|
||||||
self.ens_usernames_button = ENSusernames(self.driver)
|
self.ens_usernames_button = ENSusernames(self.driver)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue