linemanjs / lineman-angular-template

A Lineman Application Template using AngularJS
251 stars 88 forks source link

require "protector/jasminewd" fails #8

Closed m99coder closed 11 years ago

m99coder commented 11 years ago

I tried to use protractor with selenium installed via npm globally, so that it is located at /opt/local/lib/node_modules/selenium/lib/runner/selenium-server-standalone-2.20.0.jar.

By calling ./node_modules/protractor/bin/protractor config/spec-e2e.js I'm getting the following error:

Starting selenium standalone server...
Selenium standalone server started at http://192.168.120.218:60017/wd/hub

/projects/lineman-angular-template/spec-e2e/login_spec.coffee:2
require "protractor/jasminewd"
        ^^^^^^^^^^^^^^^^^^^^^^
Exception loading: /projects/lineman-angular-template/spec-e2e/login_spec.coffee
[SyntaxError: Unexpected string]
searls commented 11 years ago

So that protractor can load specs written in coffee, you have to invoke protractor with the included grunt task. lineman grunt spec-e2e

Or you could delete the coffee spec.

On Mon, Sep 9, 2013 at 3:22 AM, Marco Lehmann notifications@github.com wrote:

I tried to use protractor with selenium installed via npm globally, so that it is located at /opt/local/lib/node_modules/selenium/lib/runner/selenium-server-standalone-2.20.0.jar. By calling ./node_modules/protractor/bin/protractor config/spec-e2e.js I'm getting the following error:

Starting selenium standalone server...
Selenium standalone server started at http://192.168.120.218:60017/wd/hub
/projects/lineman-angular-template/spec-e2e/login_spec.coffee:2
require "protractor/jasminewd"
        ^^^^^^^^^^^^^^^^^^^^^^
Exception loading: /projects/lineman-angular-template/spec-e2e/login_spec.coffee
[SyntaxError: Unexpected string]

Reply to this email directly or view it on GitHub: https://github.com/davemo/lineman-angular-template/issues/8

m99coder commented 11 years ago

I wanted to use the example given in David Mosher’s Youtube video „Testing Strategies for AngularJS“. He isn't using CoffeeScript there. But maybe than I have to rebuilt the test myself.

None the less now I’m getting a timeout after Selenium is started and trying to open a chrome browser with http://localhost:8000.

searls commented 11 years ago

You may have to fight with chromedriver. Chrome broke it last week and a new version was pushed.

On Mon, Sep 9, 2013 at 9:03 AM, Marco Lehmann notifications@github.com wrote:

I wanted to use the example given in David Mosher’s Youtube video „Testing Strategies for AngularJS“. He isn't using CoffeeScript there. But maybe than I have to rebuilt the test myself.

None the less now I’m getting a timeout after Selenium is started and trying to open a chrome browser with http://localhost:8000.

Reply to this email directly or view it on GitHub: https://github.com/davemo/lineman-angular-template/issues/8#issuecomment-24070968

m99coder commented 11 years ago

Ah okay. I see. I’m still using version 2.2 and version 2.3 was published 5 days ago. Thanks.