From bfa9cc1788a1bd40f64152985d78169c0ec9dcb2 Mon Sep 17 00:00:00 2001 From: Veljko Date: Thu, 28 Jan 2021 11:12:56 +0100 Subject: [PATCH] Reorder test in index and update readme I added also missing for other pull requests that were merged already --- tests/e2e/core-tests/README.md | 3 +++ tests/e2e/core-tests/specs/index.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/core-tests/README.md b/tests/e2e/core-tests/README.md index a75a039f18c..c4bd0caf7bc 100644 --- a/tests/e2e/core-tests/README.md +++ b/tests/e2e/core-tests/README.md @@ -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 diff --git a/tests/e2e/core-tests/specs/index.js b/tests/e2e/core-tests/specs/index.js index 8968b87a15f..5078a7fde71 100644 --- a/tests/e2e/core-tests/specs/index.js +++ b/tests/e2e/core-tests/specs/index.js @@ -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, };