saleor-dashboard/cypress/elements/catalog/giftCard/giftCardDialog.js

19 lines
823 B
JavaScript
Raw Normal View History

2021-09-08 11:32:05 +00:00
export const GIFT_CARD_DIALOG = {
amountInput: '[name="balanceAmount"]',
currencySelectButton: '[id="mui-component-select-balanceCurrency"]',
currenciesOptions: '[data-test-id*="select-field-option"]',
2021-09-08 11:32:05 +00:00
expirationOptions: {
setExpiryDateCheckbox: '[name="expirySelected"]',
2021-09-08 11:32:05 +00:00
neverExpireRadioButton: '[value="NEVER_EXPIRE"]',
expiryPeriodRadioButton: '[value="EXPIRY_PERIOD"]',
expiryDateRadioButton: '[value="EXPIRY_DATE"]',
expiryPeriodAmount: '[name="expiryPeriodAmount"]',
expiryPeriodTypeButton: '[id*="select-expiryPeriodType"]',
expiryPeriodMonthType: '[data-test-id="select-field-option-MONTH"]',
2021-09-08 11:32:05 +00:00
expiryDateInput: '[name="expiryDate"]'
},
noteInput: '[name="note"]',
cardCodeText: '[data-test-id="card-code"]',
2021-09-08 11:32:05 +00:00
tagInput: '[data-test-id="gift-card-tag-select-field"]'
};