Skip to content

Commit

Permalink
chore: skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilinTv committed Jun 3, 2024
1 parent 95cd9e2 commit 742700d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
54 changes: 27 additions & 27 deletions apps/storefront-e2e/src/integration/category.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,33 @@ describe('Category suite', () => {
categoryPage.visit();
});

// it('should apply price filtering', () => {
// cy.log('set minimum price');
// categoryPage.getFacets().setMinPrice(minPrice);
// categoryPage.waitForSearchRequest();
// checkProductCardsFilteringByPrice(categoryPage, minPrice);
//
// cy.log('reset prices, set max price');
// categoryPage.getFacets().resetPrices();
// categoryPage.waitForTemplateRebuild();
// categoryPage.getFacets().setMaxPrice(maxPrice);
// categoryPage.waitForSearchRequest();
// checkProductCardsFilteringByPrice(categoryPage, 0, maxPrice);
//
// cy.log('reset prices, change min price range');
// categoryPage.getFacets().resetPrices();
// categoryPage.waitForTemplateRebuild();
// categoryPage.getFacets().setMinPriceRange(minPrice);
// categoryPage.waitForTemplateRebuild();
// checkProductCardsFilteringByPrice(categoryPage, minPrice);
//
// cy.log('reset prices, change max price range');
// categoryPage.getFacets().resetPrices();
// categoryPage.waitForTemplateRebuild();
// categoryPage.getFacets().setMaxPriceRange(maxPrice);
// categoryPage.waitForTemplateRebuild();
// checkProductCardsFilteringByPrice(categoryPage, 0, maxPrice);
// });
it('should apply price filtering', () => {
cy.log('set minimum price');
categoryPage.getFacets().setMinPrice(minPrice);
categoryPage.waitForSearchRequest();
checkProductCardsFilteringByPrice(categoryPage, minPrice);

cy.log('reset prices, set max price');
categoryPage.getFacets().resetPrices();
categoryPage.waitForTemplateRebuild();
categoryPage.getFacets().setMaxPrice(maxPrice);
categoryPage.waitForSearchRequest();
checkProductCardsFilteringByPrice(categoryPage, 0, maxPrice);

cy.log('reset prices, change min price range');
categoryPage.getFacets().resetPrices();
categoryPage.waitForTemplateRebuild();
categoryPage.getFacets().setMinPriceRange(minPrice);
categoryPage.waitForTemplateRebuild();
checkProductCardsFilteringByPrice(categoryPage, minPrice);

cy.log('reset prices, change max price range');
categoryPage.getFacets().resetPrices();
categoryPage.waitForTemplateRebuild();
categoryPage.getFacets().setMaxPriceRange(maxPrice);
categoryPage.waitForTemplateRebuild();
checkProductCardsFilteringByPrice(categoryPage, 0, maxPrice);
}).skip();
});
});

Expand Down
54 changes: 27 additions & 27 deletions apps/storefront-e2e/src/integration/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,33 @@ describe('Search suite', () => {
searchPage.visit();
});

// it('should apply price filtering', () => {
// cy.log('set minimum price');
// searchPage.getFacets().setMinPrice(minPrice);
// searchPage.waitForSearchRequest();
// checkProductCardsFilteringByPrice(searchPage, minPrice);
//
// cy.log('reset prices, set max price');
// searchPage.getFacets().resetPrices();
// searchPage.waitForTemplateRebuild();
// searchPage.getFacets().setMaxPrice(maxPrice);
// searchPage.waitForSearchRequest();
// checkProductCardsFilteringByPrice(searchPage, 0, maxPrice);
//
// cy.log('reset prices, change min price range');
// searchPage.getFacets().resetPrices();
// searchPage.waitForTemplateRebuild();
// searchPage.getFacets().setMinPriceRange(minPrice);
// searchPage.waitForTemplateRebuild();
// checkProductCardsFilteringByPrice(searchPage, minPrice);
//
// cy.log('reset prices, change max price range');
// searchPage.getFacets().resetPrices();
// searchPage.waitForTemplateRebuild();
// searchPage.getFacets().setMaxPriceRange(maxPrice);
// searchPage.waitForTemplateRebuild();
// checkProductCardsFilteringByPrice(searchPage, 0, maxPrice);
// });
it('should apply price filtering', () => {
cy.log('set minimum price');
searchPage.getFacets().setMinPrice(minPrice);
searchPage.waitForSearchRequest();
checkProductCardsFilteringByPrice(searchPage, minPrice);

cy.log('reset prices, set max price');
searchPage.getFacets().resetPrices();
searchPage.waitForTemplateRebuild();
searchPage.getFacets().setMaxPrice(maxPrice);
searchPage.waitForSearchRequest();
checkProductCardsFilteringByPrice(searchPage, 0, maxPrice);

cy.log('reset prices, change min price range');
searchPage.getFacets().resetPrices();
searchPage.waitForTemplateRebuild();
searchPage.getFacets().setMinPriceRange(minPrice);
searchPage.waitForTemplateRebuild();
checkProductCardsFilteringByPrice(searchPage, minPrice);

cy.log('reset prices, change max price range');
searchPage.getFacets().resetPrices();
searchPage.waitForTemplateRebuild();
searchPage.getFacets().setMaxPriceRange(maxPrice);
searchPage.waitForTemplateRebuild();
checkProductCardsFilteringByPrice(searchPage, 0, maxPrice);
}).skip();
});
});

Expand Down

0 comments on commit 742700d

Please sign in to comment.