Skip to content

Commit

Permalink
Added waitFor on document name in functional test #3034
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Nov 17, 2023
1 parent 0625c89 commit 9c03918
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ class ProjectIndexSpec extends StubbedCasSpec {
waitFor 10, {hasBeenReloaded()}
at ProjectIndex // Do another at check or the next call to "hasBeenReloaded" will return regardless of whether the page has been reloaded again.

waitFor {admin.documents.documentSummaryList().size() == 2}
admin.documents.documentSummaryList().size() == 2
admin.documents.documentSummaryList()[1].name == 'test 2'
waitFor {
admin.documents.documentSummaryList().size() == 2
admin.documents.documentSummaryList()[1].name == 'test 2'
}

when:
admin.documents.documentSummaryList()[1].deleteButton.click()
Expand Down

0 comments on commit 9c03918

Please sign in to comment.