File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
plugin-acl/examples/functional-test-app/src/integration-test/groovy/test Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 4747 run : >
4848 ./gradlew
4949 check
50- --max-workers=1
50+ --max-workers=2
5151 --refresh-dependencies
5252 --continue
53- --no-parallel
5453 -PgebAtCheckWaiting
5554 functionalTests :
5655 if : ${{ !contains(github.event.head_commit.message, '[skip tests]') }}
Original file line number Diff line number Diff line change @@ -69,12 +69,9 @@ class AdminFunctionalSpec extends AbstractSecuritySpec {
6969 void ' view all' () {
7070 when :
7171 go(" report/show?number=$i " )
72- waitFor(10 , 1 ) { // 10 seconds, as has shown timeouts in CI
73- title == ' Show Report'
74- }
7572
7673 then :
77- pageSource. contains(" report$i " )
74+ waitFor { pageSource. contains(" report$i " ) }
7875
7976 where :
8077 i << (1 .. 100 )
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
7070 go("report/show?number=$i")
7171
7272 then:
73- pageSource.contains("report$i")
73+ waitFor { pageSource.contains("report$i") }
7474
7575 where:
7676 i << (1..67)
@@ -81,7 +81,7 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
8181 go("report/show?number=$i")
8282
8383 then:
84- pageSource.contains(' Access Denied ' )
84+ waitFor { pageSource.contains(' Access Denied ' ) }
8585
8686 where:
8787 i << (68..100)
@@ -162,7 +162,7 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
162162 grantPage.grantButton.click()
163163
164164 then:
165- pageSource.contains(' Access Denied ' )
165+ waitFor { pageSource.contains(' Access Denied ' ) }
166166 }
167167
168168 void ' edit report 20 ' () {
@@ -178,6 +178,6 @@ class User1FunctionalSpec extends AbstractSecuritySpec {
178178 editPage.updateButton.click()
179179
180180 then:
181- pageSource.contains(' Access Denied ' )
181+ waitFor { pageSource.contains(' Access Denied ' ) }
182182 }
183183}
You can’t perform that action at this time.
0 commit comments