diff --git a/test/e2e/gui/components/activity_center.py b/test/e2e/gui/components/activity_center.py index a25f39eaad0..6f3af619d59 100644 --- a/test/e2e/gui/components/activity_center.py +++ b/test/e2e/gui/components/activity_center.py @@ -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) diff --git a/test/e2e/gui/screens/settings_messaging.py b/test/e2e/gui/screens/settings_messaging.py index 0acc86bc186..e0696984f83 100644 --- a/test/e2e/gui/screens/settings_messaging.py +++ b/test/e2e/gui/screens/settings_messaging.py @@ -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)