saleor-dashboard/cypress/elements/orders/draft-order-selectors.js
Dawid f01966f0d4
Handle errors on finalizing draft order (#2191)
* Add warning alert before finilizing draft order

* Add line error indicators in draft order view

* Handle unfilled fields errors before draft order finalize

* Handle draft order line errors

* Differentiate line alert severity

* Fix order line alert margin

* Remove unnecessairy comment

* Refactor order draft alert components

* Update order draft test snapshots

* Refaactor order details code

* Hide add products button when no products available on order draft page

* Hide no shipping methods warning if they cannot be determined

* Update product assignment dialog messaages

* Update order channel error messages

* Fix missing order lines in error crash
2022-08-10 10:11:32 +01:00

13 lines
663 B
JavaScript

export const DRAFT_ORDER_SELECTORS = {
addProducts: "[data-test-id='add-products-button']",
salesChannel: "[data-test-id='order-sales-channel']",
editCustomerButton: "[data-test-id='edit-customer']",
selectCustomer: "[data-test-id='select-customer']",
selectCustomerOption: "[data-test-type='option']",
addShippingCarrierLink: "[data-test-id='add-shipping-carrier']",
finalizeButton: "[data-test='button-bar-confirm']",
pageHeader: "[data-test-id='page-header']",
editShippingAddress: '[data-test-id="edit-shipping-address"]',
editBillingAddress: '[data-test-id="edit-billing-address"]',
customerEmail: '[data-test-id="customer-email"]',
};