Isn't the answer right there in the debug output? The value of dateField is "2016-02-03T00:00" but the value of requestDate is "2016-03-02T00:00". They aren't equal, so the assertion failure is correct.
On Thu, Aug 18, 2016 at 2:14 PM, Brian Westrich <[email protected]> wrote: > 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. > -- 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/CAB06vMA6Kma6QhcYu9WVt-3sKfq%3DvmgS%3D2%2BZ3cE5%2BBSVYPFawA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
