woocommerce-paypal-payments/tests/qa/resources/guests.ts
Misha Utkin fbc9cc4a25
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
Fix emails for fastlane
2025-11-21 20:28:17 +01:00

84 lines
1.8 KiB
TypeScript

/**
* External dependencies
*/
import { guests as guestsBase } from '@inpsyde/playwright-utils/build/e2e/plugins/woocommerce';
const emailGary = `guest-${ Date.now() }@personal.example.us`;
const usaFastlaneGary: WooCommerce.CreateCustomer = {
email: emailGary,
first_name: 'Gary',
last_name: 'From-USA',
birth_date: '12.08.1985',
billing: {
first_name: 'Gary',
last_name: 'From-USA',
company: '',
address_1: '123 Elm Street',
address_2: 'Apt 4B',
city: 'Los Angeles',
state: 'CA',
postcode: '90001',
country: 'US',
countryName: 'United States (US)',
email: emailGary,
phone: '2135551234',
},
shipping: {
first_name: 'Gary',
last_name: 'From-USA',
company: '',
address_1: '123 Elm Street',
address_2: 'Apt 4B',
city: 'Los Angeles',
state: 'CA',
postcode: '90001',
country: 'US',
countryName: 'United States (US)',
email: emailGary,
phone: '2135551234',
},
};
const emailRyan = 'test-whitelistallblock-1@example.com';
const usaFastlaneRyan: WooCommerce.CreateCustomer = {
email: emailRyan,
first_name: 'Fred',
last_name: 'Flintstone',
birth_date: '05.11.1990',
billing: {
first_name: 'Fred',
last_name: 'Flintstone',
company: '',
address_1: '4262 Stanley Blvd',
address_2: '',
city: 'Pleasanton',
state: 'CA',
postcode: '94566',
country: 'US',
countryName: 'United States (US)',
email: emailRyan,
phone: '4026607986',
},
shipping: {
first_name: 'Fred',
last_name: 'Flintstone',
company: '',
address_1: '4262 Stanley Blvd',
address_2: '',
city: 'Pleasanton',
state: 'CA',
postcode: '94566',
country: 'US',
countryName: 'United States (US)',
email: emailRyan,
phone: '4026607986',
},
};
export const guests: {
[ key: string ]: WooCommerce.CreateCustomer;
} = {
...guestsBase,
usaFastlaneGary,
usaFastlaneRyan,
};