I have a problem running the E2E test in chapter 3.4.7 of your book on my Mac.
I downloaded the ch03_02_details_view
folder so that I am sure I did not have any typos.
tis-mbp:.ssh ti$ cd /Users/ti/Downloads/dpunkt-buch-beispiele-master/ch03_02_details_view/app/
tis-mbp:app ti$ http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the server
And then I access the DetailsView which is displayed correctly in the web browser. I also see the logs of the http-server
:
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /lib/angular/angular.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /lib/angular-route/angular-route.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /scripts/app.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /scripts/controllers/book_details.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:01 GMT] "GET /favicon.ico" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
[Sun, 03 Aug 2014 15:03:13 GMT] "GET /templates/book_details.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
tis-mbp:ch03_02_details_view ti$ pwd
/Users/ti/Downloads/dpunkt-buch-beispiele-master/ch03_02_details_view
tis-mbp:ch03_02_details_view ti$ /usr/local/lib/node_modules/karma/bin/karma start karma-e2e.conf.js
DEBUG [plugin]: Loading karma-* from /usr/local/lib/node_modules
DEBUG [plugin]: Loading plugin /usr/local/lib/node_modules/karma-ng-scenario.
INFO [karma]: Karma v0.12.19 server started at http://localhost:9876/_karma_/
WARN [launcher]: Can not load "Chrome", it is not registered!
Perhaps you are missing some plugin?
DEBUG [watcher]: Resolved files:
/usr/local/lib/node_modules/karma-ng-scenario/lib/angular-scenario.js
/usr/local/lib/node_modules/karma-ng-scenario/lib/adapter.js
/Users/ti/Downloads/dpunkt-buch-beispiele-master/ch03_02_details_view/test/e2e/templates/book_details.spec.js
DEBUG [web-server]: serving: /usr/local/lib/node_modules/karma/static/client.html
DEBUG [web-server]: serving: /usr/local/lib/node_modules/karma/static/karma.js
DEBUG [web-server]: upgrade /_karma_/socket.io/1/websocket/vTdETH-V5Fvz_rsWbTIR
DEBUG [proxy]: NOT upgrading proxyWebSocketRequest /_karma_/socket.io/1/websocket/vTdETH-V5Fvz_rsWbTIR
DEBUG [karma]: A browser has connected on socket vTdETH-V5Fvz_rsWbTIR
INFO [Chrome 36.0.1985 (Mac OS X 10.9.4)]: Connected on socket vTdETH-V5Fvz_rsWbTIR with id manual-1422
DEBUG [web-server]: serving: /usr/local/lib/node_modules/karma/static/context.html
Chrome 36.0.1985 (Mac OS X 10.9.4) E2E: book details view should show the correct book details FAILED
element '.bm-book-title' html
/Users/ti/Downloads/dpunkt-buch-beispiele-master/ch03_02_details_view/test/e2e/templates/book_details.spec.js:10:16: Selector .bm-book-title did not match any elements.
Chrome 36.0.1985 (Mac OS X 10.9.4): Executed 1 of 1 (1 FAILED) ERROR (0.163 secs / 0.128 secs)
DEBUG [karma]: Run complete, exitting.
DEBUG [launcher]: Disconnecting all browsers
So something went wrong, but I do not know what exactly and how to fix it. Do you have an idea?