rename test in collectins tests
This commit is contained in:
parent
5df9a927d0
commit
c9df58727b
5 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
export const ASSIGN_PRODUCTS_SELECTORS = {
|
export const ASSIGN_PRODUCTS_SELECTORS = {
|
||||||
searchInput: "[name='query']",
|
searchInput: "[name='query']",
|
||||||
tableRow: "[class*='MuiTableRow']",
|
tableRow: "[class*='MuiTableRow']",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
export const PRODUCTS_SELECTORS = {
|
export const PRODUCTS_SELECTORS = {
|
||||||
productsList: "[data-test-id][data-test='id']",
|
productsList: "[data-test-id][data-test='id']",
|
||||||
products: "[data-test='submenu-item-label'][data-test-id='products']",
|
products: "[data-test='submenu-item-label'][data-test-id='products']",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
export const CONFIGURATION_SELECTORS = {
|
export const CONFIGURATION_SELECTORS = {
|
||||||
channels: "[data-testid='channels']"
|
channels: "[data-testid='channels']"
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
export const BUTTON_SELECTORS = {
|
export const BUTTON_SELECTORS = {
|
||||||
back: '[data-test="back"]',
|
back: '[data-test="back"]',
|
||||||
submit: '[data-test="submit"]'
|
submit: '[data-test="submit"]'
|
||||||
|
|
|
@ -114,7 +114,9 @@ describe("Collections", () => {
|
||||||
})
|
})
|
||||||
.then(isVisible => expect(isVisible).to.equal(false));
|
.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 randomName = `${startsWith}${faker.random.number()}`;
|
||||||
const hiddenProductUtils = new ProductsUtils();
|
const hiddenProductUtils = new ProductsUtils();
|
||||||
let collection;
|
let collection;
|
||||||
|
@ -143,6 +145,8 @@ describe("Collections", () => {
|
||||||
})
|
})
|
||||||
.then(isVisible => {
|
.then(isVisible => {
|
||||||
expect(isVisible).to.equal(true);
|
expect(isVisible).to.equal(true);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
isProductVisibleInSearchResult(
|
isProductVisibleInSearchResult(
|
||||||
hiddenProductUtils.getCreatedProduct().name,
|
hiddenProductUtils.getCreatedProduct().name,
|
||||||
defaultChannel.slug
|
defaultChannel.slug
|
||||||
|
|
Loading…
Reference in a new issue