mirror of
https://github.com/status-im/status-react.git
synced 2025-01-22 08:49:22 +00:00
Update mailserver locator
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
ecc41bebe0
commit
166bdbf798
@ -38,6 +38,7 @@ class TestDApps(SingleDeviceTestCase):
|
|||||||
|
|
||||||
@marks.testrail_id(6323)
|
@marks.testrail_id(6323)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@marks.flaky
|
||||||
def test_resolve_ipns_name(self):
|
def test_resolve_ipns_name(self):
|
||||||
user = basic_user
|
user = basic_user
|
||||||
ipns_url = 'uniswap.eth'
|
ipns_url = 'uniswap.eth'
|
||||||
|
@ -48,9 +48,9 @@ class BaseElement(object):
|
|||||||
return cls(MobileBy.XPATH, xpath_expression)
|
return cls(MobileBy.XPATH, xpath_expression)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def translation_id_selector(cls, id):
|
def translation_id_selector(cls, id, suffix=''):
|
||||||
text = transl[id]
|
text = transl[id]
|
||||||
return BaseElement.Locator.xpath_selector('//*[@text="' + text + '"]')
|
return BaseElement.Locator.xpath_selector('//*[@text="' + text + '"]' + suffix)
|
||||||
|
|
||||||
def __str__(self, *args, **kwargs):
|
def __str__(self, *args, **kwargs):
|
||||||
return "%s:%s" % (self.by, self.value)
|
return "%s:%s" % (self.by, self.value)
|
||||||
|
@ -404,8 +404,8 @@ class MailServerAddressInput(BaseEditBox):
|
|||||||
|
|
||||||
def __init__(self, driver):
|
def __init__(self, driver):
|
||||||
super(MailServerAddressInput, self).__init__(driver)
|
super(MailServerAddressInput, self).__init__(driver)
|
||||||
self.locator = self.Locator.xpath_selector(
|
self.locator = self.Locator.translation_id_selector('mailserver-address',
|
||||||
"//*[@text='Mailserver address']/following-sibling::*[1]/android.widget.EditText")
|
suffix='/following-sibling::*[1]/android.widget.EditText')
|
||||||
|
|
||||||
|
|
||||||
class MailServerAutoSelectionButton(BaseButton):
|
class MailServerAutoSelectionButton(BaseButton):
|
||||||
@ -414,7 +414,6 @@ class MailServerAutoSelectionButton(BaseButton):
|
|||||||
self.locator = self.Locator.xpath_selector("//*[@text='Automatic selection']/following-sibling::*[1]")
|
self.locator = self.Locator.xpath_selector("//*[@text='Automatic selection']/following-sibling::*[1]")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MailServerElement(BaseButton):
|
class MailServerElement(BaseButton):
|
||||||
|
|
||||||
def __init__(self, driver, server_name):
|
def __init__(self, driver, server_name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user