-
Notifications
You must be signed in to change notification settings - Fork 174
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
Testcafe promise bug #2255
Comments
I've tried to download your sample but my attempts were unsuccessful. How can we access it?
|
Can you try cloning using the HTTP(S), e.g.: ➜ git clone --branch testcafe-bug https://github.com/Meemaw/Insight.git testcafe-ky-bug |
Hi @Meemaw, I successfully cloned the repo and managed to start the application. Yet, now I get the following error when trying to launch tests:
|
@alexey-lin, @AlexSkorkin I've created a new repo for this and updated the "Steps to reproduce" for a much easier setup. |
I've debugged this issue. It's caused by the fact that Hammerhead incorrectly processes the following piece of your code: window["%hammerhead%"].processScript(
'async function f() { result[type] = (await result).clone(); }')
// actual
// async function f() { __set$(result,type,await (result).clone()); }
// expected
// async function f() { __set$(result,type,(await result).clone()); } |
Any estimates on time it will take to fix this? This seems like a quite problematic bug preventing one from using Testcafe at all. |
Currently, we cannot provide any estimates, however, we would appreciate your PR. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
What is your Test Scenario?
Test an application doing HTTP requests using ky-universal.
What is the Current behavior?
Testcafe crashes on what seems to be cloning of a promise.
What is the Expected behavior?
Testcafe should not crash.
Steps to Reproduce:
In a new terminal:
➜ yarn testcafe chrome e2e/specs -f '<TestcafeBug />'
I'm fairly sure you can reproduce this in any setup.
Your Environment details:
The text was updated successfully, but these errors were encountered: