-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e test with karma fails #20
Comments
dutscher, Thanks for the kudos. Really appreciate it. Can you put your project in a repo that I can have access to? There are so many possible place that is causing this and hard to debug without the rest of the code. Marcos If you like angularAMD, please consider Star this project. |
yeah the star is rated ;) so here u can find the repo https://github.com/memoConnect/cameoClientAngular/tree/feature-login-directive i figure out that the karma browser don't excute the app.js. in the nodejs webserver logs is at the end
the browser can't also show the app. only i refresh the iframe in karma testing than the app will appear. thanks for your help! greets |
Bad news unfortunately... The core problem is that I tried several hacks and I just couldn't get E2E to run. I will try to create an example with Protractor in the angularAMD project. I am in the middle of a project and probably wont be able to get to for a couple of weeks. |
Okay great, i will wait for it. My tries with protractor wouldn't work and of course this is very tricky. I think your AMD solution is the best and easiest to implement. Tomorrow i would try again to get a successful simple test with protractor. Do you have a simple example for unit tests? Greets from germany |
When you have a working protractor test, please share it with me. Also, Atul Chaudhary mentioned in a Google+ post that he has successfully done a E2E test of angularAMD with protractor. If you try to contact him via Google+, he might share his code with you. Include me in the post to him. As for unit test, look under the |
I have a working version of e2e test under |
wow marcos, now i got and can test the full app. thank you very much. if you merge the test to master then you can write down in the readme that at first start the web-server. |
The E2E test is done but I still need a bit of time to setup
** Remove the option |
Hey marcos,
at first very awesome work!
And now to my problem. I tried the last hours to get a simple e2e test with karma, but something went wrong.
As template for my test enviroment i used https://github.com/angular/angular-phonecat. The difference is that the phonecat app does'nt use angularAMD and requirejs.
Now to my files
app.js
scenarios.js:
If i run this simple test then i get this error/fail:
The main error is TypeError: Object [object Object] has no method 'injector' and is thrown throw browser().location().url().
Have you an idea what i do wrong? Or rather exists an example with an e2e test on a angularAMD App?
greetings from germany,
dutscher
The text was updated successfully, but these errors were encountered: