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

benw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 45676f13456b78cca2e4d1691e5100d41f4a322d
Author: Ben Weidig <[email protected]>
AuthorDate: Tue Mar 17 17:11:23 2026 +0100

    TAP5-2819: Run headless on CI
---
 .../src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java 
b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
index 8183d0df6..129dc8d62 100644
--- 
a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
+++ 
b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
@@ -227,9 +227,13 @@ public abstract class SeleniumTestCase extends Assert 
implements Selenium
         DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
 
         FirefoxOptions options = new FirefoxOptions(desiredCapabilities); 
-        // options.setHeadless(true);
         // options.setLogLevel(FirefoxDriverLogLevel.TRACE);
-        
+
+        // TAP5-2819: Run headless on CI
+        if (Boolean.parseBoolean(System.getProperty("ci", "false"))) {
+            options.addArguments("-headless");
+        }
+
         if (ffProfileTemplate.isDirectory() && ffProfileTemplate.exists())
         {
             LOGGER.info("Loading Firefox profile from: {}", ffProfileTemplate);

Reply via email to