GIVEN David is on the Project view page
AND he sees a list of Tasks
AND he is assigned to a Task
THEN he sees a ‘Done’ button next to each Task he owns
AND WHEN he clicks ‘Done’
THEN the status of the Task is updated to ‘Done’
THEN he is redirected back to the project view page
AND he sees ’Done’ next to the Task
GIVEN David is on the Project view page
AND he sees a list of Tasks
AND he is assigned to a Task
THEN he sees a ‘Delete’ button next to each Task that is owned by him or unowned
AND WHEN he clicks ‘Delete’
THEN he becomes the owner of the Task
THEN the status of the Task is updated to ‘Delete’
THEN he is redirected back to the project view page
AND the Task is no longer listed
GIVEN David is on the Project view page AND he sees a list of Tasks AND he is assigned to a Task THEN he sees a ‘Done’ button next to each Task he owns AND WHEN he clicks ‘Done’ THEN the status of the Task is updated to ‘Done’ THEN he is redirected back to the project view page AND he sees ’Done’ next to the Task
GIVEN David is on the Project view page AND he sees a list of Tasks AND he is assigned to a Task THEN he sees a ‘Delete’ button next to each Task that is owned by him or unowned AND WHEN he clicks ‘Delete’ THEN he becomes the owner of the Task THEN the status of the Task is updated to ‘Delete’ THEN he is redirected back to the project view page AND the Task is no longer listed