diff --git a/tests/e2e/utils/CHANGELOG.md b/tests/e2e/utils/CHANGELOG.md index 59941993f75..0c5e97ef1db 100644 --- a/tests/e2e/utils/CHANGELOG.md +++ b/tests/e2e/utils/CHANGELOG.md @@ -19,6 +19,7 @@ - Added `statuses` optional parameter to `deleteAllRepositoryObjects()` to delete on specific statuses - Added `createOrder()` component util that creates an order using the API with the passed in details - Updated `addShippingZoneAndMethod` to use the API instead of UI to create shipping zones +- Added `getSystemEnvironment()` that gets the current environment from the WooCommerce API. # 0.1.5 diff --git a/tests/e2e/utils/README.md b/tests/e2e/utils/README.md index 32cfe13a5ee..da016482463 100644 --- a/tests/e2e/utils/README.md +++ b/tests/e2e/utils/README.md @@ -149,6 +149,7 @@ This package provides support for enabling retries in tests: | `resetSettingsGroupToDefault` | `settingsGroup` | Reset settings in settings group to default except `select` fields | | `batchCreateOrders` | `orders` | Create a batch of orders using the "Batch Create Order" API endpoint | | `deleteAllOrders` | | Permanently delete all orders | +| `getSystemEnvironment| | Get the current environment from the WooCommerce system status API. ### Page Utilities diff --git a/tests/e2e/utils/src/flows/with-rest-api.js b/tests/e2e/utils/src/flows/with-rest-api.js index ea6a96e0ac5..349c7d22218 100644 --- a/tests/e2e/utils/src/flows/with-rest-api.js +++ b/tests/e2e/utils/src/flows/with-rest-api.js @@ -269,7 +269,7 @@ export const withRestApi = { }, /** - * Get the current envrionment from the WooCommerce system status API. + * Get the current environment from the WooCommerce system status API. * * @returns {Promise} The environment object from the API response. */