Skip to content

Commit

Permalink
fix for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
churik committed Mar 28, 2019
1 parent 3fd4326 commit d1bac6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/appium/views/home_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def swipe_delete_button(self):
class DeleteButton(BaseButton):
def __init__(self, driver, parent_locator: str):
super(DeleteButton, self).__init__(driver)
locator_str = "/..//*[@content-desc='icon']"
locator_str = "/../..//*[@content-desc='icon']"
self.locator = self.Locator.xpath_selector(parent_locator + locator_str)

return DeleteButton(self.driver, self.locator.value)
Expand Down
2 changes: 1 addition & 1 deletion test/appium/views/profile_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class DefaultUserNameText(BaseText):
def __init__(self, driver):
super(DefaultUserNameText, self).__init__(driver)
self.locator = self.Locator.xpath_selector(
'//android.widget.ImageView[@content-desc="chat-icon"]/../../android.widget.TextView[2]')
'//android.widget.ImageView[@content-desc="chat-icon"]/../android.widget.TextView[2]')


class ShareMyProfileButton(BaseButton):
Expand Down

0 comments on commit d1bac6e

Please sign in to comment.