Julien Martin wrote > > Hello, > Hi!
Julien Martin wrote > > I am trying to make sure that if a user has not accepted the terms and > conditions, then they cannot register. > > However my "*testFailsIfConditionsNotAccepted*" always fails and logging > info indicates that the checkbox is always checked despite the test > setting > the value of the boolean to false. > > This behavior is not exhibited when I run my app and when I test my forms > manually... > > Can anyone please help? > Maybe that's because you set the acceptsConditions to true in the test: fieldValues.put("acceptsConditions", "true");* And one comment: childminderAccount does not have to be @Persist - you reset it to a new instance anyway every time in setupRender Julien Martin wrote > > Regards, > J. > Chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-my-T5-unit-tests-tp5486297p5486842.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org