-
Notifications
You must be signed in to change notification settings - Fork 69
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 credit card input errors and checkout errors E2E tests #8908
Fix credit card input errors and checkout errors E2E tests #8908
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +23 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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.
Tested locally - the changes look good. Just a question on the prop's default value
isPaymentInformationCompleteRef.current = event.complete; | ||
const setHasLoadError = ( event ) => { | ||
hasLoadErrorRef.current = true; | ||
onLoadError( event ); |
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.
If the onLoadError
is not provided, this call would throw an exception, because you can't call event
on undefined
.
What was the reason for removing the noop
default assignment on L63?
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.
That was a mindless change 😬. Good catch! Fixed in e50bf25.
Description
The objective of this PR is two-fold:
shopper-checkout-failures
E2E tests.Changes proposed in this Pull Request
Testing instructions
Test 1: Ensure input-specific credit card errors are displayed again
Test 2: Ensure there's no regression with +1M value error
Please follow the instructions from #8793 and ensure the notice still appears for carts with over 1M in value.
Test 3: Ensure shopper-checkout-failures E2E test spec passes
No manual testing is required.
Ensure the E2E Tests - All workflow passes in this branch for the shopper checkout failures spec by looking for this log:
Note: Other test specs are still failing.
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.