Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Last active January 9, 2022 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hypeJunction/6476974b58a46b7ae1271daa4c34fa60 to your computer and use it in GitHub Desktop.
Save hypeJunction/6476974b58a46b7ae1271daa4c34fa60 to your computer and use it in GitHub Desktop.
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