saleor-dashboard/cypress/elements/orders/order-grant-refund.js
Anna Szczęch 70c7f3a2f8
Add e2e for capture transactions in orders (#3567)
* Update schema, remove transaction specific files

* Merge `.transaction` queries and mutations into regular files

* Merge OrderDetails fragments

* Remove usage of `.transaction` graphl types

* Update fixtures

* Remove usage of useFlag, remove duplicated queries & mutations

* Fix displayed event type for INFO

* Remove type alias from order/types.ts, remove type casting

* Fix failing tests

* Add preview label and better description in Channel settings

* Update button in GrantRefund page

* Fix missing data-test-id

* add e2e for capture transactions in orders

* creates tests for transactions order view switched on

---------

Co-authored-by: Jonatan Witoszek <jonatan.witoszek@saleor.io>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-11 08:46:33 +02:00

9 lines
480 B
JavaScript

export const ORDER_GRANT_REFUND = {
productsQuantityInput: '[data-test-id*="quantity-input"]',
setMaxQuantityButton: '[data-test-id="setMaxQuantityButton"]',
refundReasonInput: '[data-test-id="refundReasonInput"]',
refundShippingCheckbox: '[data-test-id="refundShippingCheckbox"]',
applySelectedRefundButton: '[data-test-id="applySelectedRefundButton"]',
refundAmountInput: '[data-test-id="amountInput"]',
grantRefundButton: '[data-test-id="grantRefundButton"]',
};