deprecate core e2e setup, onboarding tests
This commit is contained in:
parent
2bac37f4e6
commit
2f9a6a32c2
|
@ -11,6 +11,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/globals": "^26.4.2",
|
"@jest/globals": "^26.4.2",
|
||||||
|
"@wordpress/deprecated": "^3.2.3",
|
||||||
"config": "3.3.3",
|
"config": "3.3.3",
|
||||||
"faker": "^5.1.0"
|
"faker": "^5.1.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
const { merchant } = require( '@woocommerce/e2e-utils' );
|
const { merchant } = require( '@woocommerce/e2e-utils' );
|
||||||
|
const deprecated = require( '@wordpress/deprecated' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* External dependencies
|
* External dependencies
|
||||||
|
@ -19,6 +20,10 @@ const runActivationTest = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can make sure WooCommerce is activated. If not, activate it', async () => {
|
it('can make sure WooCommerce is activated. If not, activate it', async () => {
|
||||||
|
deprecated( 'runActivationTest', {
|
||||||
|
alternative: '@woocommerce/admin-e2e-tests `testAdminBasicSetup()`',
|
||||||
|
});
|
||||||
|
|
||||||
const slug = 'woocommerce';
|
const slug = 'woocommerce';
|
||||||
await merchant.openPlugins();
|
await merchant.openPlugins();
|
||||||
const disableLink = await page.$(`tr[data-slug="${slug}"] .deactivate a`);
|
const disableLink = await page.$(`tr[data-slug="${slug}"] .deactivate a`);
|
||||||
|
|
|
@ -13,6 +13,7 @@ const {
|
||||||
* External dependencies
|
* External dependencies
|
||||||
*/
|
*/
|
||||||
const config = require( 'config' );
|
const config = require( 'config' );
|
||||||
|
const deprecated = require( '@wordpress/deprecated' );
|
||||||
const {
|
const {
|
||||||
it,
|
it,
|
||||||
describe,
|
describe,
|
||||||
|
@ -47,6 +48,9 @@ const runOnboardingFlowTest = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
it('can start and complete onboarding when visiting the site for the first time.', async () => {
|
it('can start and complete onboarding when visiting the site for the first time.', async () => {
|
||||||
|
deprecated( 'runOnboardingFlowTest', {
|
||||||
|
alternative: '@woocommerce/admin-e2e-tests `testAdminOnboardingWizard()`',
|
||||||
|
});
|
||||||
await completeOnboardingWizard();
|
await completeOnboardingWizard();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -59,6 +63,9 @@ const runTaskListTest = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can setup shipping', async () => {
|
it('can setup shipping', async () => {
|
||||||
|
deprecated( 'runTaskListTest', {
|
||||||
|
alternative: '@woocommerce/admin-e2e-tests `testAdminHomescreenTasklist()`',
|
||||||
|
});
|
||||||
await page.evaluate(() => {
|
await page.evaluate(() => {
|
||||||
document.querySelector('.woocommerce-list__item-title').scrollIntoView();
|
document.querySelector('.woocommerce-list__item-title').scrollIntoView();
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,6 +6,7 @@ const {
|
||||||
it,
|
it,
|
||||||
describe,
|
describe,
|
||||||
} = require( '@jest/globals' );
|
} = require( '@jest/globals' );
|
||||||
|
const deprecated = require( '@wordpress/deprecated' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -31,6 +32,9 @@ const runInitialStoreSettingsTest = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can enable tax rates and calculations', async () => {
|
it('can enable tax rates and calculations', async () => {
|
||||||
|
deprecated( 'runInitialStoreSettingsTest', {
|
||||||
|
alternative: '@woocommerce/admin-e2e-tests `testAdminBasicSetup()`',
|
||||||
|
});
|
||||||
// Go to general settings page
|
// Go to general settings page
|
||||||
await merchant.openSettings('general');
|
await merchant.openSettings('general');
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"module": "build-module/index.js",
|
"module": "build-module/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
|
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
|
||||||
"@wordpress/deprecated": "^2.10.0",
|
"@wordpress/deprecated": "^3.2.3",
|
||||||
"@wordpress/e2e-test-utils": "^4.16.1",
|
"@wordpress/e2e-test-utils": "^4.16.1",
|
||||||
"config": "3.3.3",
|
"config": "3.3.3",
|
||||||
"faker": "^5.1.0",
|
"faker": "^5.1.0",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
const { runSetupOnboardingTests } = require( '@woocommerce/e2e-core-tests' );
|
const { runActivationTest, runInitialStoreSettingsTest, runSetupOnboardingTests } = require( '@woocommerce/e2e-core-tests' );
|
||||||
|
|
||||||
|
runActivationTest();
|
||||||
|
runInitialStoreSettingsTest();
|
||||||
runSetupOnboardingTests();
|
runSetupOnboardingTests();
|
||||||
|
|
Loading…
Reference in New Issue