lmcprogram / TodoApp-FlutterFlow

Assigment 3 zybooks todo app
0 stars 0 forks source link

US4: Create a task #9

Open lmcprogram opened 1 day ago

lmcprogram commented 1 day ago

User Story: Create a Task

AS A user, I WANT TO create a new task in my to-do list, SO THAT I can keep track of my tasks and stay organized. SCENARIO: Successful Task Creation

GIVEN the user is on the main to-do list screen, WHEN the user clicks the "Add Task" button, AND enters a task title in the input field, AND optionally adds a due date, priority level, and description, THEN the system should create the new task, WITHIN 1 second, AND display it in the to-do list immediately. SCENARIO: Missing Task Title

GIVEN the user is on the "Add Task" screen, WHEN the user clicks the "Save" button without entering a task title, THEN the system should display an error message stating "Task title cannot be empty." WITHIN 1 second, AND prevent the task creation process from proceeding. SCENARIO: Duplicate Task Name

GIVEN the user is on the "Add Task" screen, WHEN the user enters a task title that already exists in their current list, AND clicks the "Save" button, THEN the system should display an error message stating "A task with this name already exists." WITHIN 1 second, AND suggest the user modify the task title. SCENARIO: Successful Task Creation with Due Date and Priority

GIVEN the user is on the "Add Task" screen, WHEN the user enters a task title, selects a due date, and assigns a priority level, AND clicks the "Save" button, THEN the system should save the new task with the specified details, WITHIN 1 second, AND display it in the to-do list with the correct due date and priority indicators. SCENARIO: Network Error During Task Creation

GIVEN the user is on the "Add Task" screen, WHEN the user enters the task details, AND clicks the "Save" button, THEN if a network error occurs, the system should display an error message stating "Unable to save task. Please try again later." WITHIN 2 seconds, AND allow the user to retry saving the task once the network is stable.