The issues when i run 'npm run e2e'
The other steps can run, but when i run 'npm run e2e'. The following is error details.
[launcher] Running 1 instances of WebDriver Started FFFF
Failures:
-
App should have a title Message: Expected '???? http://localhost:3000/' to equal 'Angular2 Webpack Starter by @gdi2990 from @AngularClass'. Stack: Error: Failed expectation at Object.
(C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\test\app\app.e2e.js:14:21) at C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:96:23 at new wrappedCtr (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\base.js:2468:26) at controlFlowExecute (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:82:18) at goog.async.run.processWorkQueue (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\async\run.j s:124:15) at process._tickCallback (node.js:382:9) -
App should have
Message: Expected false to equal true. Stack: Error: Failed expectation at Object. (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\test\app\app.e2e.js:20:21) at C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:96:23 at new wrappedCtr (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\base.js:2468:26) at controlFlowExecute (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:82:18) at goog.async.run.processWorkQueue (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\async\run.j s:124:15) at process._tickCallback (node.js:382:9) -
App should have
Message: Expected false to equal true. Stack: Error: Failed expectation at Object. (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\test\app\app.e2e.js:26:21) at C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:96:23 at new wrappedCtr (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\base.js:2468:26) at controlFlowExecute (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\jasminewd2\index.js:82:18) at goog.async.run.processWorkQueue (C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\node_modules\selenium-webdriver\lib\goog\async\run.j s:124:15) at process._tickCallback (node.js:382:9) -
App should have
4 specs, 4 failures Finished in 9.553 seconds [launcher] 0 instance(s) of WebDriver still running [launcher] chrome #1 failed 4 test(s) [launcher] overall: 4 failed spec(s) [launcher] Process exited with error code 1
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "run" "e2e"
npm ERR! node v5.2.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] e2e: protractor
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] e2e script 'protractor'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! protractor
npm ERR! You can get their info via:
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator.XZ-20140618RVRF\angular2-webpack-starter\npm-debug.log
I haven't seen this before, does anyone meet the same problem.
you need to have webdriver running
you need 3 terminals open. make sure you have we webdriver running https://github.com/AngularClass/angular2-webpack-starter#run-webdriver-for-end-to-end and the server https://github.com/AngularClass/angular2-webpack-starter#server and finially protractor https://github.com/AngularClass/angular2-webpack-starter#run-end-to-end-tests I'm closing this for now. You can reopen the issue or open another one if you run into anymore problems