-
Notifications
You must be signed in to change notification settings - Fork 672
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
Cannot run testCafe with HTTPS #2924
Comments
I see the parameters are incorrectly used in your example. testcafe "chrome --allow-insecure-localhost --allow-running-insecure-content" e2e/tests/analyze/ --ssl key=~/.localhost-ssl/localhost.key;cert=~/.localhost-ssl/localhost.crt --dev --hostname=localhost |
@miherlosev this doesn't help also...
|
Could you please provide a simple example that I can run on my computer? |
Sure, which example do you need? |
Application sources, test code and certificates. |
I can't give you access to the source code as this is our production code... You can just install a fresh Angular project from the angular cli |
@miherlosev I've created an empty Angular project by your request. |
Ok. I am investigating the problem |
Yes, it's a bug. We will fix it in the current development sprint. |
Great, it will also be great if you can improve the documentation on how to use it. |
The fix is already in PR.
We have an example of using the |
I think it will be more clear how to implement it with a dedicated example. Friendly advice :) |
@miherlosev I still cannot use local variables after upgrading to 0.23.0 I'm running: And getting:
|
@miherlosev ok I've managed to workaround the error code I wrote, but now it seems that it doesn't work.
|
Related to DevExpress/testcafe-hammerhead#1806 |
@doronsever |
Wow... |
@kaitmore It is not working for me even if i put the quotes like |
Following worked for me. TestCafe ver 0.23.3 & Chrome 71.0 (on Mac 10.14.2)
Passing pfx also worked |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
Are you requesting a feature or reporting a bug?
BUG
What is the current behavior?
When trying to tun testcafe using HTTPS, the browser always says:
localhost uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
What is the expected behavior?
Running testcafe on HTTPS
How would you reproduce the current behavior (if this is a bug)?
I'm trying to set up my local env to use HTTPS.
The reason is that I'm using Angular and it produces source maps and also images are not loaded.
If I'm using testcafe via plain HTTP, I get an error when the tests finish saying:
Error [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
I went over this tutorial: http://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/connect-to-the-testcafe-server-over-https.html and trying to use it via the cli but without success.
I tried creating a local PFX file, or using public key + cert. Non will work.
For example, I went over this tutorial: https://medium.com/@jonsamp/how-to-set-up-https-on-localhost-for-macos-b597bcf935ee
And then run this testcafe command:
testcafe chrome e2e/tests/analyze/ --ssl key=~/.localhost-ssl/localhost.key cert=~/.localhost-ssl/localhost.crt --allow-insecure-localhost --allow-running-insecure-content --dev --hostname=localhost
But still the same result.
Is it a bug or am I doing something wrong?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your
The text was updated successfully, but these errors were encountered: