81 lines
2.7 KiB
JavaScript
81 lines
2.7 KiB
JavaScript
/* eslint-disable jest/expect-expect */
|
|
/*
|
|
* Internal dependencies
|
|
*/
|
|
|
|
// Setup and onboarding tests
|
|
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
|
|
const runCartPageTest = require( './shopper/front-end-cart.test' );
|
|
const runCheckoutApplyCouponsTest = require( './shopper/front-end-checkout-coupons.test');
|
|
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' );
|
|
|
|
// Merchant tests
|
|
const runCreateCouponTest = require( './merchant/wp-admin-coupon-new.test' );
|
|
const runCreateOrderTest = require( './merchant/wp-admin-order-new.test' );
|
|
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 runSetupOnboardingTests = () => {
|
|
runActivationTest();
|
|
runOnboardingFlowTest();
|
|
runTaskListTest();
|
|
runInitialStoreSettingsTest();
|
|
};
|
|
|
|
const runShopperTests = () => {
|
|
runCartPageTest();
|
|
runCheckoutApplyCouponsTest();
|
|
runCheckoutPageTest();
|
|
runMyAccountPageTest();
|
|
runSingleProductPageTest();
|
|
};
|
|
|
|
const runMerchantTests = () => {
|
|
runCreateCouponTest();
|
|
runCreateOrderTest();
|
|
runAddSimpleProductTest();
|
|
runAddVariableProductTest();
|
|
runUpdateGeneralSettingsTest();
|
|
runProductSettingsTest();
|
|
runTaxSettingsTest();
|
|
runOrderStatusFiltersTest();
|
|
runOrderRefundTest();
|
|
runOrderApplyCouponTest();
|
|
}
|
|
|
|
module.exports = {
|
|
runActivationTest,
|
|
runOnboardingFlowTest,
|
|
runTaskListTest,
|
|
runInitialStoreSettingsTest,
|
|
runSetupOnboardingTests,
|
|
runCartPageTest,
|
|
runCheckoutApplyCouponsTest,
|
|
runCheckoutPageTest,
|
|
runMyAccountPageTest,
|
|
runSingleProductPageTest,
|
|
runShopperTests,
|
|
runCreateCouponTest,
|
|
runCreateOrderTest,
|
|
runAddSimpleProductTest,
|
|
runAddVariableProductTest,
|
|
runUpdateGeneralSettingsTest,
|
|
runProductSettingsTest,
|
|
runTaxSettingsTest,
|
|
runOrderStatusFiltersTest,
|
|
runOrderRefundTest,
|
|
runOrderApplyCouponTest,
|
|
runMerchantTests,
|
|
};
|