saleor-dashboard/cypress/elements/discounts/vouchers.js
Karolina 0da6012bc4
Saleor 1746 tests for vouchers (#1014)
* tests for vouchers

* test for vouchers

* test for vouchers

* add getDefaultAddress
2021-03-23 11:15:39 +01:00

9 lines
443 B
JavaScript

export const VOUCHERS_SELECTORS = {
createVoucherButton: "[data-test-id='create-voucher']",
voucherCodeInput: "[name='code']",
discountRadioButtons: "[name='discountType']",
percentageDiscountRadioButton: "[name='discountType'][value='PERCENTAGE']",
fixedDiscountRadioButton: "[name='discountType'][value='FIXED']",
shippingDiscountRadioButton: "[name='discountType'][value='SHIPPING']",
discountValueInputs: "[name='value']"
};