Skip to content

Commit 5abd557

Browse files
committed
test: add more waitFor
1 parent dc0bac4 commit 5abd557

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ jobs:
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]') }}

plugin-acl/examples/functional-test-app/src/integration-test/groovy/test/AdminFunctionalSpec.groovy

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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)

plugin-acl/examples/functional-test-app/src/integration-test/groovy/test/User1FunctionalSpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)