1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-14 11:31:21 +00:00
2022-05-13 10:08:17 +10:00

8 lines
277 B
JavaScript

describe("Shopping Cart", ()=>{
it("users can add products to the cart", ()=>{
cy.visit("/")
cy.getBySel("product-tag").eq(0).click()
cy.get('[aria-label="Add to Cart"]').click()
cy.get('[aria-label="Cart items: 1"]').contains("1")
})
})