5.9 KiB
5.9 KiB
Unreleased
Changes
- Removed
page.waitForNavigation()
fromshopper.logout()
Added
utils.waitForTimeout( delay )
pause processing fordelay
millisecondsAdminEdit
class with utility functions for the respective edit screens- Update
shopper.addToCartFromShopPage()
and.removeFromCart()
to accept product Id or Title - Added
deleteAllProductAttributes()
,deleteAllProductCategories()
, anddeleteAllProductTags()
to clean up meta data added when products are imported - Added
withRestApi.createProductCategory()
that creates a product category and returns the ID deleteAllProductAttributes()
,deleteAllProductCategories()
, anddeleteAllProductTags()
to clean up meta data added when products are importedwithRestApi.createProductCategory()
that creates a product category and returns the IDwithRestApi.deleteCoupon()
that deletes a single couponwithRestApi.addTaxClasses()
that adds an array of tax classes if they do not existwithRestApi.addTaxRates()
that adds an array of tax rates if they do not existclickAndWaitForSelector( buttonSelector, resultSelector, timeout )
to click a button and wait for response- Optional parameter
testResponse
towithRestApi
functions that contain anexpect()
shopper.logout()
to log out the shopper account
0.1.6
Added
- Factories for variable product, variation, and grouped product
- New function to create orders by batch using the orders API
- Added new constant for WordPress update page
WP_ADMIN_WP_UPDATES
- Added new merchant flow for
openWordPressUpdatesPage()
- Added new merchant flows:
openWordPressUpdatesPage()
installAllUpdates()
- Added
getSlug()
helper to return the slug string for a provided string - Added
describeIf()
to conditionally run a test suite - Added
itIf()
to conditionally run a test case. - Added merchant workflows around plugins:
uploadAndActivatePlugin()
,activatePlugin()
,deactivatePlugin()
,deletePlugin()
- Added merchant workflows checking for a database update and performing the update if needed:
runDatabaseUpdate()
- Added
deleteAllOrders()
that goes through and deletes all orders - Added
deleteAllShippingClasses()
which permanently deletes all shipping classes using the API - Added
statuses
optional parameter todeleteAllRepositoryObjects()
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
updateSettingOption()
to use the API to update a setting option - Added
updatePaymentGateway()
to use the API to update a payment gateway - Added
getSystemEnvironment()
that gets the current environment from the WooCommerce API.
0.1.5
Added
emptyCart()
Shopper flow helper that empties the cartdeleteAllShippingZones()
Delete all the existing shipping zones- constants
WP_ADMIN_POST_TYPE
WP_ADMIN_NEW_POST_TYPE
WP_ADMIN_ALL_COUPONS_VIEW
WP_ADMIN_WC_HOME
IS_RETEST_MODE
withRestApi
flow containing utility functions that manage data with the rest apiwaitForSelectorWithoutThrow
- conditionally wait for a selector without throwing an error
0.1.4
Fixed
- build issue with faker import
0.1.3
Added
selectOptionInSelect2( selector, value )
util helper method that search and select in any select2 type fieldsearchForOrder( value, orderId, customerName )
util helper method that search order with different termsaddShippingZoneAndMethod( zoneName, zoneLocation, zipCode, zoneMethod )
util helper method for adding shipping zones with shipping methodscreateSimpleProductWithCategory
component which creates a simple product with categories, containing three parameters for title, price and category name.applyCoupon( couponName )
util helper method which applies previously created coupon to cart or checkoutremoveCoupon()
util helper method that removes a single coupon within cart or checkoutselectOrderAction( action )
util helper method to select and initiate an order action in the Order Action postboxmerchant.openEmailLog()
go to the WP Mail Log pagedeleteAllEmailLogs
delete all email logs in the WP Mail Log pluginclickUpdateOrder( noticeText, waitForSave )
util helper that clicks theUpdate
button on an order
Changed
- Added coupon type parameter to
createCoupon( couponAmount, couponType )
. Default coupon type is fixed cart.
0.1.2
Fixed
- Missing
config
package dependency - Added
page.removeAllListeners('dialog')
tocreateVariableProduct()
to fix dialog already handled errors
Added
shopper.gotoMyAccount()
go to the /my-account/ pageclickFilter()
util helper method that clicks on a list page filtermoveAllItemsToTrash()
util helper method that checks every item in a list page and moves them to the trashcreateSimpleOrder( status )
component which accepts an order status string and creates a basic order with that statusaddProductToOrder( orderId, productName )
component which adds the provided productName to the passed in orderIdcreateCoupon( couponAmount )
component which accepts a coupon amount string (it defaults to 5) and creates a basic coupon. Returns the generated coupon code.evalAndClick( selector )
use Puppeteer page.$eval to select and click and element.
Changes
- Deprecated
StoreOwnerFlow
,CustomerFlow
in favour ofmerchant
,shopper
createSimpleOrder( status )
returns the ID of the order that was created- Updated
createCoupon( couponAmount )
component by adding a new parameterdiscountType
which allows you to use any coupon discount type in tests - 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.
0.1.1
- Initial/beta release