This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 78c6ef8950 NO-ISSUE Remove redundant console node prefixes
78c6ef8950 is described below

commit 78c6ef8950716ddd4105c5fef503fa0ad876e587
Author: Domenico Francesco Bruscino <[email protected]>
AuthorDate: Thu Mar 12 07:37:39 2026 +0100

    NO-ISSUE Remove redundant console node prefixes
---
 .../activemq/artemis/tests/smoke/console/PageConstants.java    | 10 +---------
 .../artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java |  3 +--
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git 
a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/PageConstants.java
 
b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/PageConstants.java
index eea3b5efd8..63dc4a4dcd 100644
--- 
a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/PageConstants.java
+++ 
b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/PageConstants.java
@@ -42,17 +42,12 @@ public class PageConstants {
    public static final String TABLE = "table";
 
    public static final String BUTTON = "button";
+
    //column headers
    public static final String COLUMN_MESSAGE_ID = "Message ID";
 
    public static final String COLUMN_ORIGINAL_QUEUE = "Original Queue";
 
-   // Node prefixes
-   public static final String BROKER_NODE = "Broker0.0.0.0";
-
-   public static final String ADDRESS_NODE_SUFFIX = "folder-addresses-folder-";
-
-   public static final String QUEUE_NODE_SUFFIX = 
"queues-folder-anycast-folder-DLQ";
    // Tag Locators
    public static final By STATUS_TAB_LOCATOR = 
By.xpath("//span[contains(text(),'Status')]");
 
@@ -80,7 +75,6 @@ public class PageConstants {
    public static final By BRAND_LOCATOR = 
By.xpath("//img[@class='pf-v5-c-brand']");
 
    //Component Locators
-
    public static final  By USERNAME_LOCATOR = By.id("pf-login-username-id");
 
    public static final  By PASSWORD_LOCATOR = By.id("pf-login-password-id");
@@ -137,8 +131,6 @@ public class PageConstants {
 
    public static final By NODE_TITLE_LOCATOR = 
By.cssSelector("h1.pf-m-lg[data-ouia-component-type='PF5/Title']");
 
-   public static final By BROKER_NODE_LOCATOR = By.id(BROKER_NODE);
-
    public static final By BROKER_BUTTON_LOCATOR = 
By.xpath("//button[contains(text(), 'Broker 0.0.0.0')]");
 
    public static final By ALERT_LOCATOR = 
By.xpath("//ul/li/div[contains(@class, 'pf-v5-c-alert')]");
diff --git 
a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java
 
b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java
index 37872b86c2..89a64f2d9e 100644
--- 
a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java
+++ 
b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/pages/jmx/ArtemisTreePage.java
@@ -20,7 +20,6 @@ import 
org.apache.activemq.artemis.tests.smoke.console.pages.ConsolePage;
 import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.WebElement;
 
-import static 
org.apache.activemq.artemis.tests.smoke.console.PageConstants.BROKER_NODE_LOCATOR;
 import static 
org.apache.activemq.artemis.tests.smoke.console.PageConstants.BROKER_BUTTON_LOCATOR;
 import static 
org.apache.activemq.artemis.tests.smoke.console.PageConstants.COLLAPSE_BUTTON;
 import static 
org.apache.activemq.artemis.tests.smoke.console.PageConstants.EXPAND_BUTTON;
@@ -53,7 +52,7 @@ public class ArtemisTreePage extends ConsolePage {
    }
 
    public AttributesPage selectBrokerNode() {
-      WebElement element = 
driver.findElement(BROKER_NODE_LOCATOR).findElement(BROKER_BUTTON_LOCATOR);
+      WebElement element = driver.findElement(BROKER_BUTTON_LOCATOR);
       element.click();
       return new AttributesPage(driver);
    }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to