AS A user,
I WANT TO add tasks to my to-do list,
TO manage the tasks that need to be done
SO THAT I can keep track of my responsibilities efficiently.
SCENARIO: Successful Task Creation
GIVEN the user is logged into the app and is on the main to-do list screen,
WHEN the user enters a task name and clicks the "Add Task" button,
THEN the system should save the task to the database
WITHIN 1 second,
AND display the task in the list of tasks
WITHIN 1 second.
SCENARIO: Empty Task Name
GIVEN the user is on the task creation screen,
WHEN the user clicks "Add Task" without entering a task name,
THEN the system should display an error message stating "Task name cannot be empty"
WITHIN 1 second,
AND prevent the task from being added.
AS A user, I WANT TO add tasks to my to-do list, TO manage the tasks that need to be done SO THAT I can keep track of my responsibilities efficiently.
SCENARIO: Successful Task Creation GIVEN the user is logged into the app and is on the main to-do list screen, WHEN the user enters a task name and clicks the "Add Task" button, THEN the system should save the task to the database WITHIN 1 second, AND display the task in the list of tasks WITHIN 1 second.
SCENARIO: Empty Task Name GIVEN the user is on the task creation screen, WHEN the user clicks "Add Task" without entering a task name, THEN the system should display an error message stating "Task name cannot be empty" WITHIN 1 second, AND prevent the task from being added.