https redirect & "Some of your tests did a full page reload!"

1,529 views
Skip to first unread message

jo...@ycharts.com

unread,
Sep 10, 2013, 2:18:54 PM9/10/13
to karma...@googlegroups.com
Is there anyway to default the karma server to https?

I have an angular app behind a login. In order to get to the app url, I need to have karma login and then navigate to the app page where the tests will run.
However, the login page has an https redirect which karma does not like giving me an error. 

Does anyone have any thoughts or experience with this type of scenario?

Also, if logging in with karma is bad form, I'd love some suggestions.

Thanks,
John

Vojta Jína

unread,
Sep 11, 2013, 8:27:28 PM9/11/13
to karma...@googlegroups.com
Hi John,

Try to mock out the authentication.

Karma is primarily for unit testing and so it does not support full page reload (redirect). 

Karma does not run on HTTPS, there's an issue for it (https://github.com/karma-runner/karma/issues/581), however it's not a high priority for me, as I don't think you need HTTPS for unit testing. Making Karma to serve encrypted on HTTPS is pretty simple, but there's a problem with certificates (you can't get signed a cert for localhost and then you have to manually "agree to accept self-signed cert" everytime you capture a browser).

Also, if you are talking about e2e testing with angular scenario runner, please check out Protractor:

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