chore(@e2e): remove emojihash property as it is not accessible anymore
This commit is contained in:
parent
dedaaa5a60
commit
60a1532087
|
@ -65,11 +65,6 @@ class ProfilePopup(BasePopup):
|
|||
chat_key = chat_key.split('#')[1]
|
||||
return chat_key
|
||||
|
||||
@property
|
||||
@allure.step('Get emoji hash image')
|
||||
def get_emoji_hash(self) -> str:
|
||||
return str(getattr(self._emoji_hash.object, 'publicKey'))
|
||||
|
||||
@property
|
||||
@allure.step('Copy chat key')
|
||||
def copy_chat_key(self) -> str:
|
||||
|
|
|
@ -133,7 +133,6 @@ class Message:
|
|||
self.reply_corner: typing.Optional[QObject] = None
|
||||
self.link_preview: typing.Optional[QObject] = None
|
||||
self.link_preview_title_object: typing.Optional[QObject] = None
|
||||
self.link_preview_emoji_hash: typing.Optional[str] = None
|
||||
self.image_message: typing.Optional[QObject] = None
|
||||
self.banner_image: typing.Optional[QObject] = None
|
||||
self.community_invitation: dict = {}
|
||||
|
@ -149,8 +148,6 @@ class Message:
|
|||
self.community_invitation['description'] = str(child.text)
|
||||
elif getattr(child, 'id', '') == 'titleLayout':
|
||||
self.link_preview_title_object = child
|
||||
elif getattr(child, 'objectName', '') == 'linkPreviewEmojiHash':
|
||||
self.link_preview_emoji_hash = str(child.publicKey)
|
||||
else:
|
||||
match getattr(child, 'id', ''):
|
||||
case 'profileImage':
|
||||
|
|
|
@ -174,9 +174,8 @@ def test_group_chat_add_contact_in_ac(multiple_instances, community_name, domain
|
|||
for message_item in message_items:
|
||||
assert chat_message_2 in message_item
|
||||
|
||||
with step(f'User {user_two.name}, get own profile link and emoji hash in online identifier'):
|
||||
with step(f'User {user_two.name}, get own profile link in online identifier'):
|
||||
profile_link = main_window.left_panel.open_online_identifier().copy_link_to_profile()
|
||||
public_key_from_emoji_hash = main_window.left_panel.open_online_identifier().open_profile_popup_from_online_identifier().get_emoji_hash
|
||||
|
||||
with step(f'User {user_two.name} paste external link'):
|
||||
message = external_link
|
||||
|
@ -258,12 +257,10 @@ def test_group_chat_add_contact_in_ac(multiple_instances, community_name, domain
|
|||
lambda: user_two.name == messages_screen.group_chat.get_link_preview_bubble_title(), 12000)
|
||||
messages_screen.group_chat.confirm_sending_message()
|
||||
|
||||
with step('Verify title and emojihash are correct for link preview of sent message'):
|
||||
with step('Verify title is correct for link preview of sent message'):
|
||||
sent_message = messages_screen.chat.messages(0)
|
||||
assert driver.waitFor(lambda: sent_message[0].get_link_preview_title() == user_two.name,
|
||||
timeout)
|
||||
assert driver.waitFor(lambda: sent_message[0].link_preview_emoji_hash == public_key_from_emoji_hash,
|
||||
timeout)
|
||||
|
||||
with step('Leave group'):
|
||||
messages_screen.group_chat.leave_group().confirm_leaving()
|
||||
|
|
|
@ -82,7 +82,7 @@ def test_generate_account_back_up_seed_sign_out(aut, main_window, user_account,
|
|||
with step('Verify emojihash and identicon ring profile screen appeared and capture the details'):
|
||||
emoji_hash_identicon_view = YourEmojihashAndIdenticonRingView().verify_emojihash_view_present()
|
||||
chat_key = emoji_hash_identicon_view.get_chat_key
|
||||
emoji_hash_public_key = emoji_hash_identicon_view.get_emoji_hash
|
||||
assert len(chat_key) == 49
|
||||
assert emoji_hash_identicon_view._identicon_ring.is_visible, f'Identicon ring is not present when it should'
|
||||
|
||||
with step('Click Start using Status'):
|
||||
|
@ -106,9 +106,10 @@ def test_generate_account_back_up_seed_sign_out(aut, main_window, user_account,
|
|||
f'Identicon ring is not present when it should'
|
||||
assert str(online_identifier.object.pubkey) is not None, \
|
||||
f'Public key is not present'
|
||||
assert str(online_identifier.object.pubkey) == emoji_hash_public_key, f'Public keys should match when they dont'
|
||||
assert chat_key in online_identifier.copy_link_to_profile(), f'Public keys should match when they dont'
|
||||
|
||||
with step('Open user profile from online identifier and check the data'):
|
||||
online_identifier = main_window.left_panel.open_online_identifier()
|
||||
profile_popup = online_identifier.open_profile_popup_from_online_identifier()
|
||||
profile_popup_user_name = profile_popup.user_name
|
||||
profile_popup_chat_key = profile_popup.copy_chat_key
|
||||
|
@ -116,16 +117,12 @@ def test_generate_account_back_up_seed_sign_out(aut, main_window, user_account,
|
|||
f'Display name in user profile is wrong, current: {profile_popup_user_name}, expected: {user_account.name}'
|
||||
assert profile_popup_chat_key == chat_key, \
|
||||
f'Chat key in user profile is wrong, current: {profile_popup_chat_key}, expected: {chat_key}'
|
||||
assert profile_popup.get_emoji_hash == emoji_hash_public_key, \
|
||||
f'Public keys should match when they dont'
|
||||
|
||||
with step('Open share profile popup and check the data'):
|
||||
share_profile_popup = profile_popup.share_profile()
|
||||
profile_link = share_profile_popup.get_profile_link()
|
||||
emoji_hash = share_profile_popup.get_emoji_hash()
|
||||
assert share_profile_popup.is_profile_qr_code_visibile
|
||||
assert chat_key in profile_link, f'Profile link is wrong {profile_link}, it does not contain correct chat key'
|
||||
assert emoji_hash == emoji_hash_public_key, f'Public keys do not match'
|
||||
share_profile_popup.close()
|
||||
|
||||
with step('Click left panel and open settings'):
|
||||
|
|
Loading…
Reference in New Issue