rename test in collectins tests

This commit is contained in:
Karolina Rakoczy 2021-03-03 11:40:33 +01:00
parent 5df9a927d0
commit c9df58727b
5 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,3 @@
/* eslint-disable sort-keys */
export const ASSIGN_PRODUCTS_SELECTORS = {
searchInput: "[name='query']",
tableRow: "[class*='MuiTableRow']",

View file

@ -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']",

View file

@ -1,4 +1,3 @@
/* eslint-disable sort-keys */
export const CONFIGURATION_SELECTORS = {
channels: "[data-testid='channels']"
};

View file

@ -1,4 +1,3 @@
/* eslint-disable sort-keys */
export const BUTTON_SELECTORS = {
back: '[data-test="back"]',
submit: '[data-test="submit"]'

View file

@ -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