Description
<!-- ai/agent generated description -->
### Preconditions
* Navigate to the Todos page
* Pre-populate the todo list with three items: 'foo', 'bar', and 'baz'
### Steps
1. Edit the first todo item to 'boom'
2. Verify that the first todo item text has been changed to 'boom'
### Expected Result
* The todo list reflects the edited item correctly with the text 'boom'
* A screenshot is taken after completing the test steps
Code
Before(async ({ I, TodosPage }) => {
TodosPage.goto()
TodosPage.enterTodo('foo')
TodosPage.enterTodo('bar')
TodosPage.enterTodo('baz')
})
Scenario('Edited todo is saved on blur 131', async ({ I, TodosPage }) => {
I.say('Given I have some todos')
I.say('When I edit the first todo')
await TodosPage.editNthTodo(1, 'boom')
I.say('Then I see that the todo text has been changed')
await TodosPage.seeNthTodoEquals(1, 'boom')
I.saveScreenshot('edited-todo-saved-on-blur.png')
})