This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 85d6ce1e525b chore: camel-jbang - fix ConfigurationTabRenderTest after
the first row is selected (#29503)
85d6ce1e525b is described below
commit 85d6ce1e525be286ceefe1ca94f5fb490ad9e973
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 9 22:14:13 2026 +0100
chore: camel-jbang - fix ConfigurationTabRenderTest after the first row is
selected (#29503)
The mouse test from #29468 found the detail panel by its "Property Detail"
title, which it only has with no row selected. #29477 selects the first row,
so the panel has the key of that property as its title, and the test failed
on main with both merged. It finds the panel by its top border now.
Signed-off-by: Claus Ibsen <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../camel/dsl/jbang/core/commands/tui/ConfigurationTabRenderTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/ConfigurationTabRenderTest.java
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/ConfigurationTabRenderTest.java
index e579279daf72..08e2a7ff6a97 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/ConfigurationTabRenderTest.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/ConfigurationTabRenderTest.java
@@ -193,7 +193,8 @@ class ConfigurationTabRenderTest {
ConfigurationTab tab = new ConfigurationTab(ctx);
Rect area = new Rect(0, 0, 120, 30);
String rendered = TuiTestHelper.renderToString(tab, 120, 30);
- int detail =
rendered.lines().toList().indexOf(rendered.lines().filter(l ->
l.contains("Property Detail"))
+ // the detail panel is the second box: the first row is selected, so
it has its key as the title
+ int detail =
rendered.lines().toList().indexOf(rendered.lines().filter(l -> l.startsWith("╭
camel.main.name"))
.findFirst().orElseThrow());
int timeout =
rendered.lines().toList().indexOf(rendered.lines().filter(l ->
l.contains("shutdownTimeout"))
.findFirst().orElseThrow());