saleor-dashboard/cypress/elements/catalog/collection-selectors.js
Karolina Rakoczy a8b584a9d6
Fix flaky/broken tests (#2077)
* Fix remove attribute from product type

* fix should be able to display different price for each channel

* Fix collections

* fix pagination

* add test case number

* Fix TC:2605
2022-06-06 14:27:18 +04:00

12 lines
502 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}"]`;