-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match paymentMethods response to Card Component created as 'card' (#1406
) * Ensure that when the Card component is created as 'card' it is still matched with the paymentMethods response item with type 'scheme' * Refined method for mapping created component type into private function * Added unit tests * Added unit tests to make sure a paymentMethodsConfiguration.card object reaches the card component regardless of how the component is created * Throw warning from core if 'scheme' prop defined on paymentMethodsConfiguration object + unit test * Comments added about workings of create & handleCreate functions. Plus removing unnecessary calls to prop retrieval routines * Update comment * Updated comment * Added comment * Further comments added * Separating unit tests into own file * Finalised unit test for correct props within Dropin comp itself * Commented out setTimeouts in Dropin.test.ts & replaced with async test functions - could find no evidence that the setTimeouts were ever called * Added e2e tests to ensure components created within the Dropin receive all the expected props * Added unit tests for Dropin created components. Removed e2e tests that overlapped. * upped sf version to 3.7.4
- Loading branch information
Showing
9 changed files
with
542 additions
and
52 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
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.