Cypress - Test Organization and Patterns
Given this App Action method:
What will be the result of this test code?
const addItem = (name) => { cy.get('#item-input').type(name); cy.get('#add-button').click(); }What will be the result of this test code?
addItem('Book'); cy.get('#item-list').should('contain', 'Book');