Skip to content

Instantly share code, notes, and snippets.

@johntran
Created August 11, 2018 22:33
Show Gist options
  • Select an option

  • Save johntran/2f34a31933ff988d8789585e7c51d2d6 to your computer and use it in GitHub Desktop.

Select an option

Save johntran/2f34a31933ff988d8789585e7c51d2d6 to your computer and use it in GitHub Desktop.
describe('Guest User Can Make Order Receipt', () => {
it('can visit app', () => {
return cy.visit('https://www.onehopewine.com/shop/wine/wine');
});
it('can add item', () => {
return cy
.get('#ProductScroll')
.find('.AddToCartButton')
.first()
.click()
.should(() => {
cartQuantity += 1;
})
.find('.AddToCartButton')
.should(results => results[2]);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment