-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
Fixed Issue #1865 #1869
Fixed Issue #1865 #1869
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
I've changed my mind about this PR. It's not reliable enough (nor terribly readable, I never like using regex...) and prevents the ability to use a space in json keys moving forward. |
User description
Fixed #1865
Description
I cannot for the life of me figure out where the spaces come from - the problem appears before calling JSON.stringify(), so the issue is in the ide code. In version 3.17.2 this works, but current 4.0.2 does not, and when comparing differences in the files I don't see any changes to the WindowHandleName object's processing.
suspect that we're accidentally setting the text name from the index.ts instead of the key somewhere, but I'm struggling to find the bug.
In order to temporarily fix this, I wrote a function that takes the JSON.stringify() output during the save process and removes spaces from keys in the json string.
Motivation and Context
Issue #186
Types of changes
Checklist
PR Type
Bug fix
Description
UpdatedJsonStringify
to address JSON serialization issues by removing spaces from object parameters.save_v3
method to utilize the newUpdatedJsonStringify
method, ensuring consistent JSON output.Changes walkthrough 📝
index.ts
Fix JSON serialization by removing spaces from object parameters
packages/selenium-ide/src/main/session/controllers/Projects/index.ts
UpdatedJsonStringify
method to remove spaces from JSON objectparameters.
save_v3
method to useUpdatedJsonStringify
for JSONserialization.