saleor-dashboard/cypress/elements/channels/channels-selectors.js
Michał Droń b386cf060f
Add order expiration (#3843)
* Add TTL expiration & migrate some components in channel details

* Migrate button

* Update fixtures

* Add changeset

* Typo & lint

* Reorder UI elements

* Set custom height to match old input

* Add explanatory comment

* test - created test for expired orderes functionality in channels, fixed validation test which checks using same slug twice when creating channel

* Fix create page

* Fix lint issue

* Fix error handling double notification

* tests added: creating channel with expiration days for orders, creating channel with expiration days for orders with boundary conditions exciding requirements

* function name typeExpirationDate changed to typeExpirationDays

---------

Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-07-12 14:04:50 +02:00

6 lines
253 B
JavaScript

export const CHANNELS_SELECTORS = {
createChannelButton: "[data-test-id='add-channel']",
channelsTable: "[class='MuiTableBody-root']",
channelName: "[data-test-id='name']",
orderExpirationInput: "[data-test-id='delete-expired-order-input']",
};