angular examples ?

49 views
Skip to first unread message

Emmett Walsh

unread,
Apr 26, 2016, 10:03:01 AM4/26/16
to Geb User Mailing List

Hi,

Im using a Grails 3 angularjs stack and would like to write some Geb tests to test the UI navigation , however Im running into issues with Page object pattern, I guess its due to timing problems 

I dont supposed anyone has a github link to some code I could look at ?  thanks

Brian Kotek

unread,
Apr 26, 2016, 10:26:21 AM4/26/16
to Geb User Mailing List
I don't know if there are examples to look at (though there may be somewhere). But since the Angular digest loop is asynchronous, you can't rely on things happening immediately. So that probably means you need to wait for whatever the result of you action is. (e.g. wait for something to become visible, or for text to change, etc.)

--
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 geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/1b3ebe5a-dabd-40b8-bbe7-e5eacba4bf1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emmett Walsh

unread,
Apr 26, 2016, 10:29:41 AM4/26/16
to Geb User Mailing List
yeah Im trying some of the 'wait' stuff but nothing working so far, in dire need of some examples

Emmett Walsh

unread,
Apr 27, 2016, 5:08:12 AM4/27/16
to Geb User Mailing List
sounds like Angulars Protractor is the best way for end to end testing of angular UI

Brian Kotek

unread,
Apr 27, 2016, 9:23:19 AM4/27/16
to Geb User Mailing List
If you're OK with the loss of features, don't mind writing your tests in JavaScript (which means losing IDE refactoring, code hinting, etc.), and don't mind running your tests via NodeJS, then Protractor is certainly an option. 

Nicolai Negru

unread,
Jun 29, 2016, 4:26:23 AM6/29/16
to Geb User Mailing List
Reply all
Reply to author
Forward
0 new messages