Fix e2e tests adding custom network

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-03-22 12:03:31 +02:00
parent cfcfa01a64
commit dd6f659809
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 4 additions and 4 deletions

View File

@ -164,7 +164,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
sign_in_view.sign_in() sign_in_view.sign_in()
profile_view = sign_in_view.profile_button.click() profile_view = sign_in_view.profile_button.click()
profile_view.advanced_button.click() profile_view.advanced_button.click()
profile_view.find_text_part('CUSTOM_ROPSTEN') profile_view.find_text_part('custom_ropsten')
@marks.logcat @marks.logcat
@marks.testrail_id(5419) @marks.testrail_id(5419)
@ -258,7 +258,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
profile = home_view.profile_button.click() profile = home_view.profile_button.click()
profile.switch_network(network_name) profile.switch_network(network_name)
profile = home_view.profile_button.click() 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!') self.driver.fail('Oops! Wrong network selected!')
@marks.testrail_id(5453) @marks.testrail_id(5453)

View File

@ -43,7 +43,7 @@ class AllowButton(BaseButton):
class DenyButton(BaseButton): class DenyButton(BaseButton):
def __init__(self, driver): def __init__(self, driver):
super(DenyButton, self).__init__(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): class DeleteButton(BaseButton):
@ -171,7 +171,7 @@ class AddButton(BaseButton):
def __init__(self, driver): def __init__(self, driver):
super(AddButton, self).__init__(driver) super(AddButton, self).__init__(driver)
self.locator = self.Locator.xpath_selector( self.locator = self.Locator.xpath_selector(
"//android.widget.TextView[@text='ADD']") "//android.widget.TextView[@text='Add']")
class DoneButton(BaseButton): class DoneButton(BaseButton):