You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the same issue and found that the exception gets thrown when the snapshot library reads an existing snapshot which has a \n in it. The workaround I found is that in the saved snapshot change all '\n' to '\n' to escape them.
When reading a saved snapshot, the \n gets parsed and the json gets split into multiple lines and the parsing on the json fails. @horvay will you be able to look into it ? Not sure if the issue is here or in vkbeautify
The Json generated in the web browser (runner) is causing an exception when I cut and paste it into my test.
If actual is valid, update your snapshot with the following
{
"markup matches snapshot with Good Status 1":
{ "div": { "_class": "root-container", "_data-hitid": "dispel2", "_data-modelid": "dispel2", "_style": "left: 0px; top: 0px; width: 100px; height: 36px; opacity: 1;", "div": { "_style": "position: relative; width: 100%; height: 100%;", "div": { "_class": "visualOverflowHidden", "_style": "opacity: 1; line-height: normal; text-decoration: none; height: 100%; width: 100%; overflow: hidden; border-style: solid; border-width: 0px; font-size: 12px; font-family: \\\"Segoe UI\\\"; font-weight: normal; font-style: normal;", "div": { "_style": "width: 100%; height: 100%; cursor: default; text-decoration: none; display: flex; flex-direction: row; justify-content: flex-end;", "div": { "__text": "Good Data", "_style": "max-width: 100px; overflow: hidden; width: 100%; text-align: right;", "_title": "" } }, "style": { "__text": "input {\n border: 0\n}\n \n\n*:focus {\n outline: none;\n}" } } } }}
,Expected function not to throw, but it threw SyntaxError: Unexpected token in JSON at position 831.
I'm not quite sure what the issue is?
The text was updated successfully, but these errors were encountered: