Skip to content

Commit

Permalink
chore(@e2e): change locators
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig committed Oct 18, 2024
1 parent b0105fc commit 6e109ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/e2e/gui/components/activity_center.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def __repr__(self):

def init_ui(self):
for child in walk_children(self.object):
if str(getattr(child, 'objectName', '')) == 'checkmark-circle-icon':
if str(getattr(child, 'objectName', '')) == 'acceptBtn':
self._accept_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'objectName', '')) == 'close-circle-icon':
elif str(getattr(child, 'objectName', '')) == 'declineBtn':
self._decline_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'objectName', '')) == 'StatusMessageHeader_DisplayName':
self.contact_request = str(child.text)
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/gui/screens/settings_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def init_ui(self):
self.icon = Image(driver.objectMap.realName(child))
elif str(getattr(child, 'id', '')) == 'menuButton':
self._open_canvas_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'objectName', '')) == 'checkmark-circle-icon':
elif str(getattr(child, 'objectName', '')) == 'acceptBtn':
self._accept_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'objectName', '')) == 'close-circle-icon':
elif str(getattr(child, 'objectName', '')) == 'declineBtn':
self._reject_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'id', '')) == 'statusListItemTitle':
self.contact = str(child.text)
Expand Down

0 comments on commit 6e109ba

Please sign in to comment.