2020-11-05 20:57:04 +00:00
# Unreleased
2021-01-22 13:22:33 +00:00
# 0.1.2
2020-12-01 23:19:10 +00:00
## Fixed
- Missing `config` package dependency
2021-02-10 18:23:56 +00:00
- Added `page.removeAllListeners('dialog')` to `createVariableProduct()` to fix dialog already handled errors
2020-12-01 23:19:10 +00:00
2020-11-27 21:49:20 +00:00
## Added
2020-12-08 22:50:00 +00:00
2020-12-22 13:59:16 +00:00
- `shopper.gotoMyAccount()` go to the /my-account/ page
2020-11-27 21:49:20 +00:00
- `clickFilter()` util helper method that clicks on a list page filter
- `moveAllItemsToTrash()` util helper method that checks every item in a list page and moves them to the trash
- `createSimpleOrder( status )` component which accepts an order status string and creates a basic order with that status
2020-12-11 04:27:04 +00:00
- `addProductToOrder( orderId, productName )` component which adds the provided productName to the passed in orderId
2020-12-16 22:00:13 +00:00
- `createCoupon( couponAmount )` component which accepts a coupon amount string (it defaults to 5) and creates a basic coupon. Returns the generated coupon code.
2020-12-29 19:56:55 +00:00
- `evalAndClick( selector )` use Puppeteer page.$eval to select and click and element.
2021-01-19 17:20:04 +00:00
- `selectOptionInSelect2( selector, value )` util helper method that search and select in any select2 type field
2021-03-03 16:57:11 +00:00
- `selectOrderAction( action )` util helper method to selcct and initiate an order action in the Order Action postbox
- `merchant.openEmailLog()` go to the WP Mail Log page
- `deleteAllEmailLogs` delete all email logs in the WP Mail Log plugin
- `updateOrder()` util helper that clicks the `Update` button on an order
2020-12-11 04:27:04 +00:00
## Changes
2020-12-22 13:59:16 +00:00
- Deprecated `StoreOwnerFlow` , `CustomerFlow` in favour of `merchant` ,`shopper`
2020-12-11 04:27:04 +00:00
- `createSimpleOrder( status )` returns the ID of the order that was created
2021-01-13 18:34:46 +00:00
- Updated `createCoupon( couponAmount )` component by adding a new parameter `discountType` which allows you to use any coupon discount type in tests
2021-01-20 23:19:07 +00:00
- Updated `verifyAndPublish( noticeText )` component by add a new parameter, `noticeText` , that allows passing in the accepted update notice text. For example, with variations on creation or update.
2020-11-27 21:49:20 +00:00
2020-11-05 20:57:04 +00:00
# 0.1.1
- Initial/beta release