mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
8 lines
277 B
JavaScript
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")
|
|
})
|
|
}) |