From 56448e73be4dbc8b2ef096314af95a0c24d7783f Mon Sep 17 00:00:00 2001 From: Ganesh Tiwari Date: Mon, 25 Dec 2023 09:24:56 -0600 Subject: [PATCH] build fix (#14) trying with headless edge --- .github/workflows/maven.yml | 2 +- .../src/test/java/gt/app/frwk/BaseSeleniumTest.java | 4 ++-- .../main-webapp/src/test/java/gt/app/frwk/SampleTest.java | 2 +- pom.xml | 6 ++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4171439..7101036 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: browser-actions/setup-chrome@v1 + - uses: browser-actions/setup-edge@v1 - name: Set up JDK 21 uses: actions/setup-java@v1 diff --git a/main-app/main-webapp/src/test/java/gt/app/frwk/BaseSeleniumTest.java b/main-app/main-webapp/src/test/java/gt/app/frwk/BaseSeleniumTest.java index 21a78c8..6def973 100644 --- a/main-app/main-webapp/src/test/java/gt/app/frwk/BaseSeleniumTest.java +++ b/main-app/main-webapp/src/test/java/gt/app/frwk/BaseSeleniumTest.java @@ -17,8 +17,8 @@ public abstract class BaseSeleniumTest { @BeforeAll public static void init() { - Configuration.headless = false; - Configuration.browser = Browsers.CHROME; + Configuration.headless = true; + Configuration.browser = Browsers.EDGE; } @BeforeEach diff --git a/main-app/main-webapp/src/test/java/gt/app/frwk/SampleTest.java b/main-app/main-webapp/src/test/java/gt/app/frwk/SampleTest.java index f401d6e..f63552d 100644 --- a/main-app/main-webapp/src/test/java/gt/app/frwk/SampleTest.java +++ b/main-app/main-webapp/src/test/java/gt/app/frwk/SampleTest.java @@ -15,7 +15,7 @@ class SampleTest { static void setup() { Configuration.baseUrl = "https://en.wikipedia.org/wiki/Main_Page"; Configuration.headless = true; - Configuration.browser = Browsers.CHROME; + Configuration.browser = Browsers.EDGE; } @Test diff --git a/pom.xml b/pom.xml index 3808625..3dbeae7 100644 --- a/pom.xml +++ b/pom.xml @@ -38,11 +38,9 @@ 2.3.0 1.6.0.Beta1 - 7.0.1 - - 4.13.0 + 7.0.4 - 32.1.3-jre + 33.0.0-jre 1.9.0 1.2.1 1.19.3