Last active
January 9, 2022 11:35
-
-
Save hypeJunction/6476974b58a46b7ae1271daa4c34fa60 to your computer and use it in GitHub Desktop.
This file contains 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
cy.getForm('Add To-Do Item').within(() => { | |
cy.getInput('To-Do Item').type('Buy Milk'); | |
cy.getButton('Add').press(); | |
}) | |
cy.getList('To-Do List').within(() => { | |
cy.getListItem('Buy Milk').should('exist'); | |
cy.getInput('Buy Milk').check(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment