From 5ea271e136461e9fe0aea60354560ff1446e9dd5 Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Fri, 17 May 2024 15:13:33 +0700 Subject: [PATCH] chore: reworked method for text edit to check how it will work on ci --- test/e2e/gui/components/settings/rename_keypair_popup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/gui/components/settings/rename_keypair_popup.py b/test/e2e/gui/components/settings/rename_keypair_popup.py index 7bab879294..f869576cc3 100644 --- a/test/e2e/gui/components/settings/rename_keypair_popup.py +++ b/test/e2e/gui/components/settings/rename_keypair_popup.py @@ -2,6 +2,7 @@ import allure import configs import driver +from driver.objects_access import walk_children from gui.components.base_popup import BasePopup from gui.elements.button import Button from gui.elements.text_edit import TextEdit @@ -22,6 +23,9 @@ class RenameKeypairPopup(BasePopup): @allure.step('Rename keypair') def rename_keypair(self, name): - self._rename_text_edit.text = name + for child in walk_children(self.object): + if getattr(child, 'id', '') == 'edit': + text_edit = TextEdit(real_name=driver.objectMap.realName(child)) + text_edit.text = name self._save_changes_button.click() self.wait_until_hidden()