On Wed, Aug 17, 2016 at 3:44 PM, Marcin Erdmann
<[email protected]> wrote:
>
> What happens if you wrap your failing condition in a waitFor:
>
> waitFor { labRequest[0].dateField == requestDate }
>

The test waits for 30 seconds, then fails.

condition did not pass in 30.0 seconds (failed with exception)
.....
Caused by: Assertion failed:

labRequest[0].dateField == requestDate
|         |   |         |  |
|         |   |         |  2016-03-02T00:00
|         |   |         false
|         |   dateField - SimplePageContent (owner: labRequest -
LabAnalysisRequestRow (owner: ProjectDetailPage, args: [], value:
null), args: [], value: 2016-02-03T00:00)
|         labRequest - LabAnalysisRequestRow (owner:
ProjectDetailPage, args: [], value: null)
[labRequest - LabAnalysisRequestRow (owner: ProjectDetailPage, args:
[], value: null)]


>
> Is this code you shared coming from test, a page class or a module class?

A test

>
> Also, can you please share which version of Spock you are using?


org.spockframework:spock-core:1.0-groovy-2.4

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CAMvxi91LAx4W0wpXUmVAn5SJhMmiwzMDBb_kqiYifr07OhC%3DXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to