mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
31f3e62d82
* test(Wallet) Edit the default wallet account and Manage a watch-only account cases automated * test(Wallet) Manage generated and custom generated account * test(Wallet) Manage private key imported account
25 lines
915 B
Python
25 lines
915 B
Python
import allure
|
|
|
|
import configs
|
|
from .base_popup import BasePopup
|
|
from ..elements.qt.object import QObject
|
|
from ..elements.qt.text_edit import TextEdit
|
|
|
|
|
|
class EmojiPopup(BasePopup):
|
|
def __init__(self):
|
|
super(EmojiPopup, self).__init__()
|
|
self._search_text_edit = TextEdit('mainWallet_AddEditAccountPopup_AccountEmojiSearchBox')
|
|
self._emoji_item = QObject('mainWallet_AddEditAccountPopup_AccountEmoji')
|
|
|
|
@allure.step('Wait until appears {0}')
|
|
def wait_until_appears(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
|
|
self._search_text_edit.wait_until_appears(timeout_msec)
|
|
return self
|
|
|
|
@allure.step('Select emoji')
|
|
def select(self, name: str):
|
|
self._search_text_edit.text = name
|
|
self._emoji_item.real_name['objectName'] = 'statusEmoji_' + name
|
|
self._emoji_item.click()
|
|
self._search_text_edit.wait_until_hidden() |