mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-27 01:22:18 +08:00
84 lines
1.8 KiB
TypeScript
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,
|
|
};
|