-`runSetupOnboardingTests` - Run all setup and onboarding tests
-`runActivationTest` - Merchant can activate WooCommerce
-`runOnboardingFlowTest` - Merchant can complete onboarding flow
-`runTaskListTest` - Merchant can complete onboarding task list
-`runInitialStoreSettingsTest` - Merchant can complete initial settings
### Merchant
-`runMerchantTests` - Run all merchant tests
-`runCreateCouponTest` - Merchant can create coupon
-`runCreateOrderTest` - Merchant can create order
-`runAddSimpleProductTest` - Merchant can create a simple product
-`runAddVariableProductTest` - Merchant can create a variable product
-`runUpdateGeneralSettingsTest` - Merchant can update general settings
-`runProductSettingsTest` - Merchant can update product settings
-`runTaxSettingsTest` - Merchant can update tax settings
### Shopper
-`runShopperTests` - Run all shopper tests
-`runCartPageTest` - Shopper can view and update cart
-`runCheckoutPageTest` - Shopper can complete checkout
-`runMyAccountPageTest` - Shopper can access my account page
-`runSingleProductPageTest` - Shopper can view single product page
## Contributing a new test
- In your branch create a new `example-test-name.test.js` under the `tests/e2e/core-tests/specs` folder.
- Jest does not allow its global functions to be accessed outside the jest environment. To allow the test code to be published in a package import any jest global functions used in your test
```js
const {
it,
describe,
beforeAll,
} = require( '@jest/globals' );
```
- Wrap your test in a function and export it
```js
const runExampleTestName = () => {
describe('Example test', () => {
beforeAll(async () => {
// ...
});
it('do some example action', async () => {
// ...
});
// ...
});
});
module.exports = runExampleTestName;
```
- Add your test to `tests/e2e/core-tests/specs/index.js`