mirror of
https://github.com/vercel/commerce.git
synced 2025-06-08 17:26:59 +00:00
9 lines
261 B
JavaScript
9 lines
261 B
JavaScript
describe('Shopping Cart', () => {
|
|
it('users can add products to the cart', () => {
|
|
cy.visit('/')
|
|
cy.getBySel('product-tag').eq(0).click()
|
|
cy.getByAriaLabel('Add to Cart').click()
|
|
cy.getByAriaLabel('Cart items: 1').last().contains('1')
|
|
})
|
|
})
|