Open dtng95 opened 3 weeks ago
Hey!
Thanks a lot for creating this issue; it is in the correct repo 💪.
Regarding the updateLocaleStorage, you are correct that it should be updated to the example you mentioned, it is in the PR linked to this issue.
For the issue itself about umb:lastUpgradeCheck, I was unable to reproduce this. My tests runs without any issues. Are you able to reproduce this from a clean install? If you are, please let me know what steps you took to get this issue 😄
I got this issue
SyntaxError: Unexpected number in JSON at position 4
when running my tests for Forms.After some digging, I found out that the
user.json
file that has been generated by the authentication setup test has an issue. Here's myuser.json
file looks like.By removing
umb:lastUpgradeCheck
, my tests run successfully. I figured out the value2024-10-30T10:29:53.517Z
is somehow causing the issue. I updated it to this:and everything is ok.
Also, by looking at the
updateLocalStorage()
in ApiHelpers, I believe usingdata.origins[0].localStorage[0]
to getumb:userAuthTokenResponse
is inappropriate. With my above json file,umb:userAuthTokenResponse
is the third element, not the first, sodata.origins[0].localStorage[0]
would return incorrect result. I would suggest using other approach likedata.origins[0].localStorage.find(l => l.name == "umb:userAuthTokenResponse")
or any other approach that fits would be better.I'm not really sure if this is the correct repo to create this issue or not. Let me know if I need to create this in another repo. Thanks.