let TODO_ITEM_ONE = 'buy some cheese'
let TODO_ITEM_TWO = 'feed the cat'
let TODO_ITEM_THREE = 'book a doctors appointment'
it('should allow me to add todo items', function () {
// create 1st todo
cy.get('.new-todo').type(TODO_ITEM_ONE).type('{enter}')
// make sure the 1st label contains the 1st todo text
cy.get('.todo-list li').eq(0).find('label').should('contain', TODO_ITEM_ONE)
// create 2nd todo
cy.get('.new-todo').type(TODO_ITEM_TWO).type('{enter}')
// make sure the 2nd label contains the 2nd todo text
cy.get('.todo-list li').eq(1).find('label').should('contain', TODO_ITEM_TWO)
})