diff --git a/cypress/elements/catalog/products/assign-products-selectors.js b/cypress/elements/catalog/products/assign-products-selectors.js index 6ca5c0bd6..6acac9a80 100644 --- a/cypress/elements/catalog/products/assign-products-selectors.js +++ b/cypress/elements/catalog/products/assign-products-selectors.js @@ -1,4 +1,3 @@ -/* eslint-disable sort-keys */ export const ASSIGN_PRODUCTS_SELECTORS = { searchInput: "[name='query']", tableRow: "[class*='MuiTableRow']", diff --git a/cypress/elements/catalog/products/product-selectors.js b/cypress/elements/catalog/products/product-selectors.js index 2fd93e118..a75877582 100644 --- a/cypress/elements/catalog/products/product-selectors.js +++ b/cypress/elements/catalog/products/product-selectors.js @@ -1,4 +1,3 @@ -/* eslint-disable sort-keys */ export const PRODUCTS_SELECTORS = { productsList: "[data-test-id][data-test='id']", products: "[data-test='submenu-item-label'][data-test-id='products']", diff --git a/cypress/elements/configuration/configuration-selectors.js b/cypress/elements/configuration/configuration-selectors.js index b1d85c627..a158e2cd8 100644 --- a/cypress/elements/configuration/configuration-selectors.js +++ b/cypress/elements/configuration/configuration-selectors.js @@ -1,4 +1,3 @@ -/* eslint-disable sort-keys */ export const CONFIGURATION_SELECTORS = { channels: "[data-testid='channels']" }; diff --git a/cypress/elements/shared/button-selectors.js b/cypress/elements/shared/button-selectors.js index 12b956298..332c54131 100644 --- a/cypress/elements/shared/button-selectors.js +++ b/cypress/elements/shared/button-selectors.js @@ -1,4 +1,3 @@ -/* eslint-disable sort-keys */ export const BUTTON_SELECTORS = { back: '[data-test="back"]', submit: '[data-test="submit"]' diff --git a/cypress/integration/collections.js b/cypress/integration/collections.js index 7870a73ce..86ea68200 100644 --- a/cypress/integration/collections.js +++ b/cypress/integration/collections.js @@ -114,7 +114,9 @@ describe("Collections", () => { }) .then(isVisible => expect(isVisible).to.equal(false)); }); - it("should display products hidden in listing, only in collection", () => { + it("should display products hidden in listing", () => { + // Products "hidden in listings" are not displayed in Category listings or search results, + // but are listed on Collections const randomName = `${startsWith}${faker.random.number()}`; const hiddenProductUtils = new ProductsUtils(); let collection; @@ -143,6 +145,8 @@ describe("Collections", () => { }) .then(isVisible => { expect(isVisible).to.equal(true); + }) + .then(() => { isProductVisibleInSearchResult( hiddenProductUtils.getCreatedProduct().name, defaultChannel.slug