Skip to content

Commit

Permalink
test: test for search by query string, category and subcategory
Browse files Browse the repository at this point in the history
  • Loading branch information
nichgalzin committed Jul 31, 2024
1 parent a3c0846 commit d238a95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cypress/e2e/searchFlow.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ describe('search page', () => {
cy.get('h2').contains('Summer Blouse').should('be.visible');
});

it('search by category and subcategory and query', () => {
searchPage.searchInput().type('summer');
searchPage.filterButton().click();
cy.get('button').contains('Clothing').click();
cy.get('button').contains('Women').click();
cy.get('button').contains('APPLY FILTERS').click();
cy.get('h2').contains('Summer Blouse').should('be.visible');
});

it('clear filters on when button is pressed', () => {
searchPage.filterButton().click();
cy.get('button').contains('Clothing').click();
Expand Down

0 comments on commit d238a95

Please sign in to comment.