From f9e69458a16e1d54485f735c6326e0aa5c55490e Mon Sep 17 00:00:00 2001 From: grails-build Date: Thu, 12 Dec 2024 22:33:26 +0000 Subject: [PATCH 1/4] [skip ci] Release v4.1.0 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 453e38f..6aec884 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -projectVersion=4.1.0-SNAPSHOT +projectVersion=4.1.0 grailsVersion=6.2.2 gebVersion=6.0 From 02efb4c4f29e202c0babd9a1fd6720a9dd16185a Mon Sep 17 00:00:00 2001 From: grails-build Date: Thu, 12 Dec 2024 22:36:28 +0000 Subject: [PATCH 2/4] chore: Bump version to 4.1.1-SNAPSHOT --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 6aec884..b99186c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -projectVersion=4.1.0 +projectVersion=4.1.1-SNAPSHOT grailsVersion=6.2.2 gebVersion=6.0 From 3986649f129c2863e9596696d6d6664ba12ceaef Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Mon, 16 Dec 2024 19:43:01 -0500 Subject: [PATCH 3/4] fix setup() methods being called --- .../grails/plugin/geb/GebRecordingTestListener.groovy | 3 --- .../grails/plugin/geb/GrailsContainerGebExtension.groovy | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy b/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy index a4bbf05..2586d65 100644 --- a/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy +++ b/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy @@ -19,9 +19,6 @@ import groovy.transform.CompileStatic import org.spockframework.runtime.AbstractRunListener import org.spockframework.runtime.model.ErrorInfo import org.spockframework.runtime.model.IterationInfo -import org.spockframework.runtime.model.SpecInfo - -import java.time.LocalDateTime /** * A test listener that reports the test result to {@link org.testcontainers.containers.BrowserWebDriverContainer} so diff --git a/src/testFixtures/groovy/grails/plugin/geb/GrailsContainerGebExtension.groovy b/src/testFixtures/groovy/grails/plugin/geb/GrailsContainerGebExtension.groovy index 3a60fe1..8538d23 100644 --- a/src/testFixtures/groovy/grails/plugin/geb/GrailsContainerGebExtension.groovy +++ b/src/testFixtures/groovy/grails/plugin/geb/GrailsContainerGebExtension.groovy @@ -86,9 +86,11 @@ class GrailsContainerGebExtension implements IGlobalExtension { invocation.proceed() } - spec.addSetupInterceptor { + spec.addSetupInterceptor { invocation -> // Grails will be initialized by this point, so setup the browser url correctly - holder.setupBrowserUrl(it) + holder.setupBrowserUrl(invocation) + + invocation.proceed() } spec.addInterceptor { invocation -> From 68394d91cf8ff44f73220d92e5d92bc540f68d9c Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Thu, 19 Dec 2024 16:36:41 +0100 Subject: [PATCH 4/4] fix: add `selenium-support` (#110) * fix: add `selenium-support` Fixes gh-109 --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 5335c57..02d276c 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,8 @@ dependencies { testFixturesApi "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion" testFixturesApi "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion" + testFixturesImplementation "org.seleniumhq.selenium:selenium-support:$seleniumVersion" + testFixturesCompileOnly "org.slf4j:slf4j-nop:$slf4jVersion" // Remove warning about missing slf4j binding during compilation documentation "org.codehaus.groovy:groovy:$GroovySystem.version"