Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechdev committed Aug 27, 2020
1 parent d224755 commit c093b08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cypress/support/product/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Cypress.Commands.add("addItemWithShippingToTheBasket", () => {
return cy

.get(PRODUCTS_SELECTORS.product_list)
.first()
.eq(1)
.click()
.get(PRODUCTS_SELECTORS.first_selected_product_name)
.first()
Expand All @@ -32,12 +32,17 @@ Cypress.Commands.add("addItemWithNoShippingToTheBasket", () => {
.get(HEADER_SELECTORS.mainMenuSearchButton)
.click()
.get(HEADER_SELECTORS.mainMenuSearchInput)
.type("E-book")
.type("songs")
.get(SEARCH_PRODUCTS_SELECTORS_RIGHT_MENU.searchProductsExpandedArea)
.should("exist")
.get(SEARCH_PRODUCTS_SELECTORS_RIGHT_MENU.searchItems)
.first()
.click()
.get(PRODUCTS_SELECTORS.variantPicker)
.click()
.get(PRODUCTS_SELECTORS.attributOptions)
.first()
.click()
.get(PRODUCTS_SELECTORS.addToBasketBtn)
.click()
.get(PRODUCTS_SELECTORS.cartQuantity)
Expand Down

0 comments on commit c093b08

Please sign in to comment.