mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
9 lines
262 B
JavaScript
9 lines
262 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")
|
|
})
|
|
})
|