Hi All,
Just thought I'd post another gist in my series of testing Asynchronous front-ends with Geb, as the last gist was far more popular than I had imagined.
The following Gist is an example of how to make assertions on content which is added to the page AFTER your initial page render. For instance an angular-bootstrap modal - it doesn't exist on the page until you trigger it, yet I have a reference to it (with required: false) in my page model. The problem is that once you fire the modal and start asserting, Geb has already decided that it doesn't exist.
Luckily, there is a way to get Geb to refresh its cache of the page once the triggering button has clicked, using the (to:) DSL functionality.
See the gist here:
Cheers,
Antony