reset onboarding on retest
This commit is contained in:
parent
614ae96516
commit
d129a980d9
|
@ -11,7 +11,7 @@ const { addConsoleSuppression, updateReadyPageStatus } = require( '@woocommerce/
|
||||||
const { DEFAULT_TIMEOUT_OVERRIDE } = process.env;
|
const { DEFAULT_TIMEOUT_OVERRIDE } = process.env;
|
||||||
|
|
||||||
// @todo: remove this once https://github.com/woocommerce/woocommerce-admin/issues/6992 has been addressed
|
// @todo: remove this once https://github.com/woocommerce/woocommerce-admin/issues/6992 has been addressed
|
||||||
addConsoleSuppression( 'woocommerce_shared_settings' );
|
addConsoleSuppression( 'woocommerce_shared_settings', false );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uses the WordPress API to delete all existing posts
|
* Uses the WordPress API to delete all existing posts
|
||||||
|
|
|
@ -2,6 +2,15 @@ const {
|
||||||
testAdminOnboardingWizard,
|
testAdminOnboardingWizard,
|
||||||
testSelectiveBundleWCPay,
|
testSelectiveBundleWCPay,
|
||||||
} = require( '@woocommerce/admin-e2e-tests' );
|
} = require( '@woocommerce/admin-e2e-tests' );
|
||||||
|
const {
|
||||||
|
withRestApi,
|
||||||
|
IS_RETEST_MODE,
|
||||||
|
} = require( '@woocommerce/e2e-utils' );
|
||||||
|
|
||||||
|
// Reset onboarding profile when re-running tests on a site
|
||||||
|
if ( IS_RETEST_MODE ) {
|
||||||
|
withRestApi.resetOnboarding();
|
||||||
|
}
|
||||||
|
|
||||||
testAdminOnboardingWizard();
|
testAdminOnboardingWizard();
|
||||||
testSelectiveBundleWCPay();
|
testSelectiveBundleWCPay();
|
||||||
|
|
Loading…
Reference in New Issue