-
Notifications
You must be signed in to change notification settings - Fork 358
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
feat(payment): PAYPAL-4827 Fixed Paypal Fastlane bug when edit card and return back to checkout page #2098
base: master
Are you sure you want to change the base?
feat(payment): PAYPAL-4827 Fixed Paypal Fastlane bug when edit card and return back to checkout page #2098
Conversation
3ee5e87
to
dc9fece
Compare
Can you add a video recording before the fix, please? |
Added |
@@ -1,5 +1,5 @@ | |||
import { CheckoutService, createCheckoutService } from '@bigcommerce/checkout-sdk'; | |||
import { mount, ReactWrapper, shallow } from 'enzyme'; | |||
import { mount, ReactWrapper } from 'enzyme'; |
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.
As far as I know we have to update tests with switching to @testing-library
if we make any changes (maybe not any, but when we add a new test, for sure) in oldest one. Because there is no reason to support the old approach if we need to move to a new one.
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 just removed 'shallow' because it wasn't used anywhere
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.
My new added test doesn't use any specified to enzyme or rts methods
da88434
to
68aa4ee
Compare
packages/core/src/app/shipping/PayPalFastlaneShippingAddress.test.tsx
Outdated
Show resolved
Hide resolved
07ebbb7
to
ceed077
Compare
ceed077
to
5d57641
Compare
5d57641
to
eff8dc3
Compare
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.
LGTM
What?
Fixed Paypal Fastlane bug when edit card and return back to checkout page
Why?
To fix unexpected behaviour
Testing / Proof
BEFORE
Screen.Recording.2024-11-14.at.13.35.19.mov
AFTER
https://github.com/user-attachments/assets/83d51566-5a56-4d1e-ae80-1dc1e7c43e7c
@bigcommerce/team-checkout