addProductToOrder |
orderId, productName |
adds a product to an order using the product search |
applyCoupon |
couponName |
helper method which applies a coupon in cart or checkout |
clearAndFillInput |
selector, value |
Replace the contents of an input with the passed value |
clickFilter |
selector |
helper method that clicks on a list page filter |
clickTab |
tabName |
Click on a WooCommerce -> Settings tab |
clickUpdateOrder |
noticeText , waitForSave |
Helper method to click the Update button on the order details page |
completeOnboardingWizard |
|
completes the onboarding wizard with some default settings |
createCoupon |
couponAmount , couponType |
creates a basic coupon. Default amount is 5. Default coupon type is fixed discount. Returns the generated coupon code. |
createGroupedProduct |
|
creates a grouped product for the grouped product tests. Returns the product id. |
createSimpleOrder |
status |
creates a basic order with the provided status string |
createSimpleProduct |
|
creates the simple product configured in default.json. Returns the product id. |
createSimpleProductWithCategory |
name , price ,categoryName |
creates a simple product used passed values. Returns the product id. |
createVariableProduct |
|
creates a variable product for the variable product tests. Returns the product id. |
deleteAllEmailLogs |
|
deletes the emails generated by WP Mail Logging plugin |
evalAndClick |
selector |
helper method that clicks an element inserted in the DOM by a script |
moveAllItemsToTrash |
|
helper method that checks every item in a list page and moves them to the trash |
permalinkSettingsPageSaveChanges |
|
Save the current Permalink settings |
removeCoupon |
|
helper method that removes a single coupon within cart or checkout |
selectOptionInSelect2 |
selector, value |
helper method that searchs for select2 type fields and select plus insert value inside |
selectOrderAction |
action |
Helper method to select an order action in the Order Actions postbox |
setCheckbox |
selector |
Check a checkbox |
settingsPageSaveChanges |
|
Save the current WooCommerce settings page |
uiUnblocked |
|
Wait until the page is unblocked |
unsetCheckbox |
selector |
Uncheck a checkbox |
verifyAndPublish |
noticeText |
Verify that an item can be published |
verifyCheckboxIsSet |
selector |
Verify that a checkbox is checked |
verifyCheckboxIsUnset |
selector |
Verify that a checkbox is unchecked |
verifyPublishAndTrash |
button, publishNotice, publishVerification, trashVerification |
Verify that an item can be published and trashed |
verifyValueOfInputField |
selector, value |
Verify an input contains the passed value |
clickFilter |
selector |
Click on a list page filter |
moveAllItemsToTrash |
|
Moves all items in a list view to the Trash |
verifyAndPublish |
noticeText |
Verify that an item can be published |
selectOptionInSelect2 |
selector, value |
helper method that searchs for select2 type fields and select plus insert value inside |
searchForOrder |
value, orderId, customerName |
helper method that searchs for an order via many different terms |
addShippingZoneAndMethod |
zoneName, zoneLocation, zipCode, zoneMethod |
util helper method for adding shipping zones with shipping methods |
applyCoupon |
couponName |
helper method which applies a coupon in cart or checkout |
removeCoupon |
|
helper method that removes a single coupon within cart or checkout |
selectOrderAction |
action |
Helper method to select an order action in the Order Actions postbox |
clickUpdateOrder |
noticeText , waitForSave |
Helper method to click the Update button on the order details page |
deleteAllShippingZones |
|
Delete all the existing shipping zones |