Created
August 11, 2018 22:33
-
-
Save johntran/2f34a31933ff988d8789585e7c51d2d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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