Fix e2e tests adding custom network
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
cfcfa01a64
commit
dd6f659809
|
@ -164,7 +164,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||
sign_in_view.sign_in()
|
||||
profile_view = sign_in_view.profile_button.click()
|
||||
profile_view.advanced_button.click()
|
||||
profile_view.find_text_part('CUSTOM_ROPSTEN')
|
||||
profile_view.find_text_part('custom_ropsten')
|
||||
|
||||
@marks.logcat
|
||||
@marks.testrail_id(5419)
|
||||
|
@ -258,7 +258,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||
profile = home_view.profile_button.click()
|
||||
profile.switch_network(network_name)
|
||||
profile = home_view.profile_button.click()
|
||||
if not profile.current_active_network == network_name.upper():
|
||||
if not profile.current_active_network == network_name:
|
||||
self.driver.fail('Oops! Wrong network selected!')
|
||||
|
||||
@marks.testrail_id(5453)
|
||||
|
|
|
@ -43,7 +43,7 @@ class AllowButton(BaseButton):
|
|||
class DenyButton(BaseButton):
|
||||
def __init__(self, driver):
|
||||
super(DenyButton, self).__init__(driver)
|
||||
self.locator = self.Locator.xpath_selector("//*[@text='Deny']")
|
||||
self.locator = self.Locator.xpath_selector("//*[@text='Deny' or @text='DENY']")
|
||||
|
||||
|
||||
class DeleteButton(BaseButton):
|
||||
|
@ -171,7 +171,7 @@ class AddButton(BaseButton):
|
|||
def __init__(self, driver):
|
||||
super(AddButton, self).__init__(driver)
|
||||
self.locator = self.Locator.xpath_selector(
|
||||
"//android.widget.TextView[@text='ADD']")
|
||||
"//android.widget.TextView[@text='Add']")
|
||||
|
||||
|
||||
class DoneButton(BaseButton):
|
||||
|
|
Loading…
Reference in New Issue