preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

ERROR on npm run e2e on Windows #205

Open adrien59cadri opened 8 years ago

adrien59cadri commented 8 years ago

Hello I tried a very simple setup by cloning the repo, ran npm install and npm start

The server actually starts and the website works on localhost:8080, It works, but

npm run e2e does not

do you have any idea of what i could do to solve it,

For the same reason, the e2e test fails all the time.

Best


adrien courdavault@PC-Adrien MINGW64 ~
$ cd breakfast/

adrien courdavault@PC-Adrien MINGW64 ~/breakfast (master)
$ cd ../angular2-webpack/

adrien courdavault@PC-Adrien MINGW64 ~/angular2-webpack (master)
$ npm run e2e

> app@0.0.0 e2e C:\Users\adrien courdavault\angular2-webpack
> protractor

[14:50:33] I/direct - Using ChromeDriver directly...
[14:50:33] I/launcher - Running 1 instances of WebDriver
Spec started
Started

  App
    × should have a title
      - Expected 'http://localhost:8080/ is not available' to equal 'Angular 2 App | ng2-webpack'.
F    × should have <header>
      - Expected false to equal true.
F    × should have <main>
      - Expected false to equal true.
F    × should have a main title
      - Failed: No element found using locator: By(css selector, main h1)
F    × should have <footer>
      - Failed: No element found using locator: By(css selector, my-app footer)
F
  Home
    × should have <my-home>
      - Expected false to equal true.
      - Failed: No element found using locator: By(css selector, my-app my-home)
F
**************************************************
*                    Failures                    *
**************************************************

1) App should have a title
  - Expected 'http://localhost:8080/ is not available' to equal 'Angular 2 App | ng2-webpack'.

2) App should have <header>
  - Expected false to equal true.

3) App should have <main>
  - Expected false to equal true.

4) App should have a main title
  - Failed: No element found using locator: By(css selector, main h1)

5) App should have <footer>
  - Failed: No element found using locator: By(css selector, my-app footer)

6) Home should have <my-home>
  - Expected false to equal true.
  - Failed: No element found using locator: By(css selector, my-app my-home)

Executed 6 of 6 specs (6 FAILED) in 9 secs.

Failures:
1) App should have a title
  Message:
    Expected 'http://localhost:8080/ is not available' to equal 'Angular 2 App | ng2-webpack'.
  Stack:
    Error: Failed expectation
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:8:32)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)

2) App should have <header>
  Message:
    Expected false to equal true.
  Stack:
    Error: Failed expectation
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:12:58)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)

3) App should have <main>
  Message:
    Expected false to equal true.
  Stack:
    Error: Failed expectation
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:16:56)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)

4) App should have a main title
  Message:
    Failed: No element found using locator: By(css selector, main h1)
  Stack:
    NoSuchElementError: No element found using locator: By(css selector, main h1)
        at WebDriverError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:27:5)
        at NoSuchElementError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:230:5)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:662:27
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)
    Error
        at ElementArrayFinder.applyAction_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:371:27)
        at ElementArrayFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:83:30)
        at ElementFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:685:22)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:20:39)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
    From: Task: Run it("should have a main title") in control flow
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:81:14)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:18:5
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:19:3)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:1:1)
        at Module._compile (module.js:556:32)
        at Object.Module._extensions..js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)

5) App should have <footer>
  Message:
    Failed: No element found using locator: By(css selector, my-app footer)
  Stack:
    NoSuchElementError: No element found using locator: By(css selector, my-app footer)
        at WebDriverError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:27:5)
        at NoSuchElementError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:230:5)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:662:27
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)
    Error
        at ElementArrayFinder.applyAction_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:371:27)
        at ElementArrayFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:83:30)
        at ElementFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:685:22)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:24:45)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
    From: Task: Run it("should have <footer>") in control flow
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:81:14)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:18:5
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:23:3)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\app.component.e2e-spec.js:1:1)
        at Module._compile (module.js:556:32)
        at Object.Module._extensions..js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)

6) Home should have <my-home>
  Message:
    Expected false to equal true.
  Stack:
    Error: Failed expectation
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\home\home.component.e2e-spec.js:9:30)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)
  Message:
    Failed: No element found using locator: By(css selector, my-app my-home)
  Stack:
    NoSuchElementError: No element found using locator: By(css selector, my-app my-home)
        at WebDriverError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:27:5)
        at NoSuchElementError (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\error.js:230:5)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:662:27
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:639:7
        at process._tickCallback (internal/process/next_tick.js:103:7)
    Error
        at ElementArrayFinder.applyAction_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:371:27)
        at ElementArrayFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:83:30)
        at ElementFinder._this.(anonymous function) [as getText] (C:\Users\adrien courdavault\angular2-webpack\node_modules\protractor\built\element.js:685:22)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\home\home.component.e2e-spec.js:10:17)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:96:23
        at new Promise (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1043:7)
        at controlFlowExecute (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:82:18)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2697:25)
    From: Task: Run it("should have <my-home>") in control flow
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:81:14)
        at C:\Users\adrien courdavault\angular2-webpack\node_modules\jasminewd2\index.js:18:5
        at Promise.invokeCallback_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:1329:14)
        at TaskQueue.execute_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2790:14)
        at TaskQueue.executeNext_ (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2773:21)
        at asyncRun (C:\Users\adrien courdavault\angular2-webpack\node_modules\selenium-webdriver\lib\promise.js:2652:27)
    From asynchronous test:
    Error
        at Suite.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\home\home.component.e2e-spec.js:7:3)
        at Object.<anonymous> (C:\Users\adrien courdavault\angular2-webpack\src\app\home\home.component.e2e-spec.js:1:1)
        at Module._compile (module.js:556:32)
        at Object.Module._extensions..js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)

6 specs, 6 failures
Finished in 8.696 seconds
[14:50:43] I/launcher - 0 instance(s) of WebDriver still running
[14:50:43] I/launcher - chrome #01 failed 6 test(s)
[14:50:43] I/launcher - overall: 6 failed spec(s)
[14:50:43] E/launcher - Process exited with error code 1

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "e2e"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! app@0.0.0 e2e: `protractor`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the app@0.0.0 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 app 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 information on how to open an issue for this project with:
npm ERR!     npm bugs app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls app
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\adrien courdavault\angular2-webpack\npm-debug.log

adrien courdavault@PC-Adrien MINGW64 ~/angular2-webpack (master)
$
Foxandxss commented 8 years ago

Do you have npm start running when you execute npm run e2e ?