-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display page level error and disable checkout button when no availabl…
…e payment methods (#2873) * Added payment method query to checkoutPageFragments.gql.js to fetch all available payment methods while fetching cart data on checkout page * Added page level error message when no payment method implementations available for available methods * Adding checkout page test update * Adding useCheckoutPage talon test * executed prettier on checkoutPage.spec.js * executed prettier on useCheckoutPage.spec.js * Updated unit test * Corrected test snap to pass the unit test * Converted "CheckoutPageOperations" to peregrine. Also moved other connected queries to peregrine. * Fixed useCheckoutPage.spec.js to make it compatible with migrated "CheckoutPageOperations" in useCheckoutPage.js peregrine component * Prettier-ed useCheckoutPage.spec.js * Fixed issue with gql client after migration of CheckoutPageOperations to peregrine. * Fixed issue with gql client after migration of CheckoutPageOperations to peregrine. * Sorted the new lang definitions while adding * Used the ternary operator instead of the logical operators * Changed variable "props" to "defaultProps" * Removed empty object usage as it was not required anymore. * Corrected lint error related to array reassignment due to let declaration * Update packages/peregrine/lib/talons/CheckoutPage/useCheckoutPage.js Co-authored-by: Stephen <sirugh@users.noreply.github.com> * Re-add lost query * Add missing mock in test Signed-off-by: sirugh <rugh@adobe.com> * Prettified * exporting default operations as root properties * Remove styles Signed-off-by: sirugh <rugh@adobe.com> * fix operations mock in tests Signed-off-by: sirugh <rugh@adobe.com> * Fix zero total checkout use case. Add tests * Fixed layout issue with multiple page errors on checkoutPage. * Updated test snapshots * Updated test cases snapshots Co-authored-by: Stephen <sirugh@users.noreply.github.com> Co-authored-by: sirugh <rugh@adobe.com> Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>
- Loading branch information
1 parent
05bb83f
commit ec4e97d
Showing
19 changed files
with
335 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.