Commit Graph

3737 Commits

Author SHA1 Message Date
dependabot[bot]
8f19087a74 chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 (#2507)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 07:49:10 -03:00
Guilherme Ribeiro
9acef9663a Click to Pay - Adding unit tests (#2502)
* feat: mc test

* feat: more tests

* logout tests

* test for ctplogin
2024-01-10 10:11:34 -03:00
github-actions[bot]
a701162af2 [ci] release main (#2497)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-09 15:50:55 +01:00
Yu Long
8ea9ded8ac Feat: PayMe wallet (#2476)
* refactor: scaffold the PayMe wallet

* feat(payme): add the PayMe wallet

* refactor(payme): add the logic for the countdownTime

* refactor(payme): remove comments

* refactor: add translations

* test: add some tests

* refactor: added tests

* refactor: unit test

* chore: add changeset
2024-01-09 11:09:27 +01:00
Yu Long
d358019078 Refactor/improve QR payments status check (#2506)
* refactor: improve the QR payments status check call, wait for the previous call to finish

* added changeset

* refactor: added the timeout for the default http calls and the status check call

* refactor: add unit test
2024-01-09 10:06:45 +01:00
Camil
cafff78e0a Fix incorrect grammar German pay button (#2505)
* Fix incorrect grammar German pay button

Related ticket: COWEB-1227

* Create light-suns-yawn.md

---------

Co-authored-by: sponglord <nicholas.spong@adyen.com>
2024-01-08 13:50:30 +01:00
sponglord
b6f2a2d660 Merge pull request #2504 from Adyen/feature/update_sessionData_after_setup
Update sessionData after /setup call
2024-01-03 17:12:00 +01:00
nicholas
c28c325aef Update sessionData after /setup call 2024-01-03 15:46:50 +01:00
Yu Long
a597582764 test(phone-input): added tests (#2498) 2023-12-21 15:07:29 +01:00
Yu Long
a8a91d608a test(await): added tests (#2496) 2023-12-20 13:05:39 +01:00
sponglord
a62f32ae06 Feature/detect unsupported sf fields (#2495)
* detect unrecognised data-cse attributes and don't create a SF for them

* Added unit test for new functionality

* added changeset
2023-12-20 12:51:12 +01:00
sponglord
952ae27819 Chore/v5 unit tests csf (#2472)
* Creating separate card-with-installments in Cards playground

* New unit test for validateForm

* Expanded test for validateForm

* setFocusOnFrame, improved types

* setFocusOnFrame unit test, first draft

* setFocusOnFrame unit test, final

* postMessageToIframe unit test

* processBrand unit test

* processAutoComplete unit test

* processAutoComplete unit test - removed logs

* postMessageToAllIframes unit test

* isConfigured unit test - final

* handleIframeConfigFeedback unit test

* handleFocus unit test

* handleOnBinValue unit test

* Don't bother testing console.log lines

* Removing this keyword from handleFocus function

* handleValidation unit test

* handleEncryption unit test - first draft

* handleEncryption unit test - final

* Added boolean onlyShowCard to easily turn of all other card examples in the Cards playground

* wireframe for handleBrandFromBinLookup.test.ts

* handleBrandFromBinLookup.test.ts - first draft

* handleBrandFromBinLookup.test.ts - final

* Expanded number of tests in initCSF.test.tsx

* createSecuredFields.test.tsx - first draft

* createSecuredFields.test.tsx - second draft

* createSecuredFields.test.tsx - final version

* createSecuredFields.test.tsx - testing that promise resolves

* createSecuredFields.test.tsx - testing that promise rejects

* Created createCardSecuredFields.test.ts to catch some edge cases in createSecuredFields functionality

* handleTab.test.ts - first draft

* handleTab.test.ts - final draft

* handleTab.test.ts - funnel tests through the expected entry point (handleSFShiftTab), to maximise coverage

* handleIOSTouchEvents.test.ts - first draft

* handleIOSTouchEvents.test.ts - second draft

* handleIOSTouchEvents.test.ts - cleaned up code

* handleIOSTouchEvents.test.ts - properly testing keypadFix scenario

* tidying up "partial" tests: cleaning up callbacks, using constants

* handleIOSTouchEvents.test.ts - adding final tests

* Removing some console.logs

* Cleaning up SecuredFields constants
2023-12-18 16:31:27 +01:00
Yu Long
5ec16b6756 test(klarna-widget): added tests (#2493) 2023-12-18 15:41:28 +01:00
github-actions[bot]
a2fe84f444 [ci] release main (#2491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 08:57:08 -03:00
Guilherme Ribeiro
d1c9282980 Fix: Loading logos when handling qrCode/await actions (#2490)
* fix: getting proper logos for actions

* changeset
2023-12-13 08:04:24 -03:00
github-actions[bot]
daeb70504a [ci] release main (#2479)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-12 13:35:31 +01:00
sponglord
b21c0f2aec Bumping sf version to 4.8.0 (#2488)
* Bumping sf version to 4.8.0

* Adding changeset file
2023-12-11 12:26:03 +01:00
dependabot[bot]
92a832d35e chore(deps-dev): bump vite from 4.5.0 to 4.5.1 in /packages/lib (#2481)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.1/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 10:46:42 +01:00
renovate[bot]
b7ae59c801 chore(deps): update dependency eslint to v8.53.0 (#2480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 10:46:16 +01:00
renovate[bot]
3f5ed390fb chore(deps): update dependency postcss-loader to v7 (#2464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 17:10:38 +01:00
renovate[bot]
943665fc98 chore(deps): update dependency lint-staged to v15 (#2462)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 17:04:24 +01:00
sponglord
27419b5f61 Fix/detect in iframe fix (#2475)
* detectInIframe fn fix

* detectInIframe renamed to the more accurate (if lengthy!) detectInIframeInAccessibleDomain

* adding changeset file

* changed import in unit test

* Changed check for reading window.parent.location

* Clarified function name and purpose (via comments)

* update comment in changeset file
2023-12-06 12:57:52 +01:00
sponglord
01149e9495 Merge pull request #2466 from Adyen/changeset-release/main
[ci] Release main
2023-12-04 15:39:45 +01:00
github-actions[bot]
cf61531b1d [ci] release main 2023-12-04 12:41:40 +00:00
Guilherme Ribeiro
9b688845b9 Klarna B2B - Fixing logo on Drop-in (#2458)
* fix: getting icon using type() function instead of constructor type

* feat: changeset + removed duplicated methods

* fix: removed only frag on unit test
2023-12-04 13:40:12 +01:00
António Ferreira
9d04b6f7ee Feature: Adds onAddressSelected to address lookup functionality (#2406)
* feat: adds onAddresSelected

* fix: change memo to callback

* fix: makes some fnc to useCallback

* feat: typings and blur on close

* add: changeset

* fix: typo in changset

* fix: exported debounce

* add: fix typings

* add: unit test to address search

* fix: assertion count

* fix: sonar cloud code smells
2023-12-04 13:11:06 +01:00
Guilherme Ribeiro
f0aefbdee3 Storybook - Adjusted GooglePay/ApplePay express stories (#2468) 2023-12-04 10:41:19 +01:00
Yu Long
54d056b38b Fix/redirect component to pass browser info (#2469)
* fix(redirect): collect browserInfo

* test: add unit test

* refactor(giropay-redirect): remove formatData override

* chore: add the changeset
2023-12-04 10:36:19 +01:00
Guilherme Ribeiro
fcf40a1f71 Click to Pay - 3rd party cookies (#2409)
* feat: storing cookies

* feat: tests

* feat: timeout adjust

* fix: removed log

* fix: checking checkbox + styles

* fix: using input email

* feat: ui changes

* feat: removing truncating text feature

* feat: changeset

* fix: code review points

* fix: margins

* feat: translations

* feat: truncating text feature back

* feat: email

* fix: update drop shadow
2023-12-04 09:38:04 +01:00
Guilherme Ribeiro
d7b5dd7bb3 Click to Pay - Replacing loading gif by CSS animation (#2435)
* feat: ctp loading image improvement

* fix: changeset
2023-12-04 09:37:12 +01:00
sponglord
f461447e8b card_stop adding credit/debit class to non-cards (#2465)
* card_stop adding credit/debit class to non-cards

* Adding changeset file
2023-11-23 14:09:53 +01:00
Guilherme Ribeiro
4e6f174da7 Updating Playwright to 1.39.0 (#2448)
* dep: updating version

* fix: ancv fix

* fix typo
2023-11-23 14:06:31 +01:00
sponglord
e5bc41897f new playwright tests to replace the testcafe "usual suspects" (#2438)
* new playwright tests to replace the testcafe "usual suspects"

* Adding "regular" customCard tests for expiryDatePolicies

* Adding "separate" customCard tests for expiryDatePolicies

* Deleting replaced testcafe tests

* Creating dropin page, fixture, model and first test

* First dropin test, for default view of card brands, passes

* Test cover both defaultView and compactView

* cardBrands test moved to separate files inside a 'cardBrands' directory

* Test cover both defaultView and compactView when 'excluded' brands are present

* Utils added that creates Credit Card related references and functionalities for the Dropin

* Deleted replaced e2e tests
2023-11-23 13:19:49 +01:00
renovate[bot]
c47cf6df59 chore(deps): update dependency eslint-plugin-jsx-a11y to v6.8.0 (#2461)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-23 11:22:12 +01:00
renovate[bot]
ea6fa108d6 chore(deps): update dependency eslint-plugin-testing-library to v6 (#2456)
* chore(deps): update dependency eslint-plugin-testing-library to v6

* fix: fix version

* fix: lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: guilhermer <guilherme.ribeiro@adyen.com>
2023-11-23 11:21:49 +01:00
renovate[bot]
4caeb839a4 chore(deps): update dependency @testing-library/jest-dom to v6 (#2455)
* chore(deps): update dependency @testing-library/jest-dom to v6

* feat: types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: guilhermer <guilherme.ribeiro@adyen.com>
2023-11-23 10:53:18 +01:00
renovate[bot]
10498cd536 chore(deps): update actions/setup-node action to v4 (#2450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 15:52:31 +01:00
renovate[bot]
6e6add0167 chore(deps): update actions/checkout action to v4 (#2449)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 15:51:37 +01:00
renovate[bot]
5ba3732016 chore(deps): update dependency @types/jest to v29.5.7 (#2451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 12:51:53 +01:00
renovate[bot]
4fd8435bec chore(deps): update typescript-eslint monorepo to v5.62.0 (#2446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 10:50:19 +01:00
renovate[bot]
315aa45ea3 chore(deps): update dependency webpack-dev-server to v4.15.1 (#2444)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 16:53:26 +01:00
renovate[bot]
3e178107f3 chore(deps): update babel monorepo (#2433)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 15:02:46 +01:00
renovate[bot]
a7bb79eeba chore(deps): update dependency webpack-cli to v5.1.4 (#2443)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 14:35:27 +01:00
renovate[bot]
8becb8dd06 chore(deps): update dependency sass to v1.69.5 (#2442)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 14:34:46 +01:00
renovate[bot]
30a977e8e8 chore(deps): update dependency tslib to v2.6.2 (#2434)
* chore(deps): update dependency tslib to v2.6.2

* fix: fixed tslib type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: guilhermer <guilherme.ribeiro@adyen.com>
2023-11-20 14:34:11 +01:00
renovate[bot]
80a095a6ee chore(deps): update dependency vite to v4.5.0 (#2436)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 14:33:44 +01:00
renovate[bot]
769d6c6774 chore(deps): update dependency eslint to v8.52.0 (#2431)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 14:29:03 +01:00
renovate[bot]
c0435f268c chore(deps): update dependency webpack to v5.89.0 (#2437)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 14:19:15 +01:00
github-actions[bot]
ff8fb6fc0e [ci] release main (#2439)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-20 10:56:08 +01:00
Yu Long
639f69ff12 Merge pull request #2422 from Adyen/fix-riverty-terms-urls
fix: correct the Riverty consent links
2023-11-20 10:22:30 +01:00