diff --git a/changelog/update-e2e-setup-script-env-var b/changelog/update-e2e-setup-script-env-var new file mode 100644 index 00000000000..457978d1fae --- /dev/null +++ b/changelog/update-e2e-setup-script-env-var @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Define WooPay Blog ID for e2e env setup + + diff --git a/tests/e2e/README.md b/tests/e2e/README.md index 7d77591fd19..35b5e5c5e5f 100644 --- a/tests/e2e/README.md +++ b/tests/e2e/README.md @@ -45,6 +45,7 @@ E2E_WCPAY_STRIPE_TEST_SECRET_KEY= E2E_WCPAY_STRIPE_TEST_WEBHOOK_SIGNATURE_KEY= # This should be the Stripe Account ID of a connected merchant account. For example, after onboarding an account, you can obtain the ID from WCPay Dev Tools. E2E_WCPAY_STRIPE_ACCOUNT_ID= +E2E_WOOPAY_BLOG_ID= ``` **Using Live Server** diff --git a/tests/e2e/env/setup.sh b/tests/e2e/env/setup.sh index 04ddafd834e..50d4313f235 100755 --- a/tests/e2e/env/setup.sh +++ b/tests/e2e/env/setup.sh @@ -61,6 +61,7 @@ if [[ "$E2E_USE_LOCAL_SERVER" != false ]]; then define( 'WCPAY_STRIPE_LIVE_SECRET_KEY', 'sk_live_XXXXXXX' ); define( 'WCPAY_ONBOARDING_ENCRYPT_KEY', str_repeat( 'a', SODIUM_CRYPTO_SECRETBOX_KEYBYTES ) ); define( 'WOOPAY_URL', 'https://pay.woo.com' ); + define( 'WOOPAY_BLOG_ID', '$E2E_WOOPAY_BLOG_ID' ); " printf "$SECRETS" > "local/secrets.php" echo "Secrets created"