Skip to content

Commit f6af480

Browse files
committed
fix: increase waitFor timeout in login/logout page objects for slow CI
The default 5-second waitFor timeout was insufficient on JDK 25 CI runners, causing UserControllerSpec to fail when the login redirect had not completed before the test navigated to a secured page. Assisted-by: Claude Code <Claude@Claude.ai>
1 parent 4e643d2 commit f6af480

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grails-test-examples/scaffolding/src/integrationTest/groovy/com/example/pages/LoginPage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ class LoginPage extends Page {
3636
this.username = username
3737
this.password = password
3838
loginButton.click()
39-
waitFor { title != pageTitle }
39+
waitFor(10) { title != pageTitle }
4040
}
4141
}

grails-test-examples/scaffolding/src/integrationTest/groovy/com/example/pages/LogoutPage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ class LogoutPage extends Page {
3232

3333
void logout() {
3434
logoutButton.click()
35-
waitFor { title != pageTitle }
35+
waitFor(10) { title != pageTitle }
3636
}
3737
}

0 commit comments

Comments
 (0)