reset onboarding on retest

This commit is contained in:
Ron Rennick 2021-08-27 11:12:13 -03:00
parent 614ae96516
commit d129a980d9
2 changed files with 12 additions and 3 deletions

View File

@ -11,7 +11,7 @@ const { addConsoleSuppression, updateReadyPageStatus } = require( '@woocommerce/
const { DEFAULT_TIMEOUT_OVERRIDE } = process.env;
// @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

View File

@ -2,6 +2,15 @@ const {
testAdminOnboardingWizard,
testSelectiveBundleWCPay,
} = 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();
testSelectiveBundleWCPay();