ReferenceError: Can't find variable: browser

1,034 views
Skip to first unread message

Michael Heuberger

unread,
Sep 25, 2013, 6:15:07 AM9/25/13
to karma...@googlegroups.com
Hello guys

I just left AngularJS and replaced 'ng-scenario' with 'Jasmine' in my e2e Karma config.

But I can't run the tests, I'm getting an "ReferenceError: Can't find variable: browser" error.

How come? I need it for navigation inside the tests, i.E. for "browser().navigateTo('/');"

Any clues?

Thx,
Michael

Vojta Jína

unread,
Sep 26, 2013, 4:22:11 AM9/26/13
to karma...@googlegroups.com
Hi Michael,

"ng-scenario" is Angular scenario runner, which is defines "browser().navigateTo()" DSL.

If you wanna write e2e tests using the Angular scenario runner, you need to use frameworks: [
ng-scenario"] and not Jasmine. Use Jasmine for unit testing.

V.


--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages