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
[FIX] payment_stripe: regression 98fe5054c2 #32026
Conversation
opw-1939323
If using Stripe we did "Pay Now" -> close modal -> "Pay Now" we would get 2 modals and possibly be blocked by infinite loading. With this changeset, we only execute one time our strip.js file so we do not declare multiple MutationObserver. We also only open one checkout at a time from stripe when closing and opening it or multiclicking click (the later one that could block the interface with several stripe iframe opened and one with a infinite loading wheel). opw-1939323 closes #31928 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Test after regression fix: https://www.youtube.com/watch?v=c-7uKp509dU robodoo r+ |
Got it, probably to be backwards compatible? |
Hi Wolfgang, Thanks for the quick response, this PR and sorry for the issue.
The result is exactly the same. In the original PR I renamed In my version we have a local variable In any case this is just for non-existing future code so your PR was as correct. Regards. |
opw-1939323 closes odoo#32026 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
The current test we have are only python and are only run at most daily (because stripe would block us because of the number of request) with the number of runbot. But in this instance these test would not catch an issue. For testing the whole scenario a customer do with e.g. a tour:
edit : As for test, I tried a JS test, but we need to mock "$.getScript", MutationObserver, stripe reception of request and responses. So the test do not have much meaning. The best way to test this would be to have a "tour" with a modified browser (eg. https://www.guru99.com/handling-iframes-selenium.html) but I am not sure how this would be implementable with our current testing framework. |
Merged, thanks! |
@nle-odoo |
opw-1939323