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

View File

@ -195,7 +195,11 @@
"onboardingwizard": {
"industry": "Test industry",
"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": {
"shipping": {

View File

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