Skip to content

Commit 6876e2b

Browse files
authored
Merge branch 'main' into COSDK-618-update-pix-code-ui
2 parents 5538818 + 64742df commit 6876e2b

File tree

34 files changed

+240
-186
lines changed

34 files changed

+240
-186
lines changed

.changeset/real-dancers-cut.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@adyen/adyen-web': minor
3+
---
4+
5+
- Improve responsiveness of Segmented controller component and fix font size
6+
- Improve paypal button unit tests

.changeset/sixty-aliens-bet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@adyen/adyen-web': minor
3+
---
4+
5+
Allow leading zeros for payto phone number input

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @sponglord @m1aw @ribeiroguilherme @longyulongyu @johnayeni
1+
* @adyen/checkout-web

.github/workflows/automated-a11y.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
jobs:
1111
automated-a11y:
12-
if: ${{ github.actor != 'renovate[bot]' && github.actor != 'lgtm-com[bot]' }}
1312
timeout-minutes: 60
1413
runs-on: ubuntu-latest
1514
strategy:

.github/workflows/e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
jobs:
88
build-then-e2e:
9-
if: ${{ github.actor != 'renovate[bot]' && github.actor != 'lgtm-com[bot]' }}
109
timeout-minutes: 120
1110
runs-on: ubuntu-latest
1211
strategy:

packages/e2e-playwright/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@adyen/adyen-web-server": "1.0.0",
1717
"@playwright/test": "1.50.0",
1818
"cross-env": "^10.0.0",
19-
"dotenv": "17.2.1",
19+
"dotenv": "17.2.2",
2020
"ts-loader": "9.4.4",
2121
"typescript": "5.2.2",
2222
"@axe-core/playwright": "^4.10.1"

packages/e2e-playwright/tests/e2e/card/fastlane.signup.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from '../../../fixtures/card.fixture';
2-
import { MAESTRO_CARD, PAYMENT_RESULT, REGULAR_TEST_CARD, TEST_CVC_VALUE, TEST_DATE_VALUE, VISA_CARD } from '../../utils/constants';
2+
import { THREEDS2_MAESTRO_CARD, PAYMENT_RESULT, REGULAR_TEST_CARD, TEST_CVC_VALUE, TEST_DATE_VALUE, VISA_CARD } from '../../utils/constants';
33
import { URL_MAP } from '../../../fixtures/URL_MAP';
44
import { paymentSuccessfulMock } from '../../../mocks/payments/payments.mock';
55
import { getStoryUrl } from '../../utils/getStoryUrl';
@@ -28,7 +28,7 @@ test.describe('Card - Fastlane Sign up', () => {
2828
await expect(cardWithFastlane.fastlaneElement).not.toBeVisible();
2929

3030
// Enter brand not supported by fastlame (MAESTRO)
31-
await cardWithFastlane.typeCardNumber(MAESTRO_CARD);
31+
await cardWithFastlane.typeCardNumber(THREEDS2_MAESTRO_CARD);
3232
await cardWithFastlane.typeCvc(TEST_CVC_VALUE);
3333
await cardWithFastlane.typeExpiryDate(TEST_DATE_VALUE);
3434
await expect(cardWithFastlane.fastlaneElement).not.toBeVisible();
@@ -80,7 +80,7 @@ test.describe('Card - Fastlane Sign up', () => {
8080
const paymentsRequestPromise = page.waitForRequest(request => request.url().includes('/payments') && request.method() === 'POST');
8181

8282
await cardWithFastlane.goto(URL_MAP.cardWithFastlane);
83-
await cardWithFastlane.typeCardNumber(MAESTRO_CARD);
83+
await cardWithFastlane.typeCardNumber(THREEDS2_MAESTRO_CARD);
8484
await cardWithFastlane.typeCvc(TEST_CVC_VALUE);
8585
await cardWithFastlane.typeExpiryDate(TEST_DATE_VALUE);
8686
await expect(cardWithFastlane.fastlaneElement).not.toBeVisible();

packages/e2e-playwright/tests/e2e/dropin/storedCard/stored-card-maestro.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { test, expect } from '../../../../fixtures/dropin.fixture';
22
import { URL_MAP } from '../../../../fixtures/URL_MAP';
3-
import { MAESTRO_CARD, PAYMENT_RESULT, TEST_CVC_VALUE, THREEDS2_CHALLENGE_PASSWORD } from '../../../utils/constants';
3+
import { THREEDS2_MAESTRO_CARD, PAYMENT_RESULT, TEST_CVC_VALUE, THREEDS2_CHALLENGE_PASSWORD } from '../../../utils/constants';
44
import { Card } from '../../../../models/card';
55
import { getCardNumberLast4 } from '../../../utils/cards';
66

77
test.describe('Stored Maestro card - cvc optional', () => {
88
// When user do not fill in the cvc
99
test('should make a successful payment without the cvc code', async ({ dropinWithSession, page }) => {
1010
await dropinWithSession.goto(URL_MAP.dropinWithSession);
11-
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(MAESTRO_CARD));
11+
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(THREEDS2_MAESTRO_CARD));
1212

1313
const card = new Card(page, paymentMethodDetailsLocator);
1414

@@ -22,7 +22,7 @@ test.describe('Stored Maestro card - cvc optional', () => {
2222
// When user fills in the cvc
2323
test('should make a successful payment after filling in the correct 3ds challenge password', async ({ dropinWithSession, page }) => {
2424
await dropinWithSession.goto(URL_MAP.dropinWithSession);
25-
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(MAESTRO_CARD));
25+
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(THREEDS2_MAESTRO_CARD));
2626

2727
const card = new Card(page, paymentMethodDetailsLocator);
2828

@@ -37,7 +37,7 @@ test.describe('Stored Maestro card - cvc optional', () => {
3737

3838
test('should decline the payment after filling in the wrong 3ds challenge password', async ({ dropinWithSession, page }) => {
3939
await dropinWithSession.goto(URL_MAP.dropinWithSession);
40-
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(MAESTRO_CARD));
40+
const { paymentMethodDetailsLocator } = await dropinWithSession.selectFirstStoredPaymentMethod('maestro', getCardNumberLast4(THREEDS2_MAESTRO_CARD));
4141

4242
const card = new Card(page, paymentMethodDetailsLocator);
4343

packages/e2e-playwright/tests/ui/card/binLookup/cvc/card.cvc.policies.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from '../../../../../fixtures/card.fixture';
2-
import { MAESTRO_CARD, BCMC_CARD } from '../../../../utils/constants';
2+
import { THREEDS2_MAESTRO_CARD, BCMC_CARD } from '../../../../utils/constants';
33
import { URL_MAP } from '../../../../../fixtures/URL_MAP';
44
import { getStoryUrl } from '../../../../utils/getStoryUrl';
55

@@ -41,7 +41,7 @@ test.describe('Card - testing /binLookup as it affects the cvc field', () => {
4141
await card.goto(getStoryUrl({ baseUrl: URL_MAP.card, componentConfig }));
4242

4343
// PAN that will trigger /binLookup with cvcPolicy:"optional"
44-
await card.typeCardNumber(MAESTRO_CARD);
44+
await card.typeCardNumber(THREEDS2_MAESTRO_CARD);
4545

4646
// Optional cvc field
4747
await expect(card.cvcField).toBeVisible();

packages/e2e-playwright/tests/ui/card/branding/card.branding.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test as base, expect } from '../../../../fixtures/base-fixture';
2-
import { MAESTRO_CARD, TEST_CVC_VALUE, TEST_DATE_VALUE } from '../../../utils/constants';
2+
import { THREEDS2_MAESTRO_CARD, TEST_CVC_VALUE, TEST_DATE_VALUE } from '../../../utils/constants';
33
import LANG from '../../../../../server/translations/en-US.json';
44
import { Card } from '../../../../models/card';
55
import { getStoryUrl } from '../../../utils/getStoryUrl';
@@ -88,7 +88,7 @@ test.describe('Testing branding - especially regarding optional and hidden cvc f
8888
'#2 Test card is valid with maestro details (cvc optional)' + 'then test it is invalid (& brand reset) when number deleted',
8989
async ({ page, cardBrandingPage }) => {
9090
// Maestro
91-
await cardBrandingPage.typeCardNumber(MAESTRO_CARD);
91+
await cardBrandingPage.typeCardNumber(THREEDS2_MAESTRO_CARD);
9292
await cardBrandingPage.typeExpiryDate(TEST_DATE_VALUE);
9393

9494
// maestro card icon
@@ -135,7 +135,7 @@ test.describe('Testing branding - especially regarding optional and hidden cvc f
135135
'then test it is valid if cvc deleted',
136136
async ({ page, cardBrandingPage }) => {
137137
// Maestro
138-
await cardBrandingPage.typeCardNumber(MAESTRO_CARD);
138+
await cardBrandingPage.typeCardNumber(THREEDS2_MAESTRO_CARD);
139139
await cardBrandingPage.typeExpiryDate(TEST_DATE_VALUE);
140140

141141
// Partial cvc

0 commit comments

Comments
 (0)