ManiSub37539 / TodoApp-FlutterFlow

0 stars 0 forks source link

US5 Update Task #10

Open ManiSub37539 opened 4 hours ago

ManiSub37539 commented 4 hours ago

AS A user, I WANT TO update tasks by modifying the title and description, TO reflect changes or corrections in my task list, SO THAT I can ensure my to-do list stays accurate and up-to-date.

SCENARIO: Successful Task Update GIVEN the user is on the tasks page, WHEN the user clicks on a task, AND is navigated to the "Update Task" page, AND the user modifies the title and/or description, AND clicks the "Update Task" button, THEN the task should be updated with the new information, WITHIN 2 seconds, AND the updated task should be visible on the tasks page WITHIN 2 seconds.

SCENARIO: Missing Title During Update GIVEN the user is on the "Update Task" page, WHEN the user attempts to update the task without entering a 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 task from being updated until a title is entered.

SCENARIO: No Changes Made GIVEN the user is on the "Update Task" page, WHEN the user does not modify either the title or description, AND clicks the "Update Task" button, THEN the system should display a message stating "No changes made" WITHIN 1 second, AND return the user to the tasks page without any updates.

SCENARIO: Cancel Task Update GIVEN the user is on the "Update Task" page, WHEN the user decides not to update the task, AND clicks the "Cancel" button, THEN the system should close the "Update Task" page WITHIN 1 second, AND return the user to the tasks page without making any changes.

SCENARIO: Network Error During Task Update GIVEN the user is on the "Update Task" page, WHEN the user clicks the "Update Task" button, THEN if a network error occurs, the system should display an error message stating "Network error. Please try again later." WITHIN 2 seconds, AND retain the changes in the input fields until the issue is resolved and the user retries the update.