AS A user,
I WANT TO move completed tasks to a 'Completed' page by checking them off,
TO keep my tasks page organized and focus only on pending tasks,
SO THAT I can track what I have accomplished separately from my remaining to-dos.
SCENARIO: Successful Task Completion
GIVEN the user is on the tasks page,
WHEN the user clicks the check button next to a task,
AND the task is marked as completed,
THEN the task should disappear from the tasks page
WITHIN 1 second,
AND appear on the completed page
WITHIN 2 seconds.
SCENARIO: Unchecking a Task on the Completed Page
GIVEN the user is on the completed page,
WHEN the user unchecks a task,
THEN the task should disappear from the completed page
WITHIN 1 second,
AND reappear on the tasks page
WITHIN 2 seconds.
SCENARIO: Empty Completed Page
GIVEN the user has not completed any tasks,
WHEN the user navigates to the completed page,
THEN the system should display a message stating "No tasks completed yet"
WITHIN 1 second,
AND prompt the user to return to the tasks page to continue managing tasks.
SCENARIO: Cancel Task Completion
GIVEN the user has clicked the check button to mark a task as completed,
WHEN the user decides not to mark it as complete,
AND clicks the check button again before leaving the page,
THEN the task should remain on the tasks page
WITHIN 1 second,
AND not appear on the completed page.
SCENARIO: Network Error While Completing a Task
GIVEN the user is on the tasks page,
WHEN the user clicks the check button to complete 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 keep the task on the tasks page until the issue is resolved.
AS A user, I WANT TO move completed tasks to a 'Completed' page by checking them off, TO keep my tasks page organized and focus only on pending tasks, SO THAT I can track what I have accomplished separately from my remaining to-dos.
SCENARIO: Successful Task Completion GIVEN the user is on the tasks page, WHEN the user clicks the check button next to a task, AND the task is marked as completed, THEN the task should disappear from the tasks page WITHIN 1 second, AND appear on the completed page WITHIN 2 seconds.
SCENARIO: Unchecking a Task on the Completed Page GIVEN the user is on the completed page, WHEN the user unchecks a task, THEN the task should disappear from the completed page WITHIN 1 second, AND reappear on the tasks page WITHIN 2 seconds.
SCENARIO: Empty Completed Page GIVEN the user has not completed any tasks, WHEN the user navigates to the completed page, THEN the system should display a message stating "No tasks completed yet" WITHIN 1 second, AND prompt the user to return to the tasks page to continue managing tasks.
SCENARIO: Cancel Task Completion GIVEN the user has clicked the check button to mark a task as completed, WHEN the user decides not to mark it as complete, AND clicks the check button again before leaving the page, THEN the task should remain on the tasks page WITHIN 1 second, AND not appear on the completed page.
SCENARIO: Network Error While Completing a Task GIVEN the user is on the tasks page, WHEN the user clicks the check button to complete 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 keep the task on the tasks page until the issue is resolved.