diff --git a/packages/js/e2e-utils/CHANGELOG.md b/packages/js/e2e-utils/CHANGELOG.md index 9fef3023ed3..217dc46515a 100644 --- a/packages/js/e2e-utils/CHANGELOG.md +++ b/packages/js/e2e-utils/CHANGELOG.md @@ -10,6 +10,7 @@ - `withRestApi.deleteCoupon()` that deletes a single coupon - `withRestApi.addTaxClasses()` that adds an array of tax classes if they do not exist - `withRestApi.addTaxRates()` that adds an array of tax rates if they do not exist +- Optional parameter `testResponse` to `withRestApi` functions that contain an `expect()` # 0.1.6 diff --git a/packages/js/e2e-utils/README.md b/packages/js/e2e-utils/README.md index 4e17767d1ac..03570ec8b24 100644 --- a/packages/js/e2e-utils/README.md +++ b/packages/js/e2e-utils/README.md @@ -142,25 +142,26 @@ Please note: if you're using a non-SSL environment (such as a Docker container f | Function | Parameters | Description | |----------|------------|-------------| -| `batchCreateOrders` | `orders` | Create a batch of orders using the "Batch Create Order" API endpoint | +| `addShippingZoneAndMethod` | `zoneName`, `zoneLocation`, `zipCode`, `zoneMethod`, `cost`, `additionalZoneMethods`, `testResponse` | Adds a shipping zone along with a shipping method | +| `batchCreateOrders` | `orders`, `testResponse` | Create a batch of orders using the "Batch Create Order" API endpoint | | `addTaxClasses` | `taxClasses` | Add an array of tax classes if they do not exist | | `addTaxRates` | `taxRates` | Add an array of tax rates if they do not exist | | `createProductCategory` | `categoryName` | Create a product category with the provided name | | `deleteAllCoupons` | | Permanently delete all coupons | | `deleteAllOrders` | | Permanently delete all orders | -| `deleteAllProductAttributes` | | Permanently delete all product attributes | -| `deleteAllProductCategories` | | Permanently delete all product categories | +| `deleteAllProductAttributes` | `testResponse` | Permanently delete all product attributes | +| `deleteAllProductCategories` | `testResponse` | Permanently delete all product categories | | `deleteAllProducts` | | Permanently delete all products | -| `deleteAllProductTags` | | Permanently delete all product tags | -| `deleteAllShippingClasses` | Permanently delete all shipping classes | -| `deleteAllShippingZones` | | Permanently delete all shipping zones except the default | +| `deleteAllProductTags` | `testResponse` | Permanently delete all product tags | +| `deleteAllShippingClasses` | `testResponse` | Permanently delete all shipping classes | +| `deleteAllShippingZones` | `testResponse` | Permanently delete all shipping zones except the default | | `deleteCoupon` | `couponId` | Permanently delete a coupon | | `deleteCustomerByEmail` | `emailAddress` | Delete customer user account. Posts are reassigned to user ID 1 | | `getSystemEnvironment` | | Get the current environment from the WooCommerce system status API. | | `resetOnboarding` | | Reset onboarding settings | -| `resetSettingsGroupToDefault` | `settingsGroup` | Reset settings in settings group to default except `select` fields | +| `resetSettingsGroupToDefault` | `settingsGroup`, `testResponse` | Reset settings in settings group to default except `select` fields | | `updateSettingOption` | `settingsGroup`, `settingID`, `payload` | Update a settings group | -| `updatePaymentGateway`| `paymentGatewayId`, `payload` | Update a payment gateway | +| `updatePaymentGateway`| `paymentGatewayId`, `payload`, `testResponse` | Update a payment gateway | ### Classes