-
Notifications
You must be signed in to change notification settings - Fork 162
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
Object.assign does not merge Symbols correctly #2189
Comments
Hello, Thank you for this information. I've reproduced the issue. For the team: const sourceKeys = nativeMethods.objectKeys.call(window.Object, source); Getting object symbols:
|
Hey We use the merging of Symbols to track our form inputs, and to validate objects that can be modified by several forms over seperate pages Here is an example
We are extending our Person object with the 'Valid' and 'touched' symbols, these are used to track if the form field representing those Keys was touched or is valid One of the key benefits of this approach is we are able to track form validation inside the objects that are modified directly while still being able to call Object.keys(person) to filter out all this metadata. Because the Object.assign is not merging in symbols, while running automated tests all our forms are always invalid and the automated software cannot continue onto the next step I hope this answers your question! |
Thank you for the clarification. I will add this issue to the current development sprint. Stay tuned for our updates in this thread. |
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?
After starting the test runner with chrome, and putting a t.debug() at the very start before doing anything, going into the console and running the following does not work as expected
What is the Current behavior?
The Object.assign is failing to merge the symbol key into the object
What is the Expected behavior?
The Symbol should be merged into the object
What is your web application and your TestCafe test code?
This is application independant
Your complete test code (or attach your test files):
No tests are being run
Steps to reproduce
Your Environment details:
The text was updated successfully, but these errors were encountered: