Add missing e2e tests

This commit adds the tests: `testDifferentStoreCurrenciesWCPay`, `testSubscriptionsInclusion` and `testBusinessDetailsForm`
This commit is contained in:
Fernando Marichal 2022-03-29 19:16:03 -03:00
parent 0368fd8b43
commit 89f6032cba
3 changed files with 12 additions and 10 deletions

View File

@ -449,10 +449,6 @@ const testSubscriptionsInclusion = () => {
await resetWooCommerceState(); await resetWooCommerceState();
} ); } );
afterAll( async () => {
await login.logout();
} );
it( 'can complete the store details section', async () => { it( 'can complete the store details section', async () => {
await profileWizard.navigate(); await profileWizard.navigate();
await profileWizard.storeDetails.completeStoreDetailsSection( { await profileWizard.storeDetails.completeStoreDetailsSection( {
@ -533,7 +529,6 @@ const testBusinessDetailsForm = () => {
const login = new Login( page ); const login = new Login( page );
beforeAll( async () => { beforeAll( async () => {
await login.login();
await resetWooCommerceState(); await resetWooCommerceState();
} ); } );

View File

@ -195,7 +195,11 @@
"onboardingwizard": { "onboardingwizard": {
"industry": "Test industry", "industry": "Test industry",
"numberofproducts": "1 - 10", "numberofproducts": "1 - 10",
"sellingelsewhere": "No" "sellingelsewhere": "No",
"sellingOnAnotherPlatform": "Yes, on another platform",
"number_employees": "< 10",
"revenue": "Up to $2,500.00",
"other_platform_name": "Etsy"
}, },
"settings": { "settings": {
"shipping": { "shipping": {

View File

@ -1,11 +1,11 @@
const { const {
testAdminOnboardingWizard, testAdminOnboardingWizard,
testSelectiveBundleWCPay, testSelectiveBundleWCPay,
testDifferentStoreCurrenciesWCPay,
testSubscriptionsInclusion,
testBusinessDetailsForm,
} = require( '@woocommerce/admin-e2e-tests' ); } = require( '@woocommerce/admin-e2e-tests' );
const { const { withRestApi, IS_RETEST_MODE } = require( '@woocommerce/e2e-utils' );
withRestApi,
IS_RETEST_MODE,
} = require( '@woocommerce/e2e-utils' );
// Reset onboarding profile when re-running tests on a site // Reset onboarding profile when re-running tests on a site
if ( IS_RETEST_MODE ) { if ( IS_RETEST_MODE ) {
@ -14,3 +14,6 @@ if ( IS_RETEST_MODE ) {
testAdminOnboardingWizard(); testAdminOnboardingWizard();
testSelectiveBundleWCPay(); testSelectiveBundleWCPay();
testDifferentStoreCurrenciesWCPay();
testSubscriptionsInclusion();
testBusinessDetailsForm();