saleor-dashboard/cypress/elements/orders/orders-selectors.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

18 lines
942 B
JavaScript

export const ORDERS_SELECTORS = {
orders: "[data-test-id='menu-item-label'][data-test-id='orders']",
createOrderButton: "[data-test-id='create-order-button']",
orderRow: "[data-test-id='order-table-row']",
salesChannel: "[data-test-id='order-sales-channel']",
cancelFulfillment: "[data-test-id='cancel-fulfillment-button']",
cancelFulfillmentSelectField:
"[data-test-id='cancel-fulfillment-select-field']",
orderFulfillmentFrame: "[data-test-id='order-fulfillment']",
refundButton: '[data-test-id="refund-button"]',
fulfillMenuButton: '[data-test-id="fulfill-menu"]',
markAsPaidButton: '[data-test-id="markAsPaidButton"]',
transactionReferenceInput: '[data-test-id="transaction-reference-input"]',
orderTransactionsList: '[data-test-id="orderTransactionsList"]',
grantRefundButton: '[data-test-id="grantRefundButton"]',
captureManualTransactionButton:
'[data-test-id="captureManualTransactionButton"]',
};