-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Improve Checkout error handling in JS #5202
Improve Checkout error handling in JS #5202
Conversation
2ce1f5b
to
c1203d8
Compare
Catch() will get a few more errors then errors() Also, add try/catch inside catch to detect any errors parsing the response error payload
c1203d8
to
47a9356
Compare
else | ||
throw response unless response.data.flash | ||
|
||
@errors = response.data.errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot find/understand what this @errors does but I dont want to remove it and break things...
eb45528
to
cedf1b2
Compare
tagging bug-s2 for clarity. |
Hi @luisramos0, Had a look at the described test scenarios:
The field itself accepts an address like ofn@ofn; it does reject the email address if the @ sign is removed, thus preventing the user from clicking "place order".
I'd say this is ready to go. I will open issues on the respective issues found on 1), an S3 maybe? I think the comment in 4) probably does not qualify as an issue, I guess. |
thanks Filipe, nice testing!!!
|
thanks Filipe! |
What? Why?
Related to #5192
What should we test?
We need to test checkout error scenarios:
Release notes
Changelog Category: Changed
Improved resiliency of the checkout code that handles error scenarios.