-
Notifications
You must be signed in to change notification settings - Fork 669
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
Basic HTTP auth doesn't work with Chrome native automation #8192
Comments
Thank you for submitting a bug report. We would love to help you investigate the issue. Please share a simple code example that reliably reproduces the bug. For more information, read the following article: How To Create a Minimal Working Example When You Submit an Issue. We look forward to your response. |
@Bayheck you can't try to run any test on any page that requires basic auth with the testcafe/node/chrome versions I provided? |
Hello, I tried to emulate your usage scenario and did not encounter any issues with
That is why I am asking for a minimal working example. |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
@Bayheck I found a some more info when comparing my app's basic auth with this sample page that does work with Testcafe. Sample page: https://authenticationtest.com/HTTPAuth/ (Username= user, Password= pass)
The actual basic auth headers do work the same though
Hopefully this helps. Again, Testcafe's basic auth setting works perfectly with my app's basic auth when running with native automation disabled. |
Thank you for the information. Unfortunately, it's difficult to determine the exact cause of the issue without reproducing it. Please share a minimal working example that illustrates the issue. |
@Bayheck do you mind checking the Testcafe source code around native |
Thank you for your understanding. I will get back to this issue once we have a working example. |
Thank you for submitting a bug report. We would love to help you investigate the issue. Please share a simple code example that reliably reproduces the bug. For more information, read the following article: How To Create a Minimal Working Example When You Submit an Issue. We look forward to your response. |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
What is your Scenario?
Tests that run with
.httpAuth
can't run on Chrome with native automationWhat is the Current behavior?
All of my tests require basic auth to access apps in lower environments. After updating Testcafe to version 3+, these tests get stuck and hang forever because basic auth no longer works. They only run correctly when adding the
--disable-native-automation
flag.What is the Expected behavior?
According to the Testcafe docs, it's expected that the NTLM protocol will not work with native automation, but there is no mention of limitations on basic http auth, therefore I expect basic auth to work with native automation.
What is the public URL of the test page? (attach your complete example)
no public URLs, hence the need for basic auth
What is your TestCafe test code?
.httpAuth({
username: authUsername,
password: authPwd,
});
^ basic auth username & password is set at the fixture level of all tests
Your complete configuration file
{
"src": "*-spec.js",
"concurrency": 1,
"debugOnFail": false,
"skipJsErrors": true,
"disableMultipleWindows": true,
"screenshots": {
"path": "./testscreenshots",
"takeOnFails": true,
"thumbnails": false
}
}
Your complete test report
no reports; the test hangs until I manually have to kill it
Screenshots
Steps to Reproduce
Run tests that require basic HTTP auth in Chrome 124 / Testcafe 3.6.0 with native automation enabled. Issue is same with headless and non-headless chrome.
TestCafe version
3.6.0
Node.js version
18.14
Command-line arguments
testcafe chrome -c 1 tests/path/to/test.js --skip-js-errors --skip-uncaught-errors
Browser name(s) and version(s)
Chrome 124.0.0.0
Platform(s) and version(s)
Locally on macOS Ventura 13 and also on Amazon Linux- aws/codebuild/amazonlinux2-x86_64-standard:5.0
Other
No response
The text was updated successfully, but these errors were encountered: