Hello,
So this particular step works for me, but I have an issue when I try to
change the number of images expected. When I try testing:
it('should display 5 thumbnails', function() {
var imageList = element.all(by.repeater('img in phone.images'));
expect(imageList.count()).toBe(5);});
I get the following:
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'protractor' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preprotractor', 'protractor', 'postprotractor' ]
5 info preprotractor [email protected]
6 verbose unsafe-perm in lifecycle true
7 info protractor [email protected]
8 verbose unsafe-perm in lifecycle true
9 info [email protected] Failed to exec protractor script
10 error [email protected] protractor: `protractor
test/protractor-conf.js`
10 error Exit status 1
11 error Failed at the [email protected] protractor script.
11 error This is most likely a problem with the angular-phonecat package,
11 error not with npm itself.
11 error Tell the author that this fails on your system:
11 error protractor test/protractor-conf.js
11 error You can get their info via:
11 error npm owner ls angular-phonecat
11 error There is likely additional logging output above.
12 error System Windows_NT 6.1.7601
13 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "protractor"
14 error cwd c:\angular-phonecat
15 error node -v v0.10.28
16 error npm -v 1.4.9
17 error code ELIFECYCLE
18 verbose exit [ 1, true ]
If I remove or add an image in the nexus-s.json file, the same issue
occurs.
Can anyone else verify? I want to know if I should look into something
with my setup.
Thanks,
Kyle
On Monday, June 2, 2014 11:56:31 PM UTC-4, [email protected] wrote:
>
> Follow what this says:
> http://stackoverflow.com/questions/21148978/angularjs-test-runner-retrieving-value-of-binding
> It works and is actually using the angular setup rather than just html
> elements.
>
> it('should display 4 thumbnails', function() {
> var imageList = element.all(by.repeater('img in phone.images'));
> expect(imageList.count()).toBe(4);});
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.