Reorder test in index and update readme

I added also missing for other pull requests that were merged already
This commit is contained in:
Veljko 2021-01-28 11:12:56 +01:00
parent 57a798c0e9
commit bfa9cc1788
2 changed files with 6 additions and 3 deletions

View File

@ -63,6 +63,9 @@ The functions to access the core tests are:
- `runCheckoutPageTest` - Shopper can complete checkout
- `runMyAccountPageTest` - Shopper can access my account page
- `runSingleProductPageTest` - Shopper can view single product page
- `runMyAccountPayOrderTest` - Shopper can pay for his order in My Account
- `runCartApplyCouponsTest` - Shopper can apply coupons in the cart
- `runCheckoutApplyCouponsTest` - Shopper can apply coupons in the checkout
## Contributing a new test

View File

@ -11,11 +11,11 @@ const runInitialStoreSettingsTest = require( './activate-and-setup/setup.test' )
// Shopper tests
const runCartApplyCouponsTest = require( './shopper/front-end-cart-coupons.test');
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 runMyAccountPayOrderTest = require( './shopper/front-end-my-account-pay-order.test' );
const runMyAccountPageTest = require( './shopper/front-end-my-account.test' );
const runSingleProductPageTest = require( './shopper/front-end-single-product.test' );
const runCheckoutApplyCouponsTest = require( './shopper/front-end-checkout-coupons.test');
// Merchant tests
const runCreateCouponTest = require( './merchant/wp-admin-coupon-new.test' );
@ -38,11 +38,11 @@ const runSetupOnboardingTests = () => {
const runShopperTests = () => {
runCartApplyCouponsTest();
runCartPageTest();
runCheckoutApplyCouponsTest();
runCheckoutPageTest();
runMyAccountPayOrderTest();
runMyAccountPageTest();
runSingleProductPageTest();
runCheckoutApplyCouponsTest();
};
const runMerchantTests = () => {
@ -66,7 +66,6 @@ module.exports = {
runSetupOnboardingTests,
runCartApplyCouponsTest,
runCartPageTest,
runCheckoutApplyCouponsTest,
runCheckoutPageTest,
runMyAccountPayOrderTest,
runMyAccountPageTest,
@ -83,4 +82,5 @@ module.exports = {
runOrderRefundTest,
runOrderApplyCouponTest,
runMerchantTests,
runCheckoutApplyCouponsTest,
};