Added admin email config override

This commit is contained in:
Greg 2021-08-05 19:39:30 -06:00
parent 33521dd4fc
commit 8ccbbab8ab
3 changed files with 4 additions and 3 deletions

View File

@ -32,6 +32,7 @@ jobs:
SMOKE_TEST_URL: ${{ secrets.SMOKE_TEST_URL }} SMOKE_TEST_URL: ${{ secrets.SMOKE_TEST_URL }}
SMOKE_TEST_ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }} SMOKE_TEST_ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
SMOKE_TEST_ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }} SMOKE_TEST_ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
SMOKE_TEST_ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
SMOKE_TEST_CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }} SMOKE_TEST_CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
SMOKE_TEST_CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }} SMOKE_TEST_CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
WC_E2E_SCREENSHOTS: 1 WC_E2E_SCREENSHOTS: 1

View File

@ -1,4 +1,3 @@
/* eslint-disable jest/no-export, jest/no-disabled-tests, jest/no-standalone-expect */
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -12,7 +11,7 @@ const {
const config = require( 'config' ); const config = require( 'config' );
const customerEmail = config.get( 'addresses.customer.billing.email' ); const customerEmail = config.get( 'addresses.customer.billing.email' );
const adminEmail = 'admin@woocommercecoree2etestsuite.com'; const adminEmail = config.has( 'users.admin.email' ) ? config.get( 'users.admin.email' ) : 'admin@woocommercecoree2etestsuite.com';
const storeName = 'WooCommerce Core E2E Test Suite'; const storeName = 'WooCommerce Core E2E Test Suite';
let orderId; let orderId;

View File

@ -3,7 +3,8 @@
"users": { "users": {
"admin": { "admin": {
"username": "SMOKE_TEST_ADMIN_USER", "username": "SMOKE_TEST_ADMIN_USER",
"password": "SMOKE_TEST_ADMIN_PASSWORD" "password": "SMOKE_TEST_ADMIN_PASSWORD",
"email": "SMOKE_TEST_ADMIN_USER_EMAIL"
}, },
"customer": { "customer": {
"username": "SMOKE_TEST_CUSTOMER_USER", "username": "SMOKE_TEST_CUSTOMER_USER",