woocommerce/tests/e2e/core-tests/specs/index.js

125 lines
4.5 KiB
JavaScript
Raw Normal View History

/* eslint-disable jest/expect-expect */
/*
* Internal dependencies
*/
// Setup and onboarding tests
2020-09-29 20:00:34 +00:00
const runActivationTest = require( './activate-and-setup/activate.test' );
const { runOnboardingFlowTest, runTaskListTest } = require( './activate-and-setup/onboarding-tasklist.test' );
const runInitialStoreSettingsTest = require( './activate-and-setup/setup.test' );
// Shopper tests
2021-02-04 19:49:55 +00:00
const runProductBrowseSearchSortTest = require( './shopper/front-end-product-browse-search-sort.test' );
2021-01-09 17:53:12 +00:00
const runCartApplyCouponsTest = require( './shopper/front-end-cart-coupons.test');
2020-09-30 17:41:31 +00:00
const runCartPageTest = require( './shopper/front-end-cart.test' );
2021-01-09 17:49:59 +00:00
const runCheckoutApplyCouponsTest = require( './shopper/front-end-checkout-coupons.test');
2020-09-30 17:41:31 +00:00
const runCheckoutPageTest = require( './shopper/front-end-checkout.test' );
const runMyAccountPageTest = require( './shopper/front-end-my-account.test' );
const runSingleProductPageTest = require( './shopper/front-end-single-product.test' );
const runVariableProductUpdateTest = require( './shopper/front-end-variable-product-updates.test' );
// Merchant tests
2021-03-13 11:26:28 +00:00
const runAddNewShippingZoneTest = require ( './merchant/wp-admin-settings-shipping-zones.test' );
2020-09-30 17:41:31 +00:00
const runCreateCouponTest = require( './merchant/wp-admin-coupon-new.test' );
const runCreateOrderTest = require( './merchant/wp-admin-order-new.test' );
const runEditOrderTest = require( './merchant/wp-admin-order-edit.test' );
2020-09-30 17:41:31 +00:00
const { runAddSimpleProductTest, runAddVariableProductTest } = require( './merchant/wp-admin-product-new.test' );
const runUpdateGeneralSettingsTest = require( './merchant/wp-admin-settings-general.test' );
const runProductSettingsTest = require( './merchant/wp-admin-settings-product.test' );
const runTaxSettingsTest = require( './merchant/wp-admin-settings-tax.test' );
const runOrderStatusFiltersTest = require( './merchant/wp-admin-order-status-filters.test' );
const runOrderRefundTest = require( './merchant/wp-admin-order-refund.test' );
const runOrderApplyCouponTest = require( './merchant/wp-admin-order-apply-coupon.test' );
const runProductEditDetailsTest = require( './merchant/wp-admin-product-edit-details.test' );
const runProductSearchTest = require( './merchant/wp-admin-product-search.test' );
const runMerchantOrdersCustomerPaymentPage = require( './merchant/wp-admin-order-customer-payment-page.test' );
const runMerchantOrderEmailsTest = require( './merchant/wp-admin-order-emails.test' );
// REST API tests
const runExternalProductAPITest = require( './api/external-product.test' );
const runCouponApiTest = require( './api/coupon.test' );
const runGroupedProductAPITest = require( './api/grouped-product.test' );
const runVariableProductAPITest = require( './api/variable-product.test' );
const runSetupOnboardingTests = () => {
runActivationTest();
runOnboardingFlowTest();
runTaskListTest();
runInitialStoreSettingsTest();
};
2020-09-30 17:41:31 +00:00
const runShopperTests = () => {
2021-02-04 19:49:55 +00:00
runProductBrowseSearchSortTest();
runCartApplyCouponsTest();
2020-09-29 20:00:34 +00:00
runCartPageTest();
runCheckoutApplyCouponsTest();
2020-09-29 20:00:34 +00:00
runCheckoutPageTest();
runMyAccountPageTest();
runSingleProductPageTest();
runVariableProductUpdateTest();
2020-09-29 20:00:34 +00:00
};
2020-09-30 17:41:31 +00:00
const runMerchantTests = () => {
2021-03-13 12:49:06 +00:00
runAddNewShippingZoneTest();
2020-09-30 17:41:31 +00:00
runCreateCouponTest();
runCreateOrderTest();
runEditOrderTest();
2020-09-30 17:41:31 +00:00
runAddSimpleProductTest();
runAddVariableProductTest();
runUpdateGeneralSettingsTest();
runProductSettingsTest();
runTaxSettingsTest();
runOrderStatusFiltersTest();
runOrderRefundTest();
runOrderApplyCouponTest();
runProductEditDetailsTest();
runProductSearchTest();
runMerchantOrdersCustomerPaymentPage();
2020-09-30 17:41:31 +00:00
}
const runApiTests = () => {
runExternalProductAPITest();
runGroupedProductAPITest();
runVariableProductAPITest();
runCouponApiTest();
}
module.exports = {
runActivationTest,
runOnboardingFlowTest,
runTaskListTest,
runInitialStoreSettingsTest,
runSetupOnboardingTests,
2021-02-23 08:17:45 +00:00
runExternalProductAPITest,
runGroupedProductAPITest,
runVariableProductAPITest,
runCouponApiTest,
runCartApplyCouponsTest,
2020-09-29 20:00:34 +00:00
runCartPageTest,
runCheckoutApplyCouponsTest,
2020-09-29 20:00:34 +00:00
runCheckoutPageTest,
runMyAccountPageTest,
runSingleProductPageTest,
runVariableProductUpdateTest,
2020-09-30 17:41:31 +00:00
runShopperTests,
runCreateCouponTest,
runCreateOrderTest,
runEditOrderTest,
2020-09-30 17:41:31 +00:00
runAddSimpleProductTest,
runAddVariableProductTest,
runUpdateGeneralSettingsTest,
runProductSettingsTest,
runTaxSettingsTest,
runOrderStatusFiltersTest,
runOrderRefundTest,
runOrderApplyCouponTest,
runProductEditDetailsTest,
runProductSearchTest,
runMerchantOrdersCustomerPaymentPage,
runMerchantOrderEmailsTest,
2020-09-30 17:41:31 +00:00
runMerchantTests,
runAddNewShippingZoneTest,
runProductBrowseSearchSortTest,
runApiTests,
};