update package changelogs, minor fixes from full PR review
This commit is contained in:
parent
fcbbb12a8a
commit
c94ddb8803
|
@ -1,5 +1,13 @@
|
|||
# Unreleased
|
||||
|
||||
## Added
|
||||
|
||||
- Support for re-running setup and shopper tests
|
||||
|
||||
## Fixed
|
||||
|
||||
- Checkout create account test would fail if configuration value `addresses.customer.billing.email` was not `john.doe@example.com`
|
||||
|
||||
# 0.1.3
|
||||
|
||||
## Added
|
||||
|
|
|
@ -18,7 +18,6 @@ const config = require( 'config' );
|
|||
const {
|
||||
it,
|
||||
describe,
|
||||
beforeAll
|
||||
} = require( '@jest/globals' );
|
||||
|
||||
const shippingZoneNameUS = config.get( 'addresses.customer.shipping.country' );
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
## Added
|
||||
|
||||
- `toBeInRange` expect numeric range matcher
|
||||
- constants
|
||||
- `WP_ADMIN_POST_TYPE`
|
||||
- `WP_ADMIN_NEW_POST_TYPE`
|
||||
- `WP_ADMIN_ALL_COUPONS_VIEW`
|
||||
- `WP_ADMIN_WC_HOME`
|
||||
|
||||
# 0.2.1
|
||||
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
# Unreleased
|
||||
|
||||
## Added
|
||||
|
||||
- `emptyCart()` Shopper flow helper that empties the cart
|
||||
- constants
|
||||
- `WP_ADMIN_POST_TYPE`
|
||||
- `WP_ADMIN_NEW_POST_TYPE`
|
||||
- `WP_ADMIN_ALL_COUPONS_VIEW`
|
||||
- `WP_ADMIN_WC_HOME`
|
||||
- `IS_RETEST_MODE`
|
||||
- `withRestApi` flow containing utility functions that manage data with the rest api
|
||||
|
||||
# 0.1.4
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ const completeOnboardingWizard = async () => {
|
|||
await page.click( 'button.is-primary', { text: 'Continue' } );
|
||||
|
||||
// Wait for usage tracking pop-up window to appear on a new site
|
||||
if ( IS_RETEST_MODE ) {
|
||||
if ( ! IS_RETEST_MODE ) {
|
||||
await page.waitForSelector('.components-modal__header-heading');
|
||||
await expect(page).toMatchElement(
|
||||
'.components-modal__header-heading', {text: 'Build a better WooCommerce'}
|
||||
|
@ -156,7 +156,7 @@ const completeOnboardingWizard = async () => {
|
|||
await waitAndClickPrimary();
|
||||
|
||||
// End of onboarding wizard
|
||||
if ( process.env.E2E_RETEST == '1' ) {
|
||||
if ( IS_RETEST_MODE ) {
|
||||
// Home screen modal can't be reset via the rest api.
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ const {
|
|||
WP_ADMIN_NEW_SHIPPING_ZONE,
|
||||
WP_ADMIN_ANALYTICS_PAGES,
|
||||
WP_ADMIN_ALL_USERS_VIEW,
|
||||
IS_RETEST_MODE,
|
||||
} = require( './constants' );
|
||||
|
||||
const baseUrl = config.get( 'url' );
|
||||
|
@ -120,7 +121,7 @@ const merchant = {
|
|||
},
|
||||
|
||||
runSetupWizard: async () => {
|
||||
const setupWizard = process.env.E2E_RETEST == '1' ? WP_ADMIN_SETUP_WIZARD : WP_ADMIN_WC_HOME;
|
||||
const setupWizard = IS_RETEST_MODE ? WP_ADMIN_SETUP_WIZARD : WP_ADMIN_WC_HOME;
|
||||
await page.goto( setupWizard, {
|
||||
waitUntil: 'networkidle0',
|
||||
} );
|
||||
|
|
|
@ -92,6 +92,12 @@ export const withRestApi = {
|
|||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Delete a customer account by their email address if the user exists.
|
||||
*
|
||||
* @param emailAddress Customer user account email address.
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
deleteCustomerByEmail: async ( emailAddress ) => {
|
||||
const query = {
|
||||
search: emailAddress,
|
||||
|
|
Loading…
Reference in New Issue