Skip to content

Commit 1310d00

Browse files
committed
add waitFor for page checks
1 parent 5a22b6b commit 1310d00

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

plugin-ui/examples/extended/src/integration-test/groovy/page/register/ForgotPasswordPage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import page.AbstractSecurityPage
2525
class ForgotPasswordPage extends AbstractSecurityPage {
2626

2727
static url = 'register/forgotPassword'
28-
static at = { title == 'Forgot Password' }
28+
static at = { waitFor { title == 'Forgot Password' } }
2929
static content = {
3030
form { $('forgotPasswordForm') }
3131
username { $(name: 'username').module(TextInput) }

plugin-ui/examples/extended/src/integration-test/groovy/page/register/SecurityQuestionsPage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import page.AbstractSecurityPage
2525
class SecurityQuestionsPage extends AbstractSecurityPage {
2626

2727
static url = 'register/securityQuestions'
28-
static at = { title == 'Security Questions' }
28+
static at = { waitFor { title == 'Security Questions' } }
2929
static content = {
3030
form { $('securityQuestionsForm') }
3131
question1 { $('#myAnswer1').module(TextInput) }

plugin-ui/examples/extended/src/integration-test/groovy/page/user/UserSearchPage.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class UserSearchPage extends SearchPage {
2727

2828
static url = 'user/search'
2929
static typeName = { 'User' }
30+
static at = { waitFor { title == 'User Search' } }
3031
static content = {
3132
username { $('#username').module(TextInput) }
3233
enabled { $(name: 'enabled').module(RadioButtons) }

plugin-ui/examples/simple/src/integration-test/groovy/page/register/ForgotPasswordPage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import page.AbstractSecurityPage
2525
class ForgotPasswordPage extends AbstractSecurityPage {
2626

2727
static url = 'register/forgotPassword'
28-
static at = { title == 'Forgot Password' }
28+
static at = { waitFor { title == 'Forgot Password' } }
2929
static content = {
3030
form { $('forgotPasswordForm') }
3131
username { $(name: 'username').module(TextInput) }

plugin-ui/examples/simple/src/integration-test/groovy/page/requestmap/RequestmapSearchPage.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class RequestmapSearchPage extends SearchPage {
2626

2727
static url = 'requestmap/search'
2828
static typeName = { 'Requestmap' }
29+
static at = { waitFor { title == 'Requestmap Search' } }
2930
static content = {
3031
configAttribute { $(name: 'configAttribute').module(TextInput) }
3132
urlPattern { $(name: 'url').module(TextInput) }

0 commit comments

Comments
 (0)