From 6a568861a9eebc0415a6b861638c3fa62d56a62f Mon Sep 17 00:00:00 2001 From: Pavel Novotny Date: Mon, 15 Dec 2025 13:01:55 +0100 Subject: [PATCH 1/2] template editor: update navigation bar locator Locator for the template nagigation bar (Editor/Changes/Preview) has slightly changed. Related to change https://github.com/theforeman/foreman/pull/10728 --- airgun/views/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airgun/views/common.py b/airgun/views/common.py index 826fb350d..54a97d336 100644 --- a/airgun/views/common.py +++ b/airgun/views/common.py @@ -575,7 +575,7 @@ class TemplateEditor(View): """ ROOT = ".//div[@id='editor-container']" - rendering_options = ItemsList(".//div[contains(@class,'navbar-editor')]/ul") + rendering_options = ItemsList(".//div[contains(@class,'navbar-editor')]/ul") # For PRT only import_template = Button(id='import-btn') fullscreen = Text(locator=".//button[@id='fullscreen-btn']") fullscreen_close = Text( From b736401d1d8d3c05bec4899f21c7219db4e86e03 Mon Sep 17 00:00:00 2001 From: Pavel Novotny Date: Tue, 14 Jul 2026 16:25:50 +0200 Subject: [PATCH 2/2] update tabs locator in TemplateEditor --- airgun/views/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airgun/views/common.py b/airgun/views/common.py index 54a97d336..cdbc3cfb1 100644 --- a/airgun/views/common.py +++ b/airgun/views/common.py @@ -575,7 +575,7 @@ class TemplateEditor(View): """ ROOT = ".//div[@id='editor-container']" - rendering_options = ItemsList(".//div[contains(@class,'navbar-editor')]/ul") # For PRT only + rendering_options = ItemsList(".//div[@data-ouia-component-id='editor-navbar-tabs']/ul") import_template = Button(id='import-btn') fullscreen = Text(locator=".//button[@id='fullscreen-btn']") fullscreen_close = Text(