Protractor e2e tests and $scope

69 views
Skip to first unread message

Martin Gouws

unread,
Jun 18, 2014, 9:52:16 AM6/18/14
to ang...@googlegroups.com
Hi,

I have a problem that I think is quite unique. I'm working on a AngularJS app that has multiple views and controllers all located in separate modules. I need to run e2e tests on each of the view separately, thus testing them in isolation. The problem is the following: All these screens are connected in a workflow and some data gets passed through $scope from one view to the next. So the moment that I want to test these views in isolation, I find that some data that would be generated in the preceding view is now missing. I need pass this data to this view so that it can be tested. So my question is: How do I change a variable in $scope from the context of end to end testing?


Reply all
Reply to author
Forward
0 new messages