saleor-dashboard/cypress/elements/catalog/collection-selectors.js
Klaudia 5c6c0b43f1
Adding missing test to collections tests (#1952)
* Adding missing test to collections tests

* Adding missing test to collections tests

* fixing merge issues

* fixing merge issues

* update to test-env-deploy

* update to test-env-deploy

* changing test-env-deploy

* adding sugestions

* fixing what Karolina suggested

* pulling from main
2022-04-27 13:14:05 +02:00

11 lines
465 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"]'
};
export const collectionRow = collectionId =>
`[data-test-id*="${collectionId}"]`;
export const productRow = productId => `[data-test-id*="${productId}"]`;