Details
Description
We currently provide a waitFor() method that accepts a closure and executes the closure at a given interval for a number of seconds, waiting for it to pass (i.e. return a true value and not throw an exception.
The problem with this is that if the closure doesn't pass we don't have any information on why in the exception. What would be nice is to turn each "statement" into an implicit assertion (i.e. add "assert" to the statement) so we can get nice output.
Relavant Geb feature: http://www.gebish.org/manual/current/javascript.html#waiting
Issue Links
- relates to
-
GEB-168
Page at closures' contents shoud be also asserted the same way as waitFor closures are.
-
Activity
Luke Daley
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 0.7.0 [ 17291 ] |
Marcin Erdmann
made changes -
| Assignee | Luke Daley [ ldaley ] | Marcin Erdmann [ erdi ] |
Marcin Erdmann
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Marcin Erdmann
made changes -
Marcin Erdmann
made changes -
| Comment | [ Also add compilation warnings if someone uses an explicit return statement in a waitFor closure ] |
Marcin Erdmann
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |