Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andriiVitvitskyi1990
Copy link
Contributor

@andriiVitvitskyi1990 andriiVitvitskyi1990 commented Nov 11, 2024

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

@andriiVitvitskyi1990 andriiVitvitskyi1990 marked this pull request as ready for review November 14, 2024 06:18
@bc-dronov
Copy link
Contributor

bc-dronov commented Nov 14, 2024

Can you add a video recording before the fix, please?

@andriiVitvitskyi1990
Copy link
Contributor Author

Can you add a video recording before the fix, please?

Added

@andriiVitvitskyi1990 andriiVitvitskyi1990 changed the title feat(payment): PAYPAL-4827 test feat(payment): PAYPAL-4827 Fixed Paypal Fastlane bug when edit card and return back to checkout page Nov 14, 2024
@@ -1,5 +1,5 @@
import { CheckoutService, createCheckoutService } from '@bigcommerce/checkout-sdk';
import { mount, ReactWrapper, shallow } from 'enzyme';
import { mount, ReactWrapper } from 'enzyme';
Copy link
Contributor

@bc-nick bc-nick Nov 14, 2024

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

@andriiVitvitskyi1990 andriiVitvitskyi1990 Nov 15, 2024

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

Copy link
Contributor

@bc-nick bc-nick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants