1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-08 17:26:59 +00:00
commerce/cypress/integration/shopping-cart.spec.js
2022-05-11 11:02:46 -07:00

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')
})
})