saleor-dashboard/cypress/elements/catalog/collection-selectors.js
Dawid 6738467304
Handle form errors before product creation (#2299)
* Handle form errors before product creation

* Update e2e product create tests

* Handle channel errors in product update

* Update changelog

* Fix invalid values of product type picker

* Refactor product create utils

* trigger ci

Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
2022-09-23 14:15:59 +02:00

12 lines
503 B
JavaScript

export const COLLECTION_SELECTORS = {
createCollectionButton: "[data-test-id = 'create-collection']",
nameInput: "[name='name']",
saveButton: "[data-test='button-bar-confirm']",
addProductButton: "[data-test-id='add-product']",
descriptionInput: '[data-test-id="rich-text-editor-description"]',
placeholder: "[data-placeholder]",
};
export const collectionRow = collectionId =>
`[data-test-id*="${collectionId}"]`;
export const productRow = productId => `[data-test-id*="${productId}"]`;