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 = {
|
||||
searchInput: "[name='query']",
|
||||
tableRow: "[class*='MuiTableRow']",
|
||||
|
|
|
@ -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']",
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable sort-keys */
|
||||
export const CONFIGURATION_SELECTORS = {
|
||||
channels: "[data-testid='channels']"
|
||||
};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable sort-keys */
|
||||
export const BUTTON_SELECTORS = {
|
||||
back: '[data-test="back"]',
|
||||
submit: '[data-test="submit"]'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue