DEV Community

Discussion on: Functional Programming Test Patterns with Cypress

Collapse
 
bahunov profile image
bahunov

Great post!
I think there's a typo in:
export const addTodo = (name) => {
cy.get('.new-todo')
.type('First Todo') //should be .type(name)?
.type('{enter}')

Collapse
 
muratkeremozcan profile image
Murat K Ozcan

Right! Thanks for the scrutiny. Fixed