chore(@e2e): change locators

This commit is contained in:
Anastasiya Semenkevich 2024-10-18 16:57:35 +03:00 committed by Anastasiya
parent b0105fc30a
commit 6e109ba858
2 changed files with 4 additions and 4 deletions

View File

@ -30,9 +30,9 @@ class ContactRequest:
def init_ui(self): def init_ui(self):
for child in walk_children(self.object): 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)) 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)) self._decline_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'objectName', '')) == 'StatusMessageHeader_DisplayName': elif str(getattr(child, 'objectName', '')) == 'StatusMessageHeader_DisplayName':
self.contact_request = str(child.text) self.contact_request = str(child.text)

View File

@ -64,9 +64,9 @@ class ContactItem:
self.icon = Image(driver.objectMap.realName(child)) self.icon = Image(driver.objectMap.realName(child))
elif str(getattr(child, 'id', '')) == 'menuButton': elif str(getattr(child, 'id', '')) == 'menuButton':
self._open_canvas_button = Button(real_name=driver.objectMap.realName(child)) 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)) 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)) self._reject_button = Button(real_name=driver.objectMap.realName(child))
elif str(getattr(child, 'id', '')) == 'statusListItemTitle': elif str(getattr(child, 'id', '')) == 'statusListItemTitle':
self.contact = str(child.text) self.contact = str(child.text)