You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/07/08 03:42:18 UTC

(grails-core) branch 7.0.x updated: test flakiness - Add waitFor around pageSource

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

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new fce34e9bc4 test flakiness - Add waitFor around pageSource
fce34e9bc4 is described below

commit fce34e9bc4cf3c011279e11625542510d95c6bf1
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Tue Jul 7 23:40:31 2026 -0400

    test flakiness - Add waitFor around pageSource
---
 .../src/integration-test/groovy/test/User1FunctionalSpec.groovy       | 4 ++--
 .../src/integration-test/groovy/test/User2FunctionalSpec.groovy       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User1FunctionalSpec.groovy b/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User1FunctionalSpec.groovy
index 73a67aaa3f..37f50467df 100644
--- a/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User1FunctionalSpec.groovy
+++ b/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User1FunctionalSpec.groovy
@@ -162,7 +162,7 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
 		grantPage.grantButton.click()
 
 		then:
-		pageSource.contains('Access Denied')
+		waitFor { pageSource.contains('Access Denied') }
 	}
 
 	void 'edit report 20'() {
@@ -178,6 +178,6 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
 		editPage.updateButton.click()
 
 		then:
-		pageSource.contains('Access Denied')
+		waitFor { pageSource.contains('Access Denied') }
 	}
 }
diff --git a/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User2FunctionalSpec.groovy b/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User2FunctionalSpec.groovy
index bda6c23303..fe3cbc0616 100644
--- a/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User2FunctionalSpec.groovy
+++ b/grails-test-examples/spring-security/acl/functional-test-app/src/integration-test/groovy/test/User2FunctionalSpec.groovy
@@ -89,7 +89,7 @@ class User2FunctionalSpec extends AbstractSecuritySpec {
 		grantPage.grantButton.click()
 
 		then:
-		pageSource.contains('Access Denied')
+		waitFor { pageSource.contains('Access Denied') }
 	}
 
 	void 'edit report 5'() {