AS A user,
I WANT TO edit an existing task,
TO update the task title or details
SO THAT I can reflect any changes in my to-do list.
SCENARIO: Successful Task Edit
GIVEN the user is on the “Task Details” screen for a specific task,
WHEN the user clicks the edit icon,
AND updates the task title or details,
AND clicks the “Update Task” button,
THEN the changes should be saved
WITHIN 1 second,
AND reflected in the main task list.
SCENARIO: Empty Task Title During Edit
GIVEN the user is on the “Edit Task” screen,
WHEN the user deletes the task title and clicks the “Update Task” button,
THEN the system should display an error message stating “Task title cannot be empty”
WITHIN 1 second,
AND prevent the changes from being saved.
SCENARIO: Network Error During Task Edit
GIVEN the user is on the “Edit Task” screen,
WHEN the user tries to update a task,
THEN if a network error occurs, the system should display an error message stating “Network error. Please try again later.”
WITHIN 2 seconds,
AND allow the user to retry the edit process once the network is stable.
AS A user, I WANT TO edit an existing task, TO update the task title or details SO THAT I can reflect any changes in my to-do list.
SCENARIO: Successful Task Edit GIVEN the user is on the “Task Details” screen for a specific task, WHEN the user clicks the edit icon, AND updates the task title or details, AND clicks the “Update Task” button, THEN the changes should be saved WITHIN 1 second, AND reflected in the main task list.
SCENARIO: Empty Task Title During Edit GIVEN the user is on the “Edit Task” screen, WHEN the user deletes the task title and clicks the “Update Task” button, THEN the system should display an error message stating “Task title cannot be empty” WITHIN 1 second, AND prevent the changes from being saved.
SCENARIO: Network Error During Task Edit GIVEN the user is on the “Edit Task” screen, WHEN the user tries to update a task, THEN if a network error occurs, the system should display an error message stating “Network error. Please try again later.” WITHIN 2 seconds, AND allow the user to retry the edit process once the network is stable.